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
66 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
67 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
70 static void handle_blank_event(hwc_context_t* ctx, int dpy, char *data) in handle_blank_event() argument
74 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
75 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
81 void (*callback)(hwc_context_t* ctx, int dpy, char *data);
118 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
122 dpy == HWC_DISPLAY_PRIMARY ? 0 : in vsync_loop()
128 ev, dpy, node_path); in vsync_loop()
129 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
131 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
135 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
144 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
145 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
146 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
154 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
156 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
157 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
163 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
176 event_list[ev].callback(ctx, dpy, vdata); in vsync_loop()
205 for (int dpy = HWC_DISPLAY_PRIMARY; dpy <= HWC_DISPLAY_EXTERNAL; dpy++ ) { in vsync_loop() local
207 if(pfd[dpy][event].fd >= 0) in vsync_loop()
208 close (pfd[dpy][event].fd); in vsync_loop()