Searched refs:rfds (Results 1 - 14 of 14) sorted by relevance

/linux-master/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c233 fd_set rfds; local
298 FD_ZERO(&rfds);
299 FD_SET(ep0, &rfds);
300 FD_SET(evfd, &rfds);
303 &rfds, NULL, NULL, NULL);
311 if (FD_ISSET(ep0, &rfds))
319 if (FD_ISSET(evfd, &rfds)) {
/linux-master/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c267 fd_set rfds; local
285 FD_ZERO(&rfds);
290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &rfds);
302 maxfd = acpi_aml_set_fd(fd, maxfd, &rfds);
306 ret = select(maxfd+1, &rfds, &wfds, NULL, &tv);
312 if (FD_ISSET(STDIN_FILENO, &rfds))
320 if (FD_ISSET(fd, &rfds)) {
338 fd_set rfds; local
345 FD_ZERO(&rfds);
346 maxfd = acpi_aml_set_fd(fd, maxfd, &rfds);
[all...]
/linux-master/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c245 fd_set rfds; local
303 FD_ZERO(&rfds);
304 FD_SET(ep0, &rfds);
305 FD_SET(evfd, &rfds);
308 &rfds, NULL, NULL, NULL);
316 if (FD_ISSET(ep0, &rfds))
349 if (!FD_ISSET(evfd, &rfds))
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_helpers.h211 fd_set rfds; local
214 FD_ZERO(&rfds);
215 FD_SET(fd, &rfds);
217 r = select(fd + 1, &rfds, NULL, NULL, &timeout);
H A Dtc_redirect.c1106 fd_set rfds, wfds; local
1108 FD_ZERO(&rfds);
1115 FD_SET(src_fd, &rfds);
1116 FD_SET(target_fd, &rfds);
1118 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) {
1123 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC;
/linux-master/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c172 fd_set rfds; variable
185 FD_ZERO(&rfds);
188 FD_SET(0, &rfds);
259 " mov $rfds, %%ecx\n" /* ecx arg2 */
274 " cmp $rfds, %%ecx\n" /* ecx arg2 */
/linux-master/drivers/net/ethernet/i825xx/
H A D82596.c331 struct i596_rfd rfds[RX_RING_SIZE]; member in struct:i596_private
574 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) {
581 lp->rfd_head = lp->rfds;
582 lp->scb.rfd = WSWAPrfd(virt_to_bus(lp->rfds));
583 rfd = lp->rfds;
585 rfd->v_prev = lp->rfds + rx_ring_size - 1;
586 rfd = lp->rfds + rx_ring_size - 1;
587 rfd->v_next = lp->rfds;
588 rfd->b_next = WSWAPrfd(virt_to_bus(lp->rfds));
603 lp->rfds[
[all...]
H A Dlib82596.c307 struct i596_rfd rfds[RX_RING_SIZE] __attribute__((aligned(32))); member in struct:i596_dma
521 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) {
528 lp->rfd_head = dma->rfds;
529 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds));
530 rfd = dma->rfds;
532 rfd->v_prev = dma->rfds + rx_ring_size - 1;
533 rfd = dma->rfds + rx_ring_size - 1;
534 rfd->v_next = dma->rfds;
535 rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds));
568 dma->rfds[
[all...]
H A Dsun3_82586.c856 volatile struct rfd_struct *rfds=p->rfd_top;
861 rbds = (struct rbd_struct *) make32(rfds->rbd_offset);
862 printk("%04x:%04x ",rfds->status,rbds->status);
863 rfds = (struct rfd_struct *) make32(rfds->next);
/linux-master/tools/include/nolibc/
H A Dsys.h962 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) argument
969 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout };
972 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout);
974 return my_syscall5(__NR_select, nfds, rfds, wfds, efds, timeout);
982 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL);
984 return __nolibc_enosys(__func__, nfds, rfds, wfds, efds, timeout);
989 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) argument
991 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout));
/linux-master/tools/testing/selftests/net/
H A Dnettest.c1253 fd_set rfds; local
1277 FD_ZERO(&rfds);
1278 FD_SET(sd, &rfds);
1280 FD_SET(fileno(stdin), &rfds); local
1282 rc = select(nfds, &rfds, NULL, NULL, ptval);
1296 if (FD_ISSET(sd, &rfds)) {
1308 if (FD_ISSET(fileno(stdin), &rfds)) {
1570 fd_set rfds; local
1619 FD_ZERO(&rfds);
1620 FD_SET(lsd, &rfds);
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sock_addr.c1119 fd_set rfds; local
1121 FD_ZERO(&rfds);
1122 FD_SET(sockfd, &rfds);
1127 if (select(sockfd + 1, &rfds, NULL, NULL, &tv) <= 0 ||
1128 !FD_ISSET(sockfd, &rfds))
/linux-master/drivers/net/ethernet/intel/
H A De100.c533 struct param_range rfds; member in struct:params
1038 struct param_range rfds = { .min = 16, .max = 256, .count = 256 }; local
1046 nic->params.rfds = rfds;
2131 unsigned int i, count = nic->params.rfds.count;
2154 unsigned int i, count = nic->params.rfds.count;
2561 struct param_range *rfds = &nic->params.rfds; local
2564 ring->rx_max_pending = rfds->max;
2566 ring->rx_pending = rfds
2576 struct param_range *rfds = &nic->params.rfds; local
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c115 fd_set rfds; local
122 FD_ZERO(&rfds);
123 FD_SET(fd, &rfds);
127 ret = select(FD_SETSIZE, &rfds, NULL, NULL, NULL);

Completed in 262 milliseconds