Lines Matching refs:dpy

46 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable)  in hwc_vsync_control()  argument
50 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, in hwc_vsync_control()
53 __FUNCTION__, dpy, enable, strerror(errno)); in hwc_vsync_control()
59 static void handle_vsync_event(hwc_context_t* ctx, int dpy, char *data) in handle_vsync_event() argument
68 __FUNCTION__, timestamp, dpy); in handle_vsync_event()
69 ctx->proc->vsync(ctx->proc, dpy, timestamp); in handle_vsync_event()
72 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: %ld", __FUNCTION__, dpy, poweron); in handle_blank_event()
78 ctx->dpyAttr[dpy].isActive = poweron ? true: false; in handle_blank_event()
83 static void handle_thermal_event(hwc_context_t* ctx, int dpy, char *data) in handle_thermal_event() argument
92 ALOGD("%s: dpy:%d thermal_level=%" PRIu64"",__FUNCTION__,dpy,thermalLevel); in handle_thermal_event()
100 void (*callback)(hwc_context_t* ctx, int dpy, char *data);
134 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
138 dpy == HWC_DISPLAY_PRIMARY ? 0 : in vsync_loop()
144 ev, dpy, node_path); in vsync_loop()
145 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
151 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
160 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
161 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
162 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
170 for (int dpy = HWC_DISPLAY_PRIMARY; dpy < num_displays; dpy++) { in vsync_loop() local
172 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
173 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
179 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
182 event_list[ev].callback(ctx, dpy, vdata); in vsync_loop()
208 for (int dpy = HWC_DISPLAY_PRIMARY; dpy <= HWC_DISPLAY_EXTERNAL; dpy++ ) { in vsync_loop() local
210 if(pfd[dpy][event].fd >= 0) in vsync_loop()
211 close (pfd[dpy][event].fd); in vsync_loop()