/hardware/qcom/display/msm8084/libhwcomposer/ |
D | hwc_vsync.cpp | 114 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop() 156 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 163 int err = poll(*pfd, num_displays * num_events, -1); in vsync_loop() 167 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop() 205 if(pfd[dpy][event].fd >= 0) in vsync_loop() [all …]
|
/hardware/qcom/display/msm8994/libhwcomposer/ |
D | hwc_vsync.cpp | 123 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop() 160 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 161 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 167 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop() 171 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop() 209 if(pfd[dpy][event].fd >= 0) in vsync_loop() [all …]
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
D | hwc_vsync.cpp | 104 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local 128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop() 130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop() 143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop() 144 if (pfd[dpy][ev].fd >= 0) in vsync_loop() 145 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop() 151 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop() 155 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop() 156 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/audio/hal/audio_extn/ |
D | sndmonitor.c | 462 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), in monitor_thread_loop() local 464 if (!pfd) in monitor_thread_loop() 467 pfd[0].fd = sndmonitor.intpipe[0]; in monitor_thread_loop() 468 pfd[0].events = POLLPRI|POLLIN; in monitor_thread_loop() 474 pfd[i].fd = s->fd; in monitor_thread_loop() 475 pfd[i].events = POLLPRI; in monitor_thread_loop() 481 pfd[i].fd = d->fd; in monitor_thread_loop() 482 pfd[i].events = POLLPRI; in monitor_thread_loop() 487 if (poll(pfd, num_poll_fds, -1) < 0) { in monitor_thread_loop() 508 if (READY_TO_READ(&pfd[0])) { in monitor_thread_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/google/pixel/power-libperfmgr/disp-power/ |
D | InteractionHandler.cpp | 195 struct pollfd pfd[2]; in WaitForIdle() local 201 pfd[0].fd = mEventFd; in WaitForIdle() 202 pfd[0].events = POLLIN; in WaitForIdle() 203 pfd[1].fd = mIdleFd; in WaitForIdle() 204 pfd[1].events = POLLPRI | POLLERR; in WaitForIdle() 206 ret = poll(pfd, 1, wait_ms); in WaitForIdle() 226 ret = poll(pfd, 2, timeout_ms); in WaitForIdle() 231 else if (pfd[0].revents) in WaitForIdle() 233 else if (pfd[1].revents) in WaitForIdle()
|
/hardware/qcom/wlan/cld80211-lib/ |
D | cld80211_lib.c | 399 struct pollfd pfd[2]; in cld80211_recv() local 412 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); in cld80211_recv() 422 pfd[0].fd = nl_socket_get_fd(ctx->sock); in cld80211_recv() 423 pfd[0].events = POLLIN; in cld80211_recv() 425 pfd[1].fd = ctx->exit_sockets[1]; in cld80211_recv() 426 pfd[1].events = POLLIN; in cld80211_recv() 429 pfd[0].revents = 0; in cld80211_recv() 430 pfd[1].revents = 0; in cld80211_recv() 431 int result = poll(pfd, 2, timeout); in cld80211_recv() 434 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv() [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/camera/msm8998/QCamera2/HAL3/test/ |
D | QCameraHAL3SnapshotTest.cpp | 162 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in snapshotTestEnd() 176 if (pipe(pfd) < 0) { in snapshotThreadCreate() 184 thread.readfd = pfd[0]; in snapshotThreadCreate() 185 thread.writefd = pfd[1]; in snapshotThreadCreate()
|
D | QCameraHAL3RawSnapshotTest.cpp | 164 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in rawTestEnd() 179 if (pipe(pfd) < 0) { in rawProcessThreadCreate() 187 thread.readfd = pfd[0]; in rawProcessThreadCreate() 188 thread.writefd = pfd[1]; in rawProcessThreadCreate()
|
D | QCameraHAL3Test.cpp | 153 if (pipe(pfd) < 0) { in processThreadCreate() 162 thread.readfd = pfd[0]; in processThreadCreate() 163 thread.writefd = pfd[1]; in processThreadCreate()
|
D | QCameraHAL3Base.h | 135 extern int32_t pfd[2];
|
D | QCameraHAL3Base.cpp | 63 int pfd[2]; variable 156 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); in ProcessCaptureResult()
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | wifi_hal.cpp | 636 pollfd pfd[2]; in wifi_event_loop() local 637 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop() 639 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 640 pfd[0].events = POLLIN; in wifi_event_loop() 641 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop() 642 pfd[1].events = POLLIN; in wifi_event_loop() 649 pfd[0].revents = 0; in wifi_event_loop() 650 pfd[1].revents = 0; in wifi_event_loop() 652 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() 655 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | wifi_hal.cpp | 1484 pollfd pfd[4]; in wifi_event_loop() local 1485 memset(&pfd, 0, 4*sizeof(pfd[0])); in wifi_event_loop() 1487 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 1488 pfd[0].events = POLLIN; in wifi_event_loop() 1490 pfd[1].fd = nl_socket_get_fd(info->user_sock); in wifi_event_loop() 1491 pfd[1].events = POLLIN; in wifi_event_loop() 1493 pfd[2].fd = info->exit_sockets[1]; in wifi_event_loop() 1494 pfd[2].events = POLLIN; in wifi_event_loop() 1497 pfd[3].fd = info->wifihal_ctrl_sock.s ; in wifi_event_loop() 1498 pfd[3].events = POLLIN; in wifi_event_loop() [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/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 | 289 struct pollfd pfd; in async_venc_message_thread() local 292 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 293 pfd.fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 327 rc = poll(&pfd, 1, POLL_TIMEOUT); in async_venc_message_thread() 338 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { in async_venc_message_thread() 344 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 386 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_venc_message_thread() 392 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 410 if (pfd.revents & POLLPRI) { in async_venc_message_thread() 411 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/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()
|
D | omx_vdec_msm8974.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() 171 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 193 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { in async_message_thread() 199 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 209 if (pfd.revents & POLLPRI) { in async_message_thread() 210 rc = ioctl(pfd.fd, VIDIOC_DQEVENT, &dqevent); in async_message_thread()
|