/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/audio/msm8909/audiod/ |
D | AudioDaemon.cpp | 218 struct pollfd *pfd = NULL; in threadLoop() local 270 pfd = new pollfd[mSndCardFd.size() + mAudioEvents.size()]; in threadLoop() 271 bzero(pfd, (sizeof(*pfd) * mSndCardFd.size() + in threadLoop() 272 sizeof(*pfd) * mAudioEvents.size())); in threadLoop() 274 pfd[i].fd = mSndCardFd[i].second; in threadLoop() 275 pfd[i].events = POLLPRI; in threadLoop() 280 pfd[i+mSndCardFd.size()].fd = mAudioEvents[i].second; in threadLoop() 281 pfd[i+mSndCardFd.size()].events = POLLPRI; in threadLoop() 286 if (!read(pfd[i].fd, (void *)rd_buf, 8)) { in threadLoop() 291 lseek(pfd[i].fd, 0, SEEK_SET); in threadLoop() [all …]
|
/hardware/qcom/display/msm8994/libhwcomposer/ |
D | hwc_vsync.cpp | 124 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 145 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 160 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop() 161 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 162 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 168 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop() 172 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 173 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop() 210 if(pfd[dpy][event].fd >= 0) in vsync_loop() [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/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/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/qcom/display/msm8909/libhwcomposer/ |
D | hwc_vsync.cpp | 124 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 145 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 147 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 162 pread(pfd[dpy][ev].fd, vdata , MAX_DATA - 1, 0); in vsync_loop() 163 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 164 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 170 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop() 174 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 177 ssize_t len = pread(pfd[dpy][ev].fd, vdata, in vsync_loop() 216 if(pfd[dpy][event].fd >= 0) in vsync_loop() [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/broadcom/wlan/bcmdhd/wifi_hal/ |
D | wifi_hal.cpp | 398 pollfd pfd[2]; in wifi_event_loop() local 399 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop() 401 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 402 pfd[0].events = POLLIN; in wifi_event_loop() 403 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop() 404 pfd[1].events = POLLIN; in wifi_event_loop() 411 pfd[0].revents = 0; in wifi_event_loop() 412 pfd[1].revents = 0; in wifi_event_loop() 414 int result = poll(pfd, 2, timeout); in wifi_event_loop() 417 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop() [all …]
|
/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/wlan/qcwcn/wifi_hal/ |
D | wifi_hal.cpp | 713 pollfd pfd[3]; in wifi_event_loop() local 714 memset(&pfd, 0, 3*sizeof(pfd[0])); in wifi_event_loop() 716 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 717 pfd[0].events = POLLIN; in wifi_event_loop() 719 pfd[1].fd = nl_socket_get_fd(info->user_sock); in wifi_event_loop() 720 pfd[1].events = POLLIN; in wifi_event_loop() 722 pfd[2].fd = info->exit_sockets[1]; in wifi_event_loop() 723 pfd[2].events = POLLIN; in wifi_event_loop() 729 pfd[0].revents = 0; in wifi_event_loop() 730 pfd[1].revents = 0; in wifi_event_loop() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/src/iio/ |
D | iio.c | 292 struct pollfd pfd; in mraa_iio_wait_event() local 298 pfd.fd = fd; in mraa_iio_wait_event() 299 pfd.events = POLLIN; in mraa_iio_wait_event() 303 int x = poll(&pfd, 1, -1); in mraa_iio_wait_event() 424 struct pollfd pfd; in mraa_iio_event_poll_nonblock() local 430 pfd.fd = fd; in mraa_iio_event_poll_nonblock() 431 pfd.events = POLLIN; in mraa_iio_event_poll_nonblock() 435 int x = poll(&pfd, 1, -1); in mraa_iio_event_poll_nonblock()
|
/hardware/bsp/intel/peripheral/libmraa/src/gpio/ |
D | gpio.c | 197 struct pollfd pfd[1]; in mraa_gpio_wait_interrupt() local 199 struct pollfd pfd[2]; in mraa_gpio_wait_interrupt() local 211 pfd[0].fd = fd; in mraa_gpio_wait_interrupt() 212 pfd[0].events = POLLPRI; in mraa_gpio_wait_interrupt() 221 int x = poll(pfd, 1, -1); in mraa_gpio_wait_interrupt() 224 pfd[1].fd = control_fd; in mraa_gpio_wait_interrupt() 225 pfd[1].events = 0; // POLLHUP, POLLERR, and POLLNVAL in mraa_gpio_wait_interrupt() 228 int x = poll(pfd, 2, -1); in mraa_gpio_wait_interrupt()
|
/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/msm8974/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/msm8996/videopp/src/ |
D | omx_vdpp.cpp | 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() [all …]
|
/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/msm8974/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 288 struct pollfd pfd; in async_venc_message_thread() local 291 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 292 pfd.fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 326 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_venc_message_thread() 337 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_venc_message_thread() 343 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 385 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_venc_message_thread() 391 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 409 if (pfd.revents & POLLPRI) { in async_venc_message_thread() 410 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_venc_message_thread()
|
/hardware/qcom/media/msm8974/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/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_hevc.cpp | 139 struct pollfd pfd; in async_message_thread() local 144 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 145 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 150 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_message_thread() 158 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_message_thread() 164 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 184 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_message_thread() 190 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 200 if (pfd.revents & POLLPRI) { in async_message_thread() 201 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_hevc.cpp | 143 struct pollfd pfd; in async_message_thread() local 148 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 149 pfd.fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 154 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_message_thread() 162 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_message_thread() 168 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 188 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_message_thread() 194 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 204 if (pfd.revents & POLLPRI) { in async_message_thread() 205 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
|