Lines Matching refs:dpy
45 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) in hwc_vsync_control() argument
49 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
52 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
58 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
75 ALOGI("%s: dpy:%d panel power state: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
77 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
82 static void handle_thermal_event(hwc_context_t* ctx, int dpy, char *data) in handle_thermal_event() argument
91 ALOGD("%s: dpy:%d thermal_level=%" PRIu64"",__FUNCTION__,dpy,thermalLevel); in handle_thermal_event()
99 void (*callback)(hwc_context_t* ctx, int dpy, char *data);
133 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
137 dpy == HWC_DISPLAY_PRIMARY ? 0 : in vsync_loop()
143 ev, dpy, node_path); in vsync_loop()
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
150 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
160 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
161 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
169 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
171 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
178 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
181 event_list[ev].callback(ctx, dpy, vdata); in vsync_loop()
207 for (int dpy = HWC_DISPLAY_PRIMARY; dpy <= HWC_DISPLAY_EXTERNAL; dpy++ ) { in vsync_loop() local
209 if(pfd[dpy][event].fd >= 0) in vsync_loop()
210 close (pfd[dpy][event].fd); in vsync_loop()