Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 25 of 28) sorted by relevance

12

/hardware/intel/img/hwcomposer/merrifield/common/observers/
DUeventObserver.cpp159 struct pollfd fds[2]; in threadLoop() local
162 fds[0].fd = mUeventFd; in threadLoop()
163 fds[0].events = POLLIN; in threadLoop()
164 fds[0].revents = 0; in threadLoop()
165 fds[1].fd = mExitRDFd; in threadLoop()
166 fds[1].events = POLLIN; in threadLoop()
167 fds[1].revents = 0; in threadLoop()
168 nr = poll(fds, 2, -1); in threadLoop()
170 if (nr > 0 && fds[0].revents == POLLIN) { in threadLoop()
175 } else if (fds[1].revents) { in threadLoop()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
DUeventObserver.cpp159 struct pollfd fds[2]; in threadLoop() local
162 fds[0].fd = mUeventFd; in threadLoop()
163 fds[0].events = POLLIN; in threadLoop()
164 fds[0].revents = 0; in threadLoop()
165 fds[1].fd = mExitRDFd; in threadLoop()
166 fds[1].events = POLLIN; in threadLoop()
167 fds[1].revents = 0; in threadLoop()
168 nr = poll(fds, 2, -1); in threadLoop()
170 if (nr > 0 && fds[0].revents == POLLIN) { in threadLoop()
175 } else if (fds[1].revents) { in threadLoop()
/hardware/qcom/audio/msm8909/mm-audio/aenc-aac/qdsp6/src/
Daenc_svr.c98 int fds[2]; in omx_aac_thread_create() local
111 if (pipe(fds)) in omx_aac_thread_create()
117 aac_info->pipe_in = fds[0]; in omx_aac_thread_create()
118 aac_info->pipe_out = fds[1]; in omx_aac_thread_create()
151 int fds[2]; in omx_aac_event_thread_create() local
164 if (pipe(fds)) in omx_aac_event_thread_create()
170 aac_info->pipe_in = fds[0]; in omx_aac_event_thread_create()
171 aac_info->pipe_out = fds[1]; in omx_aac_event_thread_create()
/hardware/qcom/audio/msm8909/mm-audio/aenc-qcelp13/qdsp6/src/
Daenc_svr.c98 int fds[2]; in omx_qcelp13_thread_create() local
112 if (pipe(fds)) in omx_qcelp13_thread_create()
118 qcelp13_info->pipe_in = fds[0]; in omx_qcelp13_thread_create()
119 qcelp13_info->pipe_out = fds[1]; in omx_qcelp13_thread_create()
152 int fds[2]; in omx_qcelp13_event_thread_create() local
166 if (pipe(fds)) in omx_qcelp13_event_thread_create()
172 qcelp13_info->pipe_in = fds[0]; in omx_qcelp13_event_thread_create()
173 qcelp13_info->pipe_out = fds[1]; in omx_qcelp13_event_thread_create()
/hardware/qcom/audio/msm8909/mm-audio/aenc-evrc/qdsp6/src/
Daenc_svr.c98 int fds[2]; in omx_evrc_thread_create() local
111 if (pipe(fds)) in omx_evrc_thread_create()
117 evrc_info->pipe_in = fds[0]; in omx_evrc_thread_create()
118 evrc_info->pipe_out = fds[1]; in omx_evrc_thread_create()
151 int fds[2]; in omx_evrc_event_thread_create() local
164 if (pipe(fds)) in omx_evrc_event_thread_create()
170 evrc_info->pipe_in = fds[0]; in omx_evrc_event_thread_create()
171 evrc_info->pipe_out = fds[1]; in omx_evrc_event_thread_create()
/hardware/qcom/audio/msm8909/mm-audio/aenc-amrnb/qdsp6/src/
Daenc_svr.c98 int fds[2]; in omx_amr_thread_create() local
111 if (pipe(fds)) in omx_amr_thread_create()
117 amr_info->pipe_in = fds[0]; in omx_amr_thread_create()
118 amr_info->pipe_out = fds[1]; in omx_amr_thread_create()
151 int fds[2]; in omx_amr_event_thread_create() local
164 if (pipe(fds)) in omx_amr_event_thread_create()
170 amr_info->pipe_in = fds[0]; in omx_amr_event_thread_create()
171 amr_info->pipe_out = fds[1]; in omx_amr_event_thread_create()
/hardware/libhardware_legacy/uevent/
Duevent.c77 struct pollfd fds; in uevent_next_event() local
80 fds.fd = fd; in uevent_next_event()
81 fds.events = POLLIN; in uevent_next_event()
82 fds.revents = 0; in uevent_next_event()
83 nr = poll(&fds, 1, -1); in uevent_next_event()
85 if(nr > 0 && (fds.revents & POLLIN)) { in uevent_next_event()
/hardware/ti/omap4xxx/libtiutils/
DMessageQueue.cpp44 int fds[2] = {-1,-1}; in MessageQueue() local
47 stat = pipe(fds); in MessageQueue()
58 this->fd_read = fds[0]; in MessageQueue()
59 this->fd_write = fds[1]; in MessageQueue()
/hardware/ti/omap4-aah/libtiutils/
DMessageQueue.cpp45 int fds[2] = {-1,-1}; in MessageQueue() local
48 stat = pipe(fds); in MessageQueue()
59 this->fd_read = fds[0]; in MessageQueue()
60 this->fd_write = fds[1]; in MessageQueue()
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp450 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
453 bool rerun = (fds > 0) || (errno == EINTR); in run()
455 if (fds > 0) { in run()
457 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp450 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
453 bool rerun = (fds > 0) || (errno == EINTR); in run()
455 if (fds > 0) { in run()
457 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/display/msm8996/sdm/libs/utils/
Dsys.cpp64 extern int virtual_poll(struct pollfd *fds, nfds_t num, int timeout);
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_swvenc_hevc.cpp101 int fds[2]; in component_init() local
327 if (pipe(fds)) { in component_init()
331 if (fds[0] == 0 || fds[1] == 0) { in component_init()
332 if (pipe(fds)) { in component_init()
338 m_pipe_in = fds[0]; in component_init()
339 m_pipe_out = fds[1]; in component_init()
Domx_video_encoder.cpp196 int fds[2]; in component_init() local
551 if (pipe(fds)) { in component_init()
555 if (fds[0] == 0 || fds[1] == 0) { in component_init()
556 if (pipe(fds)) { in component_init()
562 m_pipe_in = fds[0]; in component_init()
563 m_pipe_out = fds[1]; in component_init()
Domx_swvenc_mpeg4.cpp119 int fds[2]; in component_init() local
421 if (pipe(fds)) in component_init()
428 if ((fds[0] == 0) || (fds[1] == 0)) in component_init()
430 if (pipe(fds)) in component_init()
438 m_pipe_in = fds[0]; in component_init()
439 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Domx_video_encoder.cpp101 int fds[2]; in component_init() local
420 if(pipe(fds)) in component_init()
427 if(fds[0] == 0 || fds[1] == 0) in component_init()
429 if(pipe(fds)) in component_init()
437 m_pipe_in = fds[0]; in component_init()
438 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/camera/usbcamcore/src/
DQualcommUsbCamera.cpp2050 fd_set fds; in previewloop() local
2054 FD_ZERO(&fds); in previewloop()
2056 FD_SET(camHal->fd, &fds); in previewloop()
2067 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv); in previewloop()
2518 fd_set fds; in takePictureThread() local
2522 FD_ZERO(&fds); in takePictureThread()
2523 FD_SET(camHal->fd, &fds); in takePictureThread()
2530 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv); in takePictureThread()
/hardware/ti/omap4xxx/hwc/
Dhwc.c1844 struct pollfd fds[2]; in omap4_hwc_hdmi_thread() local
1853 fds[0].fd = uevent_get_fd(); in omap4_hwc_hdmi_thread()
1854 fds[0].events = POLLIN; in omap4_hwc_hdmi_thread()
1855 fds[1].fd = hwc_dev->pipe_fds[0]; in omap4_hwc_hdmi_thread()
1856 fds[1].events = POLLIN; in omap4_hwc_hdmi_thread()
1863 err = poll(fds, hwc_dev->idle ? 2 : 1, timeout); in omap4_hwc_hdmi_thread()
1891 if (hwc_dev->idle && fds[1].revents & POLLIN) { in omap4_hwc_hdmi_thread()
1898 if (fds[0].revents & POLLIN) { in omap4_hwc_hdmi_thread()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp123 int fds[2]; in component_init() local
477 if (pipe(fds)) { in component_init()
481 if (fds[0] == 0 || fds[1] == 0) { in component_init()
482 if (pipe(fds)) { in component_init()
488 m_pipe_in = fds[0]; in component_init()
489 m_pipe_out = fds[1]; in component_init()
/hardware/ti/omap4-aah/hwc/
Dhwc.c2489 struct pollfd fds[2]; in omap4_hwc_hdmi_thread() local
2498 fds[0].fd = uevent_get_fd(); in omap4_hwc_hdmi_thread()
2499 fds[0].events = POLLIN; in omap4_hwc_hdmi_thread()
2500 fds[1].fd = hwc_dev->wakeup_evt; in omap4_hwc_hdmi_thread()
2501 fds[1].events = POLLIN; in omap4_hwc_hdmi_thread()
2545 err = poll(fds, 2, effective_timeout); in omap4_hwc_hdmi_thread()
2587 if (fds[1].revents & POLLIN) { in omap4_hwc_hdmi_thread()
2596 if (fds[0].revents & POLLIN) { in omap4_hwc_hdmi_thread()
/hardware/qcom/media/msm8996/videopp/src/
Domx_vdpp.cpp1449 int fds[2]; in component_init() local
1714 if(pipe(fds)) in component_init()
1722 if(fds[0] == 0 || fds[1] == 0) in component_init()
1729 fds[0] = temp1 [0]; in component_init()
1730 fds[1] = temp1 [1]; in component_init()
1732 m_pipe_in = fds[0]; in component_init()
1733 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
Domx_vdec_copper.cpp1193 int fds[2]; in component_init() local
1494 if(pipe(fds)) in component_init()
1502 if(fds[0] == 0 || fds[1] == 0) in component_init()
1511 fds[0] = temp1 [0]; in component_init()
1512 fds[1] = temp1 [1]; in component_init()
1514 m_pipe_in = fds[0]; in component_init()
1515 m_pipe_out = fds[1]; in component_init()
Domx_vdec.cpp1193 int fds[2]; in component_init() local
1578 if(pipe(fds)) in component_init()
1586 if(fds[0] == 0 || fds[1] == 0) in component_init()
1595 fds[0] = temp1 [0]; in component_init()
1596 fds[1] = temp1 [1]; in component_init()
1598 m_pipe_in = fds[0]; in component_init()
1599 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc.cpp1241 int fds[2]; in component_init() local
1586 if (pipe(fds)) { in component_init()
1591 if (fds[0] == 0 || fds[1] == 0) { in component_init()
1598 fds[0] = temp1 [0]; in component_init()
1599 fds[1] = temp1 [1]; in component_init()
1601 m_pipe_in = fds[0]; in component_init()
1602 m_pipe_out = fds[1]; in component_init()
Domx_vdec.cpp1157 int fds[2]; in component_init() local
1544 if (pipe(fds)) { in component_init()
1550 if (fds[0] == 0 || fds[1] == 0) { in component_init()
1558 fds[0] = temp1 [0]; in component_init()
1559 fds[1] = temp1 [1]; in component_init()
1562 m_pipe_in = fds[0]; in component_init()
1563 m_pipe_out = fds[1]; in component_init()

12