/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 99 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_sig_async() 145 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_sig() 217 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_proc_pipe() 219 poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); in mm_camera_poll_proc_pipe() 225 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; in mm_camera_poll_proc_pipe() 352 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; in mm_camera_poll_thread() 499 poll_cb->pfds[0] = -1; in mm_camera_poll_thread_launch() 500 poll_cb->pfds[1] = -1; in mm_camera_poll_thread_launch() 501 rc = pipe(poll_cb->pfds); in mm_camera_poll_thread_launch() 511 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms); in mm_camera_poll_thread_launch() [all …]
|
/hardware/ti/am57x/libhwcomposer/ |
D | hwc.cpp | 324 struct pollfd pfds[1] = { in hwc_hdmi_thread() local 326 pfds[0].fd = uevent_get_fd(), in hwc_hdmi_thread() 327 pfds[0].events = POLLIN, in hwc_hdmi_thread() 328 pfds[0].revents = 0, in hwc_hdmi_thread() 340 int err = poll(pfds, ARRAY_SIZE(pfds), -1); in hwc_hdmi_thread() 346 if (pfds[0].revents & POLLIN) { in hwc_hdmi_thread() 370 struct pollfd pfds = { in hwc_drm_event_thread() local 371 pfds.fd = hwc_dev->card->fd(), in hwc_drm_event_thread() 372 pfds.events = POLLIN, in hwc_drm_event_thread() 373 pfds.revents = 0, in hwc_drm_event_thread() [all …]
|
/hardware/qcom/sm8150/media/hypv-intercept/ |
D | hypv_intercept.cpp | 287 struct pollfd *pfds = (struct pollfd *)fds; in exit_thread() local 288 int fd_index = pfds[0].fd & HYPV_HANDLE_MASK; in exit_thread() 294 exit_fd.fd = pfds[1].fd; in exit_thread()
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 260 struct pollfd pfds[2]; in async_venc_message_thread() local 264 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 265 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 266 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 267 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 303 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 314 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 319 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 325 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 372 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_venc_message_thread() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 328 struct pollfd pfds[2]; in async_venc_message_thread() local 332 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 333 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 334 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 335 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 371 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 382 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 387 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 393 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 442 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_venc_message_thread() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 304 struct pollfd pfds[2]; in async_venc_message_thread() local 308 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 309 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 310 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 311 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 347 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 358 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 363 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 369 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 418 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_venc_message_thread() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 269 struct pollfd pfds[2]; in async_venc_message_thread() local 273 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 274 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 275 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 276 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 312 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 323 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 328 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 334 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 381 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_venc_message_thread() [all …]
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_v4l2.cpp | 151 struct pollfd pfds[2]; in async_message_thread() local 156 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 157 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 158 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 159 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 164 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 172 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 176 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 183 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 198 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/ |
D | wsi_common_x11.c | 1321 struct pollfd pfds; in x11_poll_for_special_event() local 1357 pfds.fd = xcb_get_file_descriptor(chain->conn); in x11_poll_for_special_event() 1358 pfds.events = POLLIN; in x11_poll_for_special_event() 1359 int ret = poll(&pfds, 1, MAX2(rel_timeout / 1000 / 1000, 1u)); in x11_poll_for_special_event()
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_v4l2.cpp | 157 struct pollfd pfds[2]; in async_message_thread() local 162 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 163 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 164 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 165 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 170 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 178 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 182 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 189 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 211 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 176 int32_t pfds[2]; member
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_v4l2.cpp | 215 struct pollfd pfds[2]; in async_message_thread() local 220 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 221 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 222 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 223 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 228 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 236 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 240 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 247 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 262 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_v4l2.cpp | 172 struct pollfd pfds[2]; in async_message_thread() local 177 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 178 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 179 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 180 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 185 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 193 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 197 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 204 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 219 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|