Lines Matching refs:ev
118 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
124 event_list[ev].name); 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()
135 if (ev == 0) { 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()
154 for(size_t ev = 0; ev < num_events; ev++) { 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()