Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 25 of 26) 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/libhardware_legacy/
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/interfaces/dumpstate/1.0/vts/functional/
DVtsHalDumpstateV1_0TargetTest.cpp79 int fds[2]; in TEST_F() local
80 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in TEST_F()
84 handle->data[0] = fds[1]; in TEST_F()
91 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "dumped nothing"; in TEST_F()
/hardware/interfaces/bluetooth/1.0/default/
Dmct_protocol.cc31 MctProtocol::MctProtocol(int* fds, PacketReadCallback event_cb, in MctProtocol() argument
38 uart_fds_[i] = fds[i];
Dmct_protocol.h33 MctProtocol(int* fds, PacketReadCallback event_cb, PacketReadCallback acl_cb);
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp451 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
454 bool rerun = (fds > 0) || (errno == EINTR); in run()
456 if (fds > 0) { in run()
458 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8909w_3100/utils/
DLocTimer.cpp452 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
455 bool rerun = (fds > 0) || (errno == EINTR); in run()
457 if (fds > 0) { in run()
459 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8998/utils/
DLocTimer.cpp451 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
454 bool rerun = (fds > 0) || (errno == EINTR); in run()
456 if (fds > 0) { in run()
458 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp452 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
455 bool rerun = (fds > 0) || (errno == EINTR); in run()
457 if (fds > 0) { in run()
459 for (int i = 0; i < fds; i++) { in run()
/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
566 if (pipe(fds)) { in component_init()
570 if (fds[0] == 0 || fds[1] == 0) { in component_init()
571 if (pipe(fds)) { in component_init()
577 m_pipe_in = fds[0]; in component_init()
578 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/interfaces/audio/core/4.0/vts/functional/
DAudioPrimaryHidlHalTest.cpp507 int fds[2]; in testDebugDump() local
508 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in testDebugDump()
512 fcntl(fds[0], F_SETPIPE_SZ, 1 << 20); in testDebugDump()
517 nativeHandle->data[0] = fds[1]; in testDebugDump()
530 if (read(fds[0], &buff, 1) != 1) { in testDebugDump()
533 EXPECT_EQ(0, close(fds[0])) << errno; in testDebugDump()
534 EXPECT_EQ(0, close(fds[1])) << errno; in testDebugDump()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp123 int fds[2]; in component_init() local
484 if (pipe(fds)) { in component_init()
488 if (fds[0] == 0 || fds[1] == 0) { in component_init()
489 if (pipe(fds)) { in component_init()
495 m_pipe_in = fds[0]; in component_init()
496 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/
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()
Domx_video_encoder.cpp191 int fds[2]; in component_init() local
584 if (pipe(fds)) { in component_init()
589 if (fds[0] == 0 || fds[1] == 0) { in component_init()
590 if (pipe(fds)) { in component_init()
597 m_pipe_in = fds[0]; in component_init()
598 m_pipe_out = fds[1]; in component_init()
/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-v4l2/vidc/vdec/src/
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()
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_hevc_swvdec.cpp1731 int fds[2]; in component_init() local
2027 if(pipe(fds)) in component_init()
2034 if(fds[0] == 0 || fds[1] == 0) in component_init()
2036 if (pipe (fds)) in component_init()
2042 m_pipe_in = fds[0]; in component_init()
2043 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
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/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc.cpp1236 int fds[2]; in component_init() local
1565 if (pipe(fds)) { in component_init()
1570 if (fds[0] == 0 || fds[1] == 0) { in component_init()
1577 fds[0] = temp1 [0]; in component_init()
1578 fds[1] = temp1 [1]; in component_init()
1580 m_pipe_in = fds[0]; in component_init()
1581 m_pipe_out = fds[1]; in component_init()
Domx_vdec_hevc_swvdec.cpp1748 int fds[2]; in component_init() local
2050 if(pipe(fds)) in component_init()
2057 if(fds[0] == 0 || fds[1] == 0) in component_init()
2059 if (pipe (fds)) in component_init()
2065 m_pipe_in = fds[0]; in component_init()
2066 m_pipe_out = fds[1]; in component_init()

12