/hardware/qcom/audio/hal/audio_extn/ |
H A D | sndmonitor.c | 425 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), local 427 if (!pfd) 430 pfd[0].fd = sndmonitor.intpipe[0]; 431 pfd[0].events = POLLPRI|POLLIN; 437 pfd[i].fd = s->fd; 438 pfd[i].events = POLLPRI; 444 pfd[i].fd = d->fd; 445 pfd[i].events = POLLPRI; 450 if (poll(pfd, num_poll_fds, -1) < 0) { 471 if (READY_TO_READ(&pfd[ [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
H A D | hwc_vsync.cpp | 114 struct pollfd pfd[num_displays][num_events]; local 140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); 142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { 155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); 156 if (pfd[dpy][ev].fd >= 0) 157 pfd[dpy][ev].events = POLLPRI | POLLERR; 163 int err = poll(*pfd, num_displays * num_events, -1); 167 if (pfd[dpy][ev].revents & POLLPRI) { 168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); 205 if(pfd[dp [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
H A D | hwc_vsync.cpp | 104 struct pollfd pfd[num_displays][num_events]; local 128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); 130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { 143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); 144 if (pfd[dpy][ev].fd >= 0) 145 pfd[dpy][ev].events = POLLPRI | POLLERR; 151 int err = poll(*pfd, (int)(num_displays * num_events), -1); 155 if (pfd[dpy][ev].revents & POLLPRI) { 156 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); 206 if(pfd[dp [all...] |
/hardware/qcom/display/msm8909/libhwcomposer/ |
H A D | hwc_vsync.cpp | 123 struct pollfd pfd[num_displays][num_events]; local 144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); 146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { 161 pread(pfd[dpy][ev].fd, vdata , MAX_DATA - 1, 0); 162 if (pfd[dpy][ev].fd >= 0) 163 pfd[dpy][ev].events = POLLPRI | POLLERR; 169 int err = poll(*pfd, (int)(num_displays * num_events), -1); 173 if (pfd[dpy][ev].revents & POLLPRI) { 176 ssize_t len = pread(pfd[dpy][ev].fd, vdata, 215 if(pfd[dp [all...] |
/hardware/qcom/display/msm8994/libhwcomposer/ |
H A D | hwc_vsync.cpp | 123 struct pollfd pfd[num_displays][num_events]; local 144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); 146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { 159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); 160 if (pfd[dpy][ev].fd >= 0) 161 pfd[dpy][ev].events = POLLPRI | POLLERR; 167 int err = poll(*pfd, (int)(num_displays * num_events), -1); 171 if (pfd[dpy][ev].revents & POLLPRI) { 172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); 209 if(pfd[dp [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/ |
H A D | inv_gesture_test.c | 107 struct pollfd pfd[NUM_DMP_FEATS]; variable in typeref:struct:pollfd 571 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK); 576 pfd[i].fd = open(mpu.event_display_orientation, 582 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK); 587 pfd[i].fd = open(mpu.event_smd, O_RDONLY | O_NONBLOCK); 591 pfd[i].fd = -1; 594 pfd[i].events = POLLPRI|POLLERR, 595 pfd[i].revents = 0; 601 void parse_events(struct pollfd pfd[], int num_fds) argument 606 if(pfd[ [all...] |
/hardware/qcom/wlan/cld80211-lib/ |
H A D | cld80211_lib.c | 399 struct pollfd pfd[2]; local 412 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); 422 pfd[0].fd = nl_socket_get_fd(ctx->sock); 423 pfd[0].events = POLLIN; 425 pfd[1].fd = ctx->exit_sockets[1]; 426 pfd[1].events = POLLIN; 429 pfd[0].revents = 0; 430 pfd[1].revents = 0; 431 int result = poll(pfd, 2, timeout); 434 } else if (pfd[ [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
H A D | stress_iio.c | 301 struct pollfd pfd[ARRAY_SIZE(event_file)]; local 307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK); 308 pfd[i].events = POLLPRI|POLLERR; 309 pfd[i].revents = 0; 310 read(pfd[i].fd, d, 4); 313 poll(pfd, ARRAY_SIZE(event_file), -1); 315 close(pfd[i].fd); 318 for (i=0; i< ARRAY_SIZE(pfd); i++) { 319 if(pfd[i].revents != 0) { 761 struct pollfd pfd local [all...] |
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/ |
H A D | QCameraHAL3RawSnapshotTest.cpp | 164 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); 179 if (pipe(pfd) < 0) { 187 thread.readfd = pfd[0]; 188 thread.writefd = pfd[1];
|
H A D | QCameraHAL3SnapshotTest.cpp | 162 write(pfd[1], &msg, sizeof(buffer_thread_msg_t)); 176 if (pipe(pfd) < 0) { 184 thread.readfd = pfd[0]; 185 thread.writefd = pfd[1];
|
H A D | QCameraHAL3Test.cpp | 153 if (pipe(pfd) < 0) { 162 thread.readfd = pfd[0]; 163 thread.writefd = pfd[1];
|
H A D | QCameraHAL3Base.h | 135 extern int32_t pfd[2];
|
H A D | QCameraHAL3Base.cpp | 63 int pfd[2]; member in namespace:qcamera 156 write(pfd[1], &msg, sizeof(buffer_thread_msg_t));
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
H A D | wifi_hal.cpp | 414 pollfd pfd[2]; local 415 memset(&pfd[0], 0, sizeof(pollfd) * 2); 417 pfd[0].fd = nl_socket_get_fd(info->event_sock); 418 pfd[0].events = POLLIN; 419 pfd[1].fd = info->cleanup_socks[1]; 420 pfd[1].events = POLLIN; 427 pfd[0].revents = 0; 428 pfd[1].revents = 0; 430 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); 433 } else if (pfd[ [all...] |
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | wifi_hal.cpp | 827 pollfd pfd[3]; local 828 memset(&pfd, 0, 3*sizeof(pfd[0])); 830 pfd[0].fd = nl_socket_get_fd(info->event_sock); 831 pfd[0].events = POLLIN; 833 pfd[1].fd = nl_socket_get_fd(info->user_sock); 834 pfd[1].events = POLLIN; 836 pfd[2].fd = info->exit_sockets[1]; 837 pfd[2].events = POLLIN; 842 pfd[ [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
H A D | read_device_node.c | 92 struct pollfd pfd = { local 96 poll(&pfd, 1, -1);
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
H A D | aplay.c | 179 struct pollfd pfd[1]; local 278 pfd[0].fd = pcm->timer_fd; 279 pfd[0].events = POLLIN; 313 poll(pfd, nfds, TIMEOUT_INFINITE); 425 poll(pfd, nfds, TIMEOUT_INFINITE);
|
H A D | arec.c | 188 struct pollfd pfd[1]; local 264 pfd[0].fd = pcm->fd; 265 pfd[0].events = POLLIN; 304 poll(pfd, nfds, TIMEOUT_INFINITE);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/ |
H A D | video_encoder_device_copper.cpp | 169 struct pollfd pfd; local 172 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 173 pfd.fd = omx->handle->m_nDriver_fd; 177 rc = poll(&pfd, 1, TIMEOUT); 185 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 190 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); 203 } else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 207 rc = ioctl(pfd [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
H A D | mpu_iio.c | 898 struct pollfd pfd = { local 902 poll(&pfd, 1, -1);
|
/hardware/qcom/media/msm8996/videopp/src/ |
H A D | omx_vdpp.cpp | 113 struct pollfd pfd[2]; local 117 pfd[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 118 pfd[0].fd = omx->drv_ctx.video_vpu_fd; 119 pfd[1].events = POLLIN | POLLPRI | POLLERR; 120 pfd[1].fd = omx->m_ctrl_in; 127 rc = poll(pfd, 2, POLL_TIMEOUT); 138 if (pfd[1].revents & (POLLIN | POLLPRI | POLLERR)) 145 if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLRDNORM)) { 152 while(!ioctl(pfd[ 293 struct pollfd pfd; local [all...] |
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/ |
H A D | video_encoder_device_v4l2.cpp | 289 struct pollfd pfd; local 292 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 293 pfd.fd = omx->handle->m_nDriver_fd; 327 rc = poll(&pfd, 1, POLL_TIMEOUT); 338 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 344 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 386 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 392 while (!ioctl(pfd [all...] |
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
H A D | omx_vdec_copper.cpp | 130 struct pollfd pfd; local 133 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 135 pfd.fd = omx->drv_ctx.video_driver_fd; 141 rc = poll(&pfd, 1, TIMEOUT); 149 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 154 rc = ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf); 166 else if((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 170 rc = ioctl(pfd [all...] |
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
H A D | omx_vdec_hevc.cpp | 143 struct pollfd pfd; local 148 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 149 pfd.fd = omx->drv_ctx.video_driver_fd; 154 rc = poll(&pfd, 1, POLL_TIMEOUT); 162 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 168 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 188 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 194 while (!ioctl(pfd [all...] |
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
H A D | omx_vdec_hevc.cpp | 139 struct pollfd pfd; local 144 pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; 145 pfd.fd = omx->drv_ctx.video_driver_fd; 150 rc = poll(&pfd, 1, POLL_TIMEOUT); 158 if ((pfd.revents & POLLIN) || (pfd.revents & POLLRDNORM)) { 164 while (!ioctl(pfd.fd, VIDIOC_DQBUF, &v4l2_buf)) { 184 if ((pfd.revents & POLLOUT) || (pfd.revents & POLLWRNORM)) { 190 while (!ioctl(pfd [all...] |