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