/external/grpc-grpc/test/core/iomgr/ |
D | wakeup_fd_cv_test.cc | 79 fds[0].revents = POLLIN; in mock_poll() 143 GPR_ASSERT(pfds[0].revents == 0); in test_poll_cv_trigger() 144 GPR_ASSERT(pfds[1].revents == 0); in test_poll_cv_trigger() 145 GPR_ASSERT(pfds[2].revents == 0); in test_poll_cv_trigger() 146 GPR_ASSERT(pfds[3].revents == 0); in test_poll_cv_trigger() 147 GPR_ASSERT(pfds[4].revents == 0); in test_poll_cv_trigger() 148 GPR_ASSERT(pfds[5].revents == 0); in test_poll_cv_trigger() 160 GPR_ASSERT(pfds[0].revents == 0); in test_poll_cv_trigger() 161 GPR_ASSERT(pfds[1].revents == 0); in test_poll_cv_trigger() 162 GPR_ASSERT(pfds[2].revents == POLLIN); in test_poll_cv_trigger() [all …]
|
/external/curl/lib/ |
D | select.c | 195 pfd[num].revents = 0; in Curl_socket_check() 201 pfd[num].revents = 0; in Curl_socket_check() 207 pfd[num].revents = 0; in Curl_socket_check() 240 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 242 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check() 247 if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP)) in Curl_socket_check() 249 if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL)) in Curl_socket_check() 254 if(pfd[num].revents & (POLLWRNORM|POLLOUT)) in Curl_socket_check() 256 if(pfd[num].revents & (POLLERR|POLLHUP|POLLNVAL)) in Curl_socket_check() 462 if(ufds[i].revents & POLLHUP) in Curl_poll() [all …]
|
/external/strace/tests-mx32/ |
D | poll.c | 115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting() 127 short revents = pfd->revents; in print_pollfd_exiting() local 129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting() 130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting() 131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting() 133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting() 136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting() 139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting() 142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting() 144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting() [all …]
|
/external/strace/tests/ |
D | poll.c | 115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting() 127 short revents = pfd->revents; in print_pollfd_exiting() local 129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting() 130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting() 131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting() 133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting() 136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting() 139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting() 142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting() 144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting() [all …]
|
/external/strace/tests-m32/ |
D | poll.c | 115 if (!pfd->revents || pfd->fd < 0 || *seen > abbrev) in print_pollfd_exiting() 127 short revents = pfd->revents; in print_pollfd_exiting() local 129 PRINT_EVENT(POLLIN, revents); in print_pollfd_exiting() 130 PRINT_EVENT(POLLPRI, revents); in print_pollfd_exiting() 131 PRINT_EVENT(POLLOUT, revents); in print_pollfd_exiting() 133 PRINT_EVENT(POLLRDNORM, revents); in print_pollfd_exiting() 136 PRINT_EVENT(POLLWRNORM, revents); in print_pollfd_exiting() 139 PRINT_EVENT(POLLRDBAND, revents); in print_pollfd_exiting() 142 PRINT_EVENT(POLLWRBAND, revents); in print_pollfd_exiting() 144 PRINT_EVENT(POLLERR, revents); in print_pollfd_exiting() [all …]
|
/external/google-breakpad/src/client/linux/crash_generation/ |
D | crash_generation_server.cc | 178 if (pollfds[0].revents && !ClientEvent(pollfds[0].revents)) in Run() 181 if (pollfds[1].revents && !ControlEvent(pollfds[1].revents)) in Run() 187 CrashGenerationServer::ClientEvent(short revents) in ClientEvent() argument 189 if (POLLHUP & revents) in ClientEvent() 191 assert(POLLIN & revents); in ClientEvent() 285 CrashGenerationServer::ControlEvent(short revents) in ControlEvent() argument 287 if (POLLHUP & revents) in ControlEvent() 289 assert(POLLIN & revents); in ControlEvent()
|
D | crash_generation_server.h | 98 bool ClientEvent(short revents); 102 bool ControlEvent(short revents);
|
/external/selinux/mcstrans/src/ |
D | mcstransd.c | 280 (*ufds)[ii].revents = 0; in add_pollfd() 308 short revents = (*ufds)[ii].revents; in process_events() local 311 if (revents & (POLLIN | POLLPRI)) { in process_events() 339 revents = revents & ~(POLLHUP); in process_events() 342 revents = revents & ~(POLLIN | POLLPRI); in process_events() 344 if (revents & POLLHUP) { in process_events() 352 revents = revents & ~(POLLHUP); in process_events() 354 if (revents) { in process_events() 356 " for fd (%d)\n", revents, connfd); in process_events() 363 (*ufds)[ii].revents = 0; in process_events() [all …]
|
/external/libkmsxx/utils/ |
D | wbm2m.cpp | 129 if (fds[0].revents != 0) in main() 132 if (fds[1].revents) { in main() 133 fds[1].revents = 0; in main() 163 if (fds[2].revents) { in main() 164 fds[2].revents = 0; in main()
|
D | wbcap.cpp | 391 if (fds[0].revents != 0) in main() 394 if (fds[1].revents) { in main() 395 fds[1].revents = 0; in main() 411 if (fds[2].revents) { in main() 412 fds[2].revents = 0; in main()
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 95 fds[i].revents = 0; in poll() 99 fds[i].revents |= POLLIN; in poll() 102 fds[i].revents |= POLLOUT; in poll() 105 fds[i].revents |= POLLERR; in poll()
|
/external/curl/docs/examples/ |
D | evhiperfifo.c | 115 static void timer_cb(EV_P_ struct ev_timer *w, int revents); 200 static void event_cb(EV_P_ struct ev_io *w, int revents) in event_cb() argument 202 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in event_cb() 206 int action = (revents&EV_READ?CURL_POLL_IN:0)| in event_cb() 207 (revents&EV_WRITE?CURL_POLL_OUT:0); in event_cb() 218 static void timer_cb(EV_P_ struct ev_timer *w, int revents) in timer_cb() argument 220 DPRINT("%s w %p revents %i\n", __PRETTY_FUNCTION__, w, revents); in timer_cb() 369 static void fifo_cb(EV_P_ struct ev_io *w, int revents) in fifo_cb() argument
|
D | ephiperfifo.c | 143 static void timer_cb(GlobalInfo* g, int revents); 206 static void event_cb(GlobalInfo *g, int fd, int revents) in event_cb() argument 211 int action = (revents & EPOLLIN ? CURL_CSELECT_IN : 0) | in event_cb() 212 (revents & EPOLLOUT ? CURL_CSELECT_OUT : 0); in event_cb() 226 static void timer_cb(GlobalInfo* g, int revents) in timer_cb() argument 399 static void fifo_cb(GlobalInfo* g, int revents) in fifo_cb() argument
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 88 unsigned short *revents) in snd_pcm_cras_poll_revents() argument 93 if (pfds == NULL || nfds != 1 || revents == NULL) in snd_pcm_cras_poll_revents() 100 *revents = pfds[0].revents & ~(POLLIN | POLLOUT); in snd_pcm_cras_poll_revents() 101 if (pfds[0].revents & POLLIN) in snd_pcm_cras_poll_revents() 102 *revents |= (io->stream == SND_PCM_STREAM_PLAYBACK) ? POLLOUT in snd_pcm_cras_poll_revents()
|
/external/toybox/toys/other/ |
D | watch.c | 137 if (pfd[0].revents&POLLIN) { in watch_main() 144 if (pfd[0].revents&POLLHUP) xexit(); in watch_main() 146 if (pfd[1].revents&POLLIN) len = read(fds[1], toybuf, sizeof(toybuf)-1); in watch_main() 147 if (pfd[1].revents&POLLHUP) active = 0; in watch_main()
|
/external/ltp/testcases/kernel/syscalls/ppoll/ |
D | ppoll01.c | 193 fds_good[0].revents = 0; in setup() 199 fds_already_closed[0].revents = 0; in setup() 251 if (tc->fds[0].revents == tc->expect_revents) in do_test() 255 tc->fds[0].revents, tc->expect_revents); in do_test()
|
/external/libpcap/testprogs/ |
D | selpolltest.c | 291 if (fd.revents & POLLIN) in main() 295 if (fd.revents & POLLERR) in main() 299 if (fd.revents & POLLHUP) in main() 303 if (fd.revents & POLLNVAL) in main()
|
/external/libusb/libusb/os/ |
D | poll_windows.c | 530 fds[i].revents = 0; in usbi_poll() 534 fds[i].revents |= POLLERR; in usbi_poll() 546 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll() 558 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll() 567 fds[i].revents |= POLLNVAL | POLLERR; in usbi_poll() 580 fds[i].revents = fds[i].events; in usbi_poll() 604 fds[i].revents = fds[i].events; in usbi_poll()
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll01.c | 50 if (outfds[0].revents != POLLOUT) { in verify_pollout() 76 if (infds[0].revents != POLLIN) { in verify_pollin()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 61 pfd.revents = 0; in do_poll() 70 if (pfd.revents != POLLIN) in do_poll() 72 pfd.revents, POLLIN); in do_poll()
|
/external/toybox/toys/net/ |
D | microcom.c | 64 if (fds[0].revents) { in microcom_main() 71 if (fds[1].revents) { in microcom_main()
|
/external/toybox/lib/ |
D | net.c | 104 if (pollfds[i].revents & POLLIN) { in pollinate() 106 if (len<1) pollfds[i].revents = POLLHUP; in pollinate() 109 if (pollfds[i].revents & POLLHUP) { in pollinate()
|
/external/tinycompress/ |
D | compress.c | 381 if (fds.revents & POLLERR) { in compress_write() 390 if (fds.revents & POLLOUT) { in compress_write() 441 if (fds.revents & POLLERR) { in compress_read() 450 if (fds.revents & POLLIN) { in compress_read() 633 if (fds.revents & POLLERR) in compress_wait() 635 if (fds.revents & (POLLOUT | POLLIN)) in compress_wait()
|
/external/libchrome/base/ |
D | sync_socket_posix.cc | 158 pollfd.revents = 0; in ReceiveWithTimeout() 181 DCHECK(pollfd.revents & (POLLIN | POLLHUP | POLLERR)) << pollfd.revents; in ReceiveWithTimeout()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | socket_connection.c | 196 p.revents = 0; in conn_poll() 213 } else if (p.revents & (POLLNVAL|POLLERR)) { in conn_poll() 218 } else if (p.revents != 0) { in conn_poll()
|