Lines Matching refs:to

271 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec)  in poll_select_set_timeout()  argument
280 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
282 ktime_get_ts64(to); in poll_select_set_timeout()
283 *to = timespec64_add_safe(*to, ts); in poll_select_set_timeout()
485 ktime_t expire, *to = NULL; in do_select() local
598 if (end_time && !to) { in do_select()
600 to = &expire; in do_select()
604 to, slack)) in do_select()
703 struct timespec64 end_time, *to = NULL; in kern_select() local
711 to = &end_time; in kern_select()
712 if (poll_select_set_timeout(to, in kern_select()
718 ret = core_sys_select(n, inp, outp, exp, to); in kern_select()
733 struct timespec64 ts, end_time, *to = NULL; in do_pselect() local
750 to = &end_time; in do_pselect()
751 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
759 ret = core_sys_select(n, inp, outp, exp, to); in do_pselect()
774 static inline int get_sigset_argpack(struct sigset_argpack *to, in get_sigset_argpack() argument
783 unsafe_get_user(to->p, &from->p, Efault); in get_sigset_argpack()
784 unsafe_get_user(to->size, &from->size, Efault); in get_sigset_argpack()
880 ktime_t expire, *to = NULL; in do_poll() local
953 if (end_time && !to) { in do_poll()
955 to = &expire; in do_poll()
958 if (!poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack)) in do_poll()
1045 struct timespec64 *to = NULL, end_time; in do_restart_poll() local
1051 to = &end_time; in do_restart_poll()
1054 ret = do_sys_poll(ufds, nfds, to); in do_restart_poll()
1065 struct timespec64 end_time, *to = NULL; in SYSCALL_DEFINE3() local
1069 to = &end_time; in SYSCALL_DEFINE3()
1070 poll_select_set_timeout(to, timeout_msecs / MSEC_PER_SEC, in SYSCALL_DEFINE3()
1074 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE3()
1099 struct timespec64 ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
1106 to = &end_time; in SYSCALL_DEFINE5()
1107 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
1115 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1125 struct timespec64 ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
1132 to = &end_time; in SYSCALL_DEFINE5()
1133 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
1141 ret = do_sys_poll(ufds, nfds, to); in SYSCALL_DEFINE5()
1263 struct timespec64 end_time, *to = NULL; in do_compat_select() local
1271 to = &end_time; in do_compat_select()
1272 if (poll_select_set_timeout(to, in do_compat_select()
1278 ret = compat_core_sys_select(n, inp, outp, exp, to); in do_compat_select()
1312 struct timespec64 ts, end_time, *to = NULL; in do_compat_pselect() local
1329 to = &end_time; in do_compat_pselect()
1330 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_compat_pselect()
1338 ret = compat_core_sys_select(n, inp, outp, exp, to); in do_compat_pselect()
1346 static inline int get_compat_sigset_argpack(struct compat_sigset_argpack *to, in get_compat_sigset_argpack() argument
1352 unsafe_get_user(to->p, &from->p, Efault); in get_compat_sigset_argpack()
1353 unsafe_get_user(to->size, &from->size, Efault); in get_compat_sigset_argpack()
1397 struct timespec64 ts, end_time, *to = NULL; in COMPAT_SYSCALL_DEFINE5() local
1404 to = &end_time; in COMPAT_SYSCALL_DEFINE5()
1405 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in COMPAT_SYSCALL_DEFINE5()
1413 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()
1423 struct timespec64 ts, end_time, *to = NULL; in COMPAT_SYSCALL_DEFINE5() local
1430 to = &end_time; in COMPAT_SYSCALL_DEFINE5()
1431 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in COMPAT_SYSCALL_DEFINE5()
1439 ret = do_sys_poll(ufds, nfds, to); in COMPAT_SYSCALL_DEFINE5()