/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/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/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 | 220 struct pollfd pfd[2]; in WaitForIdle() local 226 pfd[0].fd = mEventFd; in WaitForIdle() 227 pfd[0].events = POLLIN; in WaitForIdle() 228 pfd[1].fd = mIdleFd; in WaitForIdle() 229 pfd[1].events = POLLPRI | POLLERR; in WaitForIdle() 231 ret = poll(pfd, 1, wait_ms); in WaitForIdle() 251 ret = poll(pfd, 2, timeout_ms); in WaitForIdle() 256 else if (pfd[0].revents) in WaitForIdle() 258 else if (pfd[1].revents) in WaitForIdle()
|
/hardware/qcom/wlan/wcn6740/cld80211-lib/ |
D | cld80211_lib.c | 410 struct pollfd pfd[2]; in cld80211_recv() local 423 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); in cld80211_recv() 433 pfd[0].fd = nl_socket_get_fd(ctx->sock); in cld80211_recv() 434 pfd[0].events = POLLIN; in cld80211_recv() 436 pfd[1].fd = ctx->exit_sockets[1]; in cld80211_recv() 437 pfd[1].events = POLLIN; in cld80211_recv() 440 pfd[0].revents = 0; in cld80211_recv() 441 pfd[1].revents = 0; in cld80211_recv() 442 int result = poll(pfd, 2, timeout); in cld80211_recv() 445 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv() [all …]
|
/hardware/qcom/wlan/legacy/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/google/gfxstream/host/gl/glestranslator/EGL/ |
D | EglOsApi_wgl.cpp | 141 X(BOOL, SetPixelFormat, (HDC hdc, int iPixelFormat, const PIXELFORMATDESCRIPTOR* pfd)) \ 447 PIXELFORMATDESCRIPTOR pfd = { in initExtensionsDispatch() local 468 int iPixelFormat = dispatch->ChoosePixelFormat(hdc, &pfd); in initExtensionsDispatch() 474 if (!dispatch->SetPixelFormat(hdc, iPixelFormat, &pfd)) { in initExtensionsDispatch() 803 PIXELFORMATDESCRIPTOR pfd = { in initPixelFormat() local 823 return dispatch->ChoosePixelFormat(dc, &pfd); in initPixelFormat() 960 PIXELFORMATDESCRIPTOR pfd; in queryConfigs() local 962 dpy, 1, sizeof(PIXELFORMATDESCRIPTOR), &pfd); in queryConfigs() 972 dpy, configId, sizeof(PIXELFORMATDESCRIPTOR), &pfd); in queryConfigs() 977 &pfd, in queryConfigs()
|
/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/qcom/wlan/legacy/qcwcn/wifi_hal/ |
D | wifi_hal.cpp | 2021 pollfd pfd[4]; in wifi_event_loop() local 2022 memset(&pfd, 0, 4*sizeof(pfd[0])); in wifi_event_loop() 2024 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 2025 pfd[0].events = POLLIN; in wifi_event_loop() 2027 pfd[1].fd = nl_socket_get_fd(info->user_sock); in wifi_event_loop() 2028 pfd[1].events = POLLIN; in wifi_event_loop() 2030 pfd[2].fd = info->exit_sockets[1]; in wifi_event_loop() 2031 pfd[2].events = POLLIN; in wifi_event_loop() 2034 pfd[3].fd = info->wifihal_ctrl_sock.s ; in wifi_event_loop() 2035 pfd[3].events = POLLIN; in wifi_event_loop() [all …]
|
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/ |
D | wifi_hal.cpp | 2114 pollfd pfd[4]; in wifi_event_loop() local 2115 memset(&pfd, 0, 4*sizeof(pfd[0])); in wifi_event_loop() 2117 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 2118 pfd[0].events = POLLIN; in wifi_event_loop() 2120 pfd[1].fd = nl_socket_get_fd(info->user_sock); in wifi_event_loop() 2121 pfd[1].events = POLLIN; in wifi_event_loop() 2123 pfd[2].fd = info->exit_sockets[1]; in wifi_event_loop() 2124 pfd[2].events = POLLIN; in wifi_event_loop() 2127 pfd[3].fd = info->wifihal_ctrl_sock.s ; in wifi_event_loop() 2128 pfd[3].events = POLLIN; in wifi_event_loop() [all …]
|
/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/broadcom/wlan/bcmdhd/wifi_hal/ |
D | wifi_hal.cpp | 779 pollfd pfd[2]; in wifi_event_loop() local 780 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop() 782 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 783 pfd[0].events = POLLIN; in wifi_event_loop() 784 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop() 785 pfd[1].events = POLLIN; in wifi_event_loop() 792 pfd[0].revents = 0; in wifi_event_loop() 793 pfd[1].revents = 0; in wifi_event_loop() 795 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() 798 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop() [all …]
|
/hardware/synaptics/wlan/synadhd/wifi_hal/ |
D | wifi_hal.cpp | 739 pollfd pfd[2]; in wifi_event_loop() local 740 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop() 742 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 743 pfd[0].events = POLLIN; in wifi_event_loop() 744 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop() 745 pfd[1].events = POLLIN; in wifi_event_loop() 752 pfd[0].revents = 0; in wifi_event_loop() 753 pfd[1].revents = 0; in wifi_event_loop() 755 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() 758 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop() [all …]
|
/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/google/graphics/common/libhwc2.1/libdevice/ |
D | BrightnessController.cpp | 1005 struct pollfd pfd; in checkSysfsStatus() local 1009 pfd.fd = fd.get(); in checkSysfsStatus() 1010 pfd.events = POLLPRI; in checkSysfsStatus() 1018 int pollRet = poll(&pfd, 1, ns2ms(remainTimeNs)); in checkSysfsStatus() 1025 if (!(pfd.revents & POLLPRI)) { in checkSysfsStatus()
|
/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 …]
|