/hardware/qcom/display/msm8974/libhwcomposer/ |
H A D | hwc_vsync.cpp | 64 struct pollfd pfd[2]; local 108 pfd[dpy].fd = fb_fd[dpy]; 109 if (pfd[dpy].fd >= 0) 110 pfd[dpy].events = POLLPRI | POLLERR; 115 int err = poll(pfd, num_displays, -1); 118 if (pfd[dpy].revents & POLLPRI) { 119 int len = pread(pfd[dpy].fd, vdata, MAX_DATA, 0);
|
/hardware/ti/omap4xxx/domx/mm_osal/src/ |
H A D | timm_osal_pipes.c | 69 int pfd[2]; member in struct:TIMM_OSAL_PIPE 108 pHandle->pfd[0] = -1; 109 pHandle->pfd[1] = -1; 110 if (SUCCESS != pipe(pHandle->pfd)) 155 if (SUCCESS != close(pHandle->pfd[0])) 160 if (SUCCESS != close(pHandle->pfd[1])) 195 lSizeWritten = write(pHandle->pfd[1], pMessage, size); 242 lSizeWritten = write(pHandle->pfd[1], pMessage, size); 269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe); 273 write(pHandle->pfd[ [all...] |
/hardware/ti/omap4xxx/libtiutils/ |
H A D | MessageQueue.cpp | 245 struct pollfd pfd; local 247 pfd.fd = this->fd_read; 248 pfd.events = POLLIN; 249 pfd.revents = 0; 259 if( -1 == poll(&pfd,1,0) ) 266 if(pfd.revents & POLLIN) 325 struct pollfd pfd[3]; local 334 pfd[0].fd = queue1->getInFd(); 335 if(!pfd[0].fd) 341 pfd[ [all...] |
/hardware/qcom/audio/legacy/libalsa-intf/ |
H A D | aplay.c | 179 struct pollfd pfd[1]; local 278 pfd[0].fd = pcm->timer_fd; 279 pfd[0].events = POLLIN; 313 poll(pfd, nfds, TIMEOUT_INFINITE); 425 poll(pfd, nfds, TIMEOUT_INFINITE);
|
H A D | arec.c | 188 struct pollfd pfd[1]; local 264 pfd[0].fd = pcm->fd; 265 pfd[0].events = POLLIN; 304 poll(pfd, nfds, TIMEOUT_INFINITE);
|
/hardware/ti/wpan/tools/kfmapp/ |
H A D | kfmapp.c | 1168 struct pollfd pfd; local 1175 memset(&pfd, 0, sizeof(pfd)); 1176 pfd.fd = radio_fd; 1177 pfd.events = POLLIN; 1178 ret = poll(&pfd, 1, 10);
|
/hardware/qcom/media/mm-video-legacy/vidc/venc/src/ |
H A D | video_encoder_device_copper.cpp | 171 struct pollfd pfd; local 174 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 175 pfd.fd = omx->handle->m_nDriver_fd; 179 rc = poll(&pfd, 1, TIMEOUT); 187 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 192 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); 205 } else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 209 rc = ioctl(pfd [all...] |
/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/ |
H A D | video_encoder_device_v4l2.cpp | 225 struct pollfd pfd; local 228 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 229 pfd.fd = omx->handle->m_nDriver_fd; 263 rc = poll(&pfd, 1, POLL_TIMEOUT); 274 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 280 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 319 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 325 while (!ioctl(pfd [all...] |
/hardware/ti/wpan/tools/FM/service/src/jni/ |
H A D | JFmRxNative.cpp | 266 struct pollfd pfd; local 278 memset(&pfd, 0, sizeof(pfd)); 279 pfd.fd = radio_fd; 280 pfd.events = POLLIN; 281 ret = poll(&pfd, 1, 10);
|
/hardware/qcom/media/mm-video-legacy/vidc/vdec/src/ |
H A D | omx_vdec_copper.cpp | 130 struct pollfd pfd; local 133 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 135 pfd.fd = omx->drv_ctx.video_driver_fd; 141 rc = poll(&pfd, 1, TIMEOUT); 149 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 154 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); 166 else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 170 rc = ioctl(pfd [all...] |
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/ |
H A D | omx_vdec_hevc.cpp | 136 struct pollfd pfd; local 141 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 142 pfd.fd = omx->drv_ctx.video_driver_fd; 147 rc = poll(&pfd, 1, POLL_TIMEOUT); 155 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 161 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 181 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 187 while (!ioctl(pfd [all...] |
H A D | omx_vdec_msm8974.cpp | 135 struct pollfd pfd; local 140 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 141 pfd.fd = omx->drv_ctx.video_driver_fd; 146 rc = poll(&pfd, 1, POLL_TIMEOUT); 154 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 160 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 180 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 186 while (!ioctl(pfd [all...] |