| /tools/power/acpi/tools/acpidbg/ |
| A D | acpidbg.c | 267 fd_set rfds; in acpi_aml_loop() local 285 FD_ZERO(&rfds); in acpi_aml_loop() 302 maxfd = acpi_aml_set_fd(fd, maxfd, &rfds); in acpi_aml_loop() 306 ret = select(maxfd+1, &rfds, &wfds, NULL, &tv); in acpi_aml_loop() 312 if (FD_ISSET(STDIN_FILENO, &rfds)) in acpi_aml_loop() 320 if (FD_ISSET(fd, &rfds)) { in acpi_aml_loop() 338 fd_set rfds; in acpi_aml_readable() local 345 FD_ZERO(&rfds); in acpi_aml_readable() 346 maxfd = acpi_aml_set_fd(fd, maxfd, &rfds); in acpi_aml_readable() 347 ret = select(maxfd+1, &rfds, NULL, NULL, &tv); in acpi_aml_readable() [all …]
|
| /tools/usb/ffs-aio-example/simple/device_app/ |
| A D | aio_simple.c | 233 fd_set rfds; in main() local 298 FD_ZERO(&rfds); in main() 299 FD_SET(ep0, &rfds); in main() 300 FD_SET(evfd, &rfds); in main() 303 &rfds, NULL, NULL, NULL); in main() 311 if (FD_ISSET(ep0, &rfds)) in main() 319 if (FD_ISSET(evfd, &rfds)) { in main()
|
| /tools/usb/ffs-aio-example/multibuff/device_app/ |
| A D | aio_multibuff.c | 245 fd_set rfds; in main() local 303 FD_ZERO(&rfds); in main() 304 FD_SET(ep0, &rfds); in main() 305 FD_SET(evfd, &rfds); in main() 308 &rfds, NULL, NULL, NULL); in main() 316 if (FD_ISSET(ep0, &rfds)) in main() 349 if (!FD_ISSET(evfd, &rfds)) in main()
|
| /tools/include/nolibc/ |
| A D | sys.h | 783 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 790 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 793 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 795 return my_syscall5(__NR_select, nfds, rfds, wfds, efds, timeout); in sys_select() 803 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 811 return my_syscall6(__NR_pselect6_time64, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 813 return __nolibc_enosys(__func__, nfds, rfds, wfds, efds, timeout); in sys_select() 818 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument 820 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout)); in select()
|
| /tools/testing/selftests/x86/ |
| A D | test_syscall_vdso.c | 172 fd_set rfds; variable 185 FD_ZERO(&rfds); in prep_args() 188 FD_SET(0, &rfds); in prep_args()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | socket_helpers.h | 295 fd_set rfds; in poll_read() local 298 FD_ZERO(&rfds); in poll_read() 299 FD_SET(fd, &rfds); in poll_read() 301 r = select(fd + 1, &rfds, NULL, NULL, &timeout); in poll_read()
|
| A D | tc_redirect.c | 1119 fd_set rfds, wfds; in tun_relay_loop() local 1121 FD_ZERO(&rfds); in tun_relay_loop() 1128 FD_SET(src_fd, &rfds); in tun_relay_loop() 1129 FD_SET(target_fd, &rfds); in tun_relay_loop() 1131 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop() 1136 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop()
|
| /tools/testing/selftests/net/ |
| A D | nettest.c | 1253 fd_set rfds; in msg_loop() local 1277 FD_ZERO(&rfds); in msg_loop() 1278 FD_SET(sd, &rfds); in msg_loop() 1280 FD_SET(fileno(stdin), &rfds); in msg_loop() 1282 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop() 1296 if (FD_ISSET(sd, &rfds)) { in msg_loop() 1308 if (FD_ISSET(fileno(stdin), &rfds)) { in msg_loop() 1570 fd_set rfds; in do_server() local 1619 FD_ZERO(&rfds); in do_server() 1620 FD_SET(lsd, &rfds); in do_server() [all …]
|
| /tools/testing/selftests/net/mptcp/ |
| A D | pm_nl_ctl.c | 109 fd_set rfds; in capture_events() local 116 FD_ZERO(&rfds); in capture_events() 117 FD_SET(fd, &rfds); in capture_events() 121 ret = select(FD_SETSIZE, &rfds, NULL, NULL, NULL); in capture_events()
|