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