Lines Matching refs:fds

386 #define FDS_IN(fds, n)		(fds->in + n)  argument
387 #define FDS_OUT(fds, n) (fds->out + n) argument
388 #define FDS_EX(fds, n) (fds->ex + n) argument
390 #define BITS(fds, n) (*FDS_IN(fds, n)|*FDS_OUT(fds, n)|*FDS_EX(fds, n)) argument
392 static int max_select_fd(unsigned long n, fd_set_bits *fds) in max_select_fd() argument
406 set &= BITS(fds, n); in max_select_fd()
416 set = BITS(fds, n); in max_select_fd()
451 static int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) in do_select() argument
462 retval = max_select_fd(n, fds); in do_select()
484 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select()
485 rinp = fds->res_in; routp = fds->res_out; rexp = fds->res_ex; in do_select()
600 fd_set_bits fds; in core_sys_select() local
638 fds.in = bits; in core_sys_select()
639 fds.out = bits + size; in core_sys_select()
640 fds.ex = bits + 2*size; in core_sys_select()
641 fds.res_in = bits + 3*size; in core_sys_select()
642 fds.res_out = bits + 4*size; in core_sys_select()
643 fds.res_ex = bits + 5*size; in core_sys_select()
645 if ((ret = get_fd_set(n, inp, fds.in)) || in core_sys_select()
646 (ret = get_fd_set(n, outp, fds.out)) || in core_sys_select()
647 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select()
649 zero_fd_set(n, fds.res_in); in core_sys_select()
650 zero_fd_set(n, fds.res_out); in core_sys_select()
651 zero_fd_set(n, fds.res_ex); in core_sys_select()
653 ret = do_select(n, &fds, end_time); in core_sys_select()
664 if (set_fd_set(n, inp, fds.res_in) || in core_sys_select()
665 set_fd_set(n, outp, fds.res_out) || in core_sys_select()
666 set_fd_set(n, exp, fds.res_ex)) in core_sys_select()
974 struct pollfd *fds = walk->entries; in do_sys_poll() local
978 if (__put_user(fds[j].revents, &ufds->revents)) in do_sys_poll()
1192 fd_set_bits fds; in compat_core_sys_select() local
1222 fds.in = (unsigned long *) bits; in compat_core_sys_select()
1223 fds.out = (unsigned long *) (bits + size); in compat_core_sys_select()
1224 fds.ex = (unsigned long *) (bits + 2*size); in compat_core_sys_select()
1225 fds.res_in = (unsigned long *) (bits + 3*size); in compat_core_sys_select()
1226 fds.res_out = (unsigned long *) (bits + 4*size); in compat_core_sys_select()
1227 fds.res_ex = (unsigned long *) (bits + 5*size); in compat_core_sys_select()
1229 if ((ret = compat_get_fd_set(n, inp, fds.in)) || in compat_core_sys_select()
1230 (ret = compat_get_fd_set(n, outp, fds.out)) || in compat_core_sys_select()
1231 (ret = compat_get_fd_set(n, exp, fds.ex))) in compat_core_sys_select()
1233 zero_fd_set(n, fds.res_in); in compat_core_sys_select()
1234 zero_fd_set(n, fds.res_out); in compat_core_sys_select()
1235 zero_fd_set(n, fds.res_ex); in compat_core_sys_select()
1237 ret = do_select(n, &fds, end_time); in compat_core_sys_select()
1248 if (compat_set_fd_set(n, inp, fds.res_in) || in compat_core_sys_select()
1249 compat_set_fd_set(n, outp, fds.res_out) || in compat_core_sys_select()
1250 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select()