/hardware/ti/omap4-aah/libtiutils/ |
D | MessageQueue.cpp | 246 struct pollfd pfd; in isEmpty() local 248 pfd.fd = this->fd_read; in isEmpty() 249 pfd.events = POLLIN; in isEmpty() 250 pfd.revents = 0; in isEmpty() 260 if( -1 == poll(&pfd,1,0) ) in isEmpty() 267 if(pfd.revents & POLLIN) in isEmpty() 328 struct pollfd pfd[3]; in waitForMsg() local 337 pfd[0].fd = queue1->getInFd(); in waitForMsg() 338 if(!pfd[0].fd) in waitForMsg() 344 pfd[0].events = POLLIN; in waitForMsg() [all …]
|
/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/qcom/display/msm8084/libhwcomposer/ |
D | hwc_vsync.cpp | 115 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 141 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 143 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 156 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop() 157 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 158 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 164 int err = poll(*pfd, num_displays * num_events, -1); in vsync_loop() 168 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 169 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() [all …]
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
D | hwc_vsync.cpp | 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() [all …]
|
/hardware/ti/omap4-aah/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/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/ |
D | inv_gesture_test.c | 107 struct pollfd pfd[NUM_DMP_FEATS]; variable 571 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK); in init_fds() 576 pfd[i].fd = open(mpu.event_display_orientation, in init_fds() 582 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK); in init_fds() 587 pfd[i].fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK); in init_fds() 591 pfd[i].fd = -1; in init_fds() 594 pfd[i].events = POLLPRI|POLLERR, in init_fds() 595 pfd[i].revents = 0; in init_fds() 601 void parse_events(struct pollfd pfd[], int num_fds) in parse_events() argument 606 if(pfd[i].revents != 0) { in parse_events() [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/broadcom/wlan/bcmdhd/wifi_hal/ |
D | wifi_hal.cpp | 247 pollfd pfd; in wifi_event_loop() local 248 memset(&pfd, 0, sizeof(pfd)); in wifi_event_loop() 250 pfd.fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 251 pfd.events = POLLIN; in wifi_event_loop() 257 pfd.revents = 0; in wifi_event_loop() 259 int result = poll(&pfd, 1, -1); in wifi_event_loop() 262 } else if (pfd.revents & POLLERR) { in wifi_event_loop() 265 int result2 = read(pfd.fd, buf, sizeof(buf)); in wifi_event_loop() 267 } else if (pfd.revents & POLLHUP) { in wifi_event_loop() 270 } else if (pfd.revents & POLLIN) { in wifi_event_loop() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | wifi_hal.cpp | 301 pollfd pfd; in wifi_event_loop() local 302 memset(&pfd, 0, sizeof(pfd)); in wifi_event_loop() 304 pfd.fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 305 pfd.events = POLLIN; in wifi_event_loop() 311 pfd.revents = 0; in wifi_event_loop() 313 int result = poll(&pfd, 1, -1); in wifi_event_loop() 317 } else if (pfd.revents & (POLLIN | POLLHUP | POLLERR)) { in wifi_event_loop() 318 internal_event_handler(handle, pfd.revents); in wifi_event_loop()
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | stress_iio.c | 301 struct pollfd pfd[ARRAY_SIZE(event_file)]; in get_dmp_event() local 307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK); in get_dmp_event() 308 pfd[i].events = POLLPRI|POLLERR; in get_dmp_event() 309 pfd[i].revents = 0; in get_dmp_event() 310 read(pfd[i].fd, d, 4); in get_dmp_event() 313 poll(pfd, ARRAY_SIZE(event_file), -1); in get_dmp_event() 315 close(pfd[i].fd); in get_dmp_event() 318 for (i=0; i< ARRAY_SIZE(pfd); i++) { in get_dmp_event() 319 if(pfd[i].revents != 0) { in get_dmp_event() 761 struct pollfd pfd = { in read_data() local [all …]
|
/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/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
D | read_device_node.c | 92 struct pollfd pfd = { in read_data() local 96 poll(&pfd, 1, -1); in read_data()
|
/hardware/qcom/media/mm-video-legacy/vidc/venc/src/ |
D | video_encoder_device_copper.cpp | 169 struct pollfd pfd; in async_venc_message_thread() local 172 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 173 pfd.fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 177 rc = poll(&pfd, 1, TIMEOUT); in async_venc_message_thread() 185 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_venc_message_thread() 190 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); in async_venc_message_thread() 203 } else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_venc_message_thread() 207 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); in async_venc_message_thread() 216 } else if (pfd.revents & POLLPRI){ in async_venc_message_thread() 217 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 | 244 struct pollfd pfd; in async_venc_message_thread() local 247 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 248 pfd.fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 282 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_venc_message_thread() 293 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_venc_message_thread() 299 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 341 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_venc_message_thread() 347 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 361 if (pfd.revents & POLLPRI) { in async_venc_message_thread() 362 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_venc_message_thread()
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
D | mpu_iio.c | 898 struct pollfd pfd = { in main() local 902 poll(&pfd, 1, -1); in main()
|
/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 | 145 struct pollfd pfd; in async_message_thread() local 150 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 151 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 156 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_message_thread() 164 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_message_thread() 170 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 190 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_message_thread() 196 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 206 if (pfd.revents & POLLPRI) { in async_message_thread() 207 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
|
D | omx_vdec_msm8974.cpp | 140 struct pollfd pfd; in async_message_thread() local 145 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 146 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 151 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_message_thread() 159 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_message_thread() 166 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 186 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_message_thread() 192 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 202 if (pfd.revents & POLLPRI) { in async_message_thread() 203 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
|
D | omx_vdec_hevc_swvdec.cpp | 134 struct pollfd pfd; in async_message_thread() local 139 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 140 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()
|