/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/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/sdm845/media/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device_v4l2.cpp | 226 struct pollfd pfds[2]; in async_venc_message_thread() local 230 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 231 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 232 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 233 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 269 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 280 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 285 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 291 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 340 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 | 255 struct pollfd pfds[2]; in async_venc_message_thread() local 259 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_venc_message_thread() 260 pfds[1].events = POLLIN | POLLERR; in async_venc_message_thread() 261 pfds[0].fd = omx->handle->m_nDriver_fd; in async_venc_message_thread() 262 pfds[1].fd = omx->handle->m_poll_efd; in async_venc_message_thread() 298 rc = poll(pfds, 2, POLL_TIMEOUT); in async_venc_message_thread() 309 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_venc_message_thread() 314 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_venc_message_thread() 320 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_venc_message_thread() 367 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/vdec/src/ |
D | omx_vdec_v4l2.cpp | 197 struct pollfd pfds[2]; in async_message_thread() local 202 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 203 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 204 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 205 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 210 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 218 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 222 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 229 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 244 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_v4l2.cpp | 193 struct pollfd pfds[2]; in async_message_thread() local 198 pfds[0].events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND | POLLPRI; in async_message_thread() 199 pfds[1].events = POLLIN | POLLERR; in async_message_thread() 200 pfds[0].fd = omx->drv_ctx.video_driver_fd; in async_message_thread() 201 pfds[1].fd = omx->m_poll_efd; in async_message_thread() 206 rc = poll(pfds, 2, POLL_TIMEOUT); in async_message_thread() 214 if ((pfds[1].revents & POLLIN) || (pfds[1].revents & POLLERR)) { in async_message_thread() 218 if ((pfds[0].revents & POLLIN) || (pfds[0].revents & POLLRDNORM)) { in async_message_thread() 225 while (!ioctl(pfds[0].fd, VIDIOC_DQBUF, &v4l2_buf)) { in async_message_thread() 240 if ((pfds[0].revents & POLLOUT) || (pfds[0].revents & POLLWRNORM)) { in async_message_thread() [all …]
|
/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/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 …]
|