Lines Matching refs:pfd
105 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
129 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
131 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
144 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
145 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
146 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
152 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
156 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
157 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
207 if(pfd[dpy][event].fd >= 0) in vsync_loop()
208 close (pfd[dpy][event].fd); in vsync_loop()