Lines Matching refs:pfd
113 struct pollfd pfd[2]; in async_message_thread() local
117 pfd[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread()
118 pfd[0].fd = omx->drv_ctx.video_vpu_fd; in async_message_thread()
119 pfd[1].events = POLLIN | POLLPRI | POLLERR; in async_message_thread()
120 pfd[1].fd = omx->m_ctrl_in; in async_message_thread()
127 rc = poll(pfd, 2, POLL_TIMEOUT); in async_message_thread()
138 if (pfd[1].revents & (POLLIN | POLLPRI | POLLERR)) in async_message_thread()
145 if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLRDNORM)) { in async_message_thread()
152 while(!ioctl(pfd[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread()
186 if((pfd[0].revents & POLLOUT) || (pfd[0].revents & POLLWRNORM)) { in async_message_thread()
193 while(!ioctl(pfd[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread()
213 if (pfd[0].revents & POLLPRI){ in async_message_thread()
216 rc = ioctl(pfd[0].fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
293 struct pollfd pfd; in async_message_thread() local
299 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread()
300 pfd.fd = omx->drv_ctx.video_vpu_fd; in async_message_thread()
308 DEBUG_PRINT_HIGH("omx_vdpp: Async thread start pfd.revents = %d\n", pfd.revents); in async_message_thread()