Lines Matching refs:dpy
44 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
48 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
51 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
57 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data, in handle_vsync_event() argument
67 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
68 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
71 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data, in handle_blank_event() argument
76 ALOGI("%s: dpy:%d panel power state: %d", __FUNCTION__, dpy, poweron); in handle_blank_event()
77 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
81 static void handle_cec_event(hwc_context_t* ctx, int dpy, char *data, in handle_cec_event() argument
84 ALOGD("%s: Got CEC event from driver dpy:%d", __FUNCTION__, dpy); in handle_cec_event()
90 void (*callback)(hwc_context_t* ctx, int dpy, char *data, ssize_t len);
129 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
133 dpy == HWC_DISPLAY_PRIMARY ? 0 : in vsync_loop()
139 ev, dpy, node_path); in vsync_loop()
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
146 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
156 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
165 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
167 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
174 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
177 event_list[ev].callback(ctx, dpy, vdata, len); in vsync_loop()
203 for (int dpy = HWC_DISPLAY_PRIMARY; dpy <= HWC_DISPLAY_EXTERNAL; dpy++ ) { in vsync_loop() local
205 if(pfd[dpy][event].fd >= 0) in vsync_loop()
206 close (pfd[dpy][event].fd); in vsync_loop()