Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c99 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/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Dvideo_encoder_device_v4l2.cpp328 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/camera/msm8998/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h176 int32_t pfds[2]; member
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_v4l2.cpp172 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 …]