Lines Matching refs:fds

414 #define FDS_IN(fds, n)		(fds->in + n)  argument
415 #define FDS_OUT(fds, n) (fds->out + n) argument
416 #define FDS_EX(fds, n) (fds->ex + n) argument
418 #define BITS(fds, n) (*FDS_IN(fds, n)|*FDS_OUT(fds, n)|*FDS_EX(fds, n)) argument
420 static int max_select_fd(unsigned long n, fd_set_bits *fds) in max_select_fd() argument
434 set &= BITS(fds, n); in max_select_fd()
444 set = BITS(fds, n); in max_select_fd()
479 static int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) in do_select() argument
490 retval = max_select_fd(n, fds); in do_select()
512 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select()
513 rinp = fds->res_in; routp = fds->res_out; rexp = fds->res_ex; in do_select()
628 fd_set_bits fds; in core_sys_select() local
666 fds.in = bits; in core_sys_select()
667 fds.out = bits + size; in core_sys_select()
668 fds.ex = bits + 2*size; in core_sys_select()
669 fds.res_in = bits + 3*size; in core_sys_select()
670 fds.res_out = bits + 4*size; in core_sys_select()
671 fds.res_ex = bits + 5*size; in core_sys_select()
673 if ((ret = get_fd_set(n, inp, fds.in)) || in core_sys_select()
674 (ret = get_fd_set(n, outp, fds.out)) || in core_sys_select()
675 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select()
677 zero_fd_set(n, fds.res_in); in core_sys_select()
678 zero_fd_set(n, fds.res_out); in core_sys_select()
679 zero_fd_set(n, fds.res_ex); in core_sys_select()
681 ret = do_select(n, &fds, end_time); in core_sys_select()
692 if (set_fd_set(n, inp, fds.res_in) || in core_sys_select()
693 set_fd_set(n, outp, fds.res_out) || in core_sys_select()
694 set_fd_set(n, exp, fds.res_ex)) in core_sys_select()
1022 struct pollfd *fds = walk->entries; in do_sys_poll() local
1025 for (j = walk->len; j; fds++, ufds++, j--) in do_sys_poll()
1026 unsafe_put_user(fds->revents, &ufds->revents, Efault); in do_sys_poll()
1198 fd_set_bits fds; in compat_core_sys_select() local
1228 fds.in = (unsigned long *) bits; in compat_core_sys_select()
1229 fds.out = (unsigned long *) (bits + size); in compat_core_sys_select()
1230 fds.ex = (unsigned long *) (bits + 2*size); in compat_core_sys_select()
1231 fds.res_in = (unsigned long *) (bits + 3*size); in compat_core_sys_select()
1232 fds.res_out = (unsigned long *) (bits + 4*size); in compat_core_sys_select()
1233 fds.res_ex = (unsigned long *) (bits + 5*size); in compat_core_sys_select()
1235 if ((ret = compat_get_fd_set(n, inp, fds.in)) || in compat_core_sys_select()
1236 (ret = compat_get_fd_set(n, outp, fds.out)) || in compat_core_sys_select()
1237 (ret = compat_get_fd_set(n, exp, fds.ex))) in compat_core_sys_select()
1239 zero_fd_set(n, fds.res_in); in compat_core_sys_select()
1240 zero_fd_set(n, fds.res_out); in compat_core_sys_select()
1241 zero_fd_set(n, fds.res_ex); in compat_core_sys_select()
1243 ret = do_select(n, &fds, end_time); in compat_core_sys_select()
1254 if (compat_set_fd_set(n, inp, fds.res_in) || in compat_core_sys_select()
1255 compat_set_fd_set(n, outp, fds.res_out) || in compat_core_sys_select()
1256 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select()