/openbmc/linux/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 267 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 …]
|
/openbmc/linux/tools/usb/ffs-aio-example/simple/device_app/ |
H 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()
|
/openbmc/linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
H 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()
|
/openbmc/qemu/util/ |
H A D | main-loop.c | 410 static int pollfds_fill(GArray *pollfds, fd_set *rfds, fd_set *wfds, 421 FD_SET(fd, rfds); 436 static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, 446 if (FD_ISSET(fd, rfds)) { 470 fd_set rfds, wfds, xfds; 485 FD_ZERO(&rfds); 488 nfds = pollfds_fill(gpollfds, &rfds, &wfds, &xfds); 490 select_ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv0); 495 pollfds_poll(gpollfds, nfds, &rfds, &wfds, &xfds);
|
H A D | aio-win32.c | 186 fd_set rfds, wfds; in aio_prepare() local 195 FD_ZERO(&rfds); in aio_prepare() 199 FD_SET ((SOCKET)node->pfd.fd, &rfds); in aio_prepare() 206 if (select(0, &rfds, &wfds, NULL, &tv0) > 0) { in aio_prepare() 209 if (FD_ISSET(node->pfd.fd, &rfds)) { in aio_prepare()
|
/openbmc/u-boot/tools/ |
H A D | kwboot.c | 159 fd_set rfds; in kwboot_tty_recv() local 165 FD_ZERO(&rfds); in kwboot_tty_recv() 166 FD_SET(fd, &rfds); in kwboot_tty_recv() 176 nfds = select(fd + 1, &rfds, NULL, NULL, &tv); in kwboot_tty_recv() 539 fd_set rfds; in kwboot_terminal() local 542 FD_SET(tty, &rfds); in kwboot_terminal() 546 FD_SET(in, &rfds); in kwboot_terminal() 550 nfds = select(nfds + 1, &rfds, NULL, NULL, NULL); in kwboot_terminal() 554 if (FD_ISSET(tty, &rfds)) { in kwboot_terminal() 560 if (FD_ISSET(in, &rfds)) { in kwboot_terminal()
|
/openbmc/qemu/io/ |
H A D | channel-watch.c | 119 fd_set rfds, wfds, xfds; in qio_channel_socket_source_check() local 125 FD_ZERO(&rfds); in qio_channel_socket_source_check() 129 FD_SET(ssource->socket, &rfds); in qio_channel_socket_source_check() 138 if (select(0, &rfds, &wfds, &xfds, &tv0) == 0) { in qio_channel_socket_source_check() 142 if (FD_ISSET(ssource->socket, &rfds)) { in qio_channel_socket_source_check()
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | 82596.c | 331 struct i596_rfd rfds[RX_RING_SIZE]; member 574 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs() 581 lp->rfd_head = lp->rfds; in init_rx_bufs() 582 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs() 583 rfd = lp->rfds; in init_rx_bufs() 585 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 586 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 587 rfd->v_next = lp->rfds; in init_rx_bufs() 588 rfd->b_next = WSWAPrfd(virt_to_bus(lp->rfds)); in init_rx_bufs() 603 lp->rfds[i].rbd = I596_NULL; in rebuild_rx_bufs() [all …]
|
H A D | lib82596.c | 307 struct i596_rfd rfds[RX_RING_SIZE] __attribute__((aligned(32))); member 521 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs() 528 lp->rfd_head = dma->rfds; in init_rx_bufs() 529 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs() 530 rfd = dma->rfds; in init_rx_bufs() 532 rfd->v_prev = dma->rfds + rx_ring_size - 1; in init_rx_bufs() 533 rfd = dma->rfds + rx_ring_size - 1; in init_rx_bufs() 534 rfd->v_next = dma->rfds; in init_rx_bufs() 535 rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs() 568 dma->rfds[i].rbd = I596_NULL; in rebuild_rx_bufs() [all …]
|
H A D | sun3_82586.c | 856 volatile struct rfd_struct *rfds=p->rfd_top; in sun3_82586_rcv_int() 861 rbds = (struct rbd_struct *) make32(rfds->rbd_offset); in sun3_82586_rcv_int() 862 printk("%04x:%04x ",rfds->status,rbds->status); in sun3_82586_rcv_int() 863 rfds = (struct rfd_struct *) make32(rfds->next); in sun3_82586_rcv_int()
|
/openbmc/linux/tools/testing/selftests/x86/ |
H 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_helpers.h | 211 fd_set rfds; in poll_read() local 214 FD_ZERO(&rfds); in poll_read() 215 FD_SET(fd, &rfds); in poll_read() 217 r = select(fd + 1, &rfds, NULL, NULL, &timeout); in poll_read()
|
H A D | tc_redirect.c | 1056 fd_set rfds, wfds; in tun_relay_loop() local 1058 FD_ZERO(&rfds); in tun_relay_loop() 1065 FD_SET(src_fd, &rfds); in tun_relay_loop() 1066 FD_SET(target_fd, &rfds); in tun_relay_loop() 1068 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop() 1073 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop()
|
/openbmc/qemu/tests/tcg/multiarch/linux/ |
H A D | linux-test.c | 332 fd_set rfds, wfds; in test_pipe() local 343 FD_ZERO(&rfds); in test_pipe() 345 FD_SET(fds[0], &rfds); in test_pipe() 352 ret = chk_error(select(fd_max + 1, &rfds, &wfds, NULL, NULL)); in test_pipe() 354 if (FD_ISSET(fds[0], &rfds)) { in test_pipe()
|
/openbmc/linux/Documentation/usb/ |
H A D | gadget_hid.rst | 377 fd_set rfds; 400 FD_ZERO(&rfds); 401 FD_SET(STDIN_FILENO, &rfds); 402 FD_SET(fd, &rfds); 404 retval = select(fd + 1, &rfds, NULL, NULL, NULL); 412 if (FD_ISSET(fd, &rfds)) { 420 if (FD_ISSET(STDIN_FILENO, &rfds)) {
|
/openbmc/qemu/hw/hyperv/ |
H A D | syndbg.c | 292 fd_set rfds; in hv_syndbg_recv_event() local 296 FD_ZERO(&rfds); in hv_syndbg_recv_event() 297 FD_SET(syndbg->socket, &rfds); in hv_syndbg_recv_event() 298 if (select(syndbg->socket + 1, &rfds, NULL, NULL, &tv) > 0) { in hv_syndbg_recv_event()
|
/openbmc/linux/tools/testing/selftests/net/ |
H 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 …]
|
/openbmc/linux/tools/include/nolibc/ |
H A D | sys.h | 914 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument 921 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select() 930 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select() 935 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select() 942 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument 944 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout)); in select()
|
/openbmc/linux/drivers/net/ethernet/intel/ |
H A D | e100.c | 533 struct param_range rfds; member 1038 struct param_range rfds = { .min = 16, .max = 256, .count = 256 }; in e100_get_defaults() local 1046 nic->params.rfds = rfds; in e100_get_defaults() 2131 unsigned int i, count = nic->params.rfds.count; in e100_rx_clean_list() 2154 unsigned int i, count = nic->params.rfds.count; in e100_rx_alloc_list() 2561 struct param_range *rfds = &nic->params.rfds; in e100_get_ringparam() local 2564 ring->rx_max_pending = rfds->max; in e100_get_ringparam() 2566 ring->rx_pending = rfds->count; in e100_get_ringparam() 2576 struct param_range *rfds = &nic->params.rfds; in e100_set_ringparam() local 2584 rfds->count = max(ring->rx_pending, rfds->min); in e100_set_ringparam() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.c | 1118 fd_set rfds; in recvmsg_from_client() local 1120 FD_ZERO(&rfds); in recvmsg_from_client() 1121 FD_SET(sockfd, &rfds); in recvmsg_from_client() 1126 if (select(sockfd + 1, &rfds, NULL, NULL, &tv) <= 0 || in recvmsg_from_client() 1127 !FD_ISSET(sockfd, &rfds)) in recvmsg_from_client()
|
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3/ |
H A D | 0001-Lib-pty.py-handle-stdin-I-O-errors-same-way-as-maste.patch | 38 if stdin_avail and STDIN_FILENO in rfds:
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 115 fd_set rfds; in capture_events() local 122 FD_ZERO(&rfds); in capture_events() 123 FD_SET(fd, &rfds); in capture_events() 127 ret = select(FD_SETSIZE, &rfds, NULL, NULL, NULL); in capture_events()
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_sunoem.c | 1168 fd_set rfds; in ipmi_sunoem_cli() local 1169 FD_ZERO(&rfds); in ipmi_sunoem_cli() 1170 FD_SET(0, &rfds); in ipmi_sunoem_cli() 1171 rc = select(1, &rfds, NULL, NULL, &tv); in ipmi_sunoem_cli()
|
/openbmc/qemu/linux-user/ |
H A D | syscall.c | 1326 fd_set rfds, wfds, efds; in do_select() local 1332 ret = copy_from_user_fdset_ptr(&rfds, &rfds_ptr, rfd_addr, n); in do_select() 1359 if (rfd_addr && copy_to_user_fdset(rfd_addr, &rfds, n)) in do_select() 1408 fd_set rfds, wfds, efds; in do_pselect6() local 1430 ret = copy_from_user_fdset_ptr(&rfds, &rfds_ptr, rfd_addr, n); in do_pselect6() 1491 if (rfd_addr && copy_to_user_fdset(rfd_addr, &rfds, n)) { in do_pselect6()
|