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