Lines Matching refs:dpy
43 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
47 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
50 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
56 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data) in handle_vsync_event() argument
65 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
66 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
69 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data) in handle_blank_event() argument
73 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
74 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
80 void (*callback)(hwc_context_t* ctx, int dpy, char *data);
117 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
121 dpy == HWC_DISPLAY_PRIMARY ? 0 : in vsync_loop()
127 ev, dpy, node_path); in vsync_loop()
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
134 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
144 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
145 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
153 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
155 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
156 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
162 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
175 event_list[ev].callback(ctx, dpy, vdata); in vsync_loop()
204 for (int dpy = HWC_DISPLAY_PRIMARY; dpy <= HWC_DISPLAY_EXTERNAL; dpy++ ) { in vsync_loop() local
206 if(pfd[dpy][event].fd >= 0) in vsync_loop()
207 close (pfd[dpy][event].fd); in vsync_loop()