Lines Matching refs:ev
130 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
136 event_list[ev].name); in vsync_loop()
139 ev, dpy, node_path); in vsync_loop()
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
146 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
147 if (ev == 0) { in vsync_loop()
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
156 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
166 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
167 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
174 __FUNCTION__, ev, dpy, strerror(errno)); in vsync_loop()
177 event_list[ev].callback(ctx, dpy, vdata, len); in vsync_loop()