Lines Matching refs:pfd
114 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
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()
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()
163 int err = poll(*pfd, num_displays * num_events, -1); in vsync_loop()
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()
205 if(pfd[dpy][event].fd >= 0) in vsync_loop()
206 close (pfd[dpy][event].fd); in vsync_loop()