Home
last modified time | relevance | path

Searched refs:rfds (Results 1 – 7 of 7) sorted by relevance

/tools/power/acpi/tools/acpidbg/
Dacpidbg.c267 fd_set rfds; in acpi_aml_loop() local
285 FD_ZERO(&rfds); in acpi_aml_loop()
290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &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()
[all …]
/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c215 fd_set rfds; in main() local
280 FD_ZERO(&rfds); in main()
281 FD_SET(ep0, &rfds); in main()
282 FD_SET(evfd, &rfds); in main()
285 &rfds, NULL, NULL, NULL); in main()
293 if (FD_ISSET(ep0, &rfds)) in main()
301 if (FD_ISSET(evfd, &rfds)) { in main()
/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c245 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/testing/selftests/x86/
Dtest_syscall_vdso.c172 fd_set rfds; variable
185 FD_ZERO(&rfds); in prep_args()
188 FD_SET(0, &rfds); in prep_args()
/tools/testing/selftests/net/
Dnettest.c924 fd_set rfds; in msg_loop() local
948 FD_ZERO(&rfds); in msg_loop()
949 FD_SET(sd, &rfds); in msg_loop()
951 FD_SET(fileno(stdin), &rfds); in msg_loop()
953 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()
967 if (FD_ISSET(sd, &rfds)) { in msg_loop()
979 if (FD_ISSET(fileno(stdin), &rfds)) { in msg_loop()
1170 fd_set rfds; in do_server() local
1203 FD_ZERO(&rfds); in do_server()
1204 FD_SET(lsd, &rfds); in do_server()
[all …]
/tools/include/nolibc/
Dnolibc.h1660 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument
1667 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select()
1676 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select()
1681 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select()
2134 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument
2136 int ret = sys_select(nfds, rfds, wfds, efds, timeout); in select()
/tools/testing/selftests/bpf/
Dtest_sock_addr.c1325 fd_set rfds; in recvmsg_from_client() local
1327 FD_ZERO(&rfds); in recvmsg_from_client()
1328 FD_SET(sockfd, &rfds); in recvmsg_from_client()
1333 if (select(sockfd + 1, &rfds, NULL, NULL, &tv) <= 0 || in recvmsg_from_client()
1334 !FD_ISSET(sockfd, &rfds)) in recvmsg_from_client()