Home
last modified time | relevance | path

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

/device/google/trout/hal/sensors/2.0/
DMultiPoll.cpp24 pollfd pfd{.fd = fd, .events = POLLIN, .revents = 0}; in addDescriptor()
41 if (fd.revents & POLLIN) { in poll()
DSensor.cpp191 if (mPollFdIio.revents & POLLIN) { in pollForEvents()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DRunLoop.cpp347 if (pollFds[0].revents & POLLIN) { in run()
365 const short revents = pollFd.revents; in run() local
367 if (revents) { in run()
371 const bool readable = (revents & POLLIN); in run()
372 const bool writable = (revents & POLLOUT); in run()
373 const bool dead = (revents & POLLNVAL); in run()
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp115 if ((fd.revents & (POLLIN | POLLHUP)) == 0) { in run()
125 if (fd.revents & POLLIN) { in run()
133 if (fd.revents & POLLHUP) { in run()
/device/generic/goldfish/network/netmgr/
Dpoller.cpp116 if ((fd.revents & (POLLIN | POLLHUP)) == 0) { in run()
126 if (fd.revents & POLLIN) { in run()
134 if (fd.revents & POLLHUP) { in run()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/WebServer/
DWebServer.c117 pFdListNew[ Index ].revents = 0; in PortAdd()
194 pFdList[ pWebServer->Entries ].revents = 0; in PortAdd()
283 pFdList[ Index ].revents = 0; in PortRemove()
516 if ( 0 != pPoll->revents ) { in SocketPoll()
522 pPoll->revents, in SocketPoll()
524 pPoll->revents = 0; in SocketPoll()
/device/amlogic/yukawa/hdmicec/
Dhdmi_cec.c288 ufds[0].revents = 0; in event_thread()
289 ufds[1].revents = 0; in event_thread()
290 ufds[2].revents = 0; in event_thread()
297 if (ufds[2].revents == POLLIN) /* Exit */ in event_thread()
300 if (ufds[1].revents == POLLERR) { /* CEC Event */ in event_thread()
325 if (ufds[0].revents == POLLIN) { /* CEC Driver */ in event_thread()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dpoll.h60 short revents; /* events returned */ member
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/DataSink/
DDataSink.c143 PollFd[ Index ].revents = 0; in SocketAccept()
320 if ( 0 != PollFd[ Index ].revents ) { in SocketPoll()
327 if ( 0 != ( PollFd[ Index ].revents & POLLHUP )) { in SocketPoll()
450 if ( 0 != ( PollFd[ Index ].revents & POLLRDNORM )) { in SocketPoll()
604 PollFd[ Index ].revents = 0; in SocketPoll()
802 PollFd[ EntryPrevious ].revents = PollFd[ Entry ].revents; in SocketPoll()
/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp132 if ((pfd.revents & POLLIN)) { in discard_inotify_evt()
252 if (myFds[IDX_NANOHUB].revents & POLLIN) { // we have data in runDeviceRx()
302 if (myFds[IDX_CLOSE_PIPE].revents & POLLIN) { // we have been asked to die in runDeviceRx()
/device/linaro/poplar/wifi/wifi_hal/
Dwifi_hal.cpp475 pfd[0].revents = 0; in wifi_event_loop()
476 pfd[1].revents = 0; in wifi_event_loop()
481 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop()
486 } else if (pfd[0].revents & POLLHUP) { in wifi_event_loop()
489 } else if (pfd[0].revents & POLLIN) { in wifi_event_loop()
492 } else if (pfd[1].revents & POLLIN) { in wifi_event_loop()
507 ALOGE("Unknown event - %0x, %0x", pfd[0].revents, pfd[1].revents); in wifi_event_loop()
/device/linaro/hikey/wpan/uim/
Duim.c535 p.revents = 0; in main()
537 UIM_DBG("poll broke due to event %d(PRI:%d/ERR:%d)\n", p.revents, POLLPRI, POLLERR); in main()
/device/generic/goldfish/radio/ril/
Dif_monitor.cpp241 if (fds[0].revents & POLLIN) { in run()
251 } else if (fds[1].revents & POLLIN) { in run()
Dipv6_monitor.cpp337 if (fds[0].revents & POLLIN) { in run()
347 } else if (fds[1].revents & POLLIN) { in run()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/
DTftpServer.c728 int revents; in PortWork() local
742 revents = pTftpPort->revents; in PortWork()
743 pTftpPort->revents = 0; in PortWork()
744 if ( 0 != ( revents & POLLRDNORM )) { in PortWork()
812 revents |= POLLHUP; in PortWork()
819 if ( 0 != ( revents & POLLHUP )) { in PortWork()
1924 pTftpPort->revents = 0; in TftpServerSocket()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/
Dselect.c130 pfd.revents = 0; in selscan()
DSysCalls.c820 pPollFD->revents = pDescriptor->f_ops->fo_poll ( pDescriptor, in poll()
826 if ( 0 != pPollFD->revents ) { in poll()
/device/generic/goldfish/wifi/wifi_hal/
Dnetlink.cpp119 if ((fd.revents & POLLIN) == 0) { in eventLoop()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp141 mPollFds[0].revents = 0; in HubConnection()
159 mPollFds[mNumPollFds].revents = 0; in HubConnection()
173 mPollFds[mNumPollFds].revents = 0; in HubConnection()
991 if ((ret > 0) && (pfd->revents & POLLIN)) { in waitOnNanohubLock()
1501 if (mInotifyPollIndex >= 0 && mPollFds[mInotifyPollIndex].revents & POLLIN) { in threadLoop()
1507 if (mMagBiasPollIndex >= 0 && mPollFds[mMagBiasPollIndex].revents & POLLERR) { in threadLoop()
1519 if (mDoubleTouchPollIndex >= 0 && mPollFds[mDoubleTouchPollIndex].revents & POLLERR) { in threadLoop()
1530 if (mPollFds[0].revents & POLLIN) { in threadLoop()
1803 mPollFds[mNumPollFds].revents = 0; in initNanohubLock()
/device/generic/goldfish/fingerprint/
Dfingerprint.c724 pfd.revents = 0; in listenerFunction()
744 if (pfd.revents & POLLIN) { in listenerFunction()
746 disconnected = pfd.revents & (POLLERR | POLLHUP); in listenerFunction()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dselectmodule.c545 while (!self->ufds[i].revents) { in poll_poll()
565 num = PyInt_FromLong(self->ufds[i].revents & 0xffff); in poll_poll()
684 } else if (poll_test == 0 && poll_struct.revents != POLLNVAL) { in select_have_broken_poll()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dselectmodule.c545 while (!self->ufds[i].revents) { in poll_poll()
565 num = PyInt_FromLong(self->ufds[i].revents & 0xffff); in poll_poll()
684 } else if (poll_test == 0 && poll_struct.revents != POLLNVAL) { in select_have_broken_poll()
/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp257 if (pollfds[i].revents & POLLIN) { in ReadEvent()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dselectmodule.c578 while (!self->ufds[i].revents) { in poll_poll()
598 num = PyInt_FromLong(self->ufds[i].revents & 0xffff); in poll_poll()
718 } else if (poll_test == 0 && poll_struct.revents != POLLNVAL) { in select_have_broken_poll()
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c1171 if (pfd.revents & (POLLERR | POLLNVAL)) { in pcm_wait()
1184 } while (!(pfd.revents & (POLLIN | POLLOUT))); in pcm_wait()