Lines Matching refs:to
11 static int __futex4_cp(volatile void *addr, int op, int val, const struct timespec *to)
16 if (to) {
17 useconds = (to->tv_sec * 1000000 + to->tv_nsec / 1000);
18 if ((useconds == 0) && (to->tv_nsec != 0)) {
28 time_t s = to ? to->tv_sec : 0;
29 long ns = to ? to->tv_nsec : 0;
33 to ? ((long long[]){s, ns}) : 0);
35 to = to ? (void *)(long[]){CLAMP(s), ns} : 0;
37 r = __syscall_cp(SYS_futex, addr, op, val, to);
39 return __syscall_cp(SYS_futex, addr, op & ~FUTEX_PRIVATE, val, to);
50 struct timespec to, *top=0;
56 if (__clock_gettime(clk, &to)) return EINVAL;
57 to.tv_sec = at->tv_sec - to.tv_sec;
58 if ((to.tv_nsec = at->tv_nsec - to.tv_nsec) < 0) {
59 to.tv_sec--;
60 to.tv_nsec += 1000000000;
62 if (to.tv_sec < 0) return ETIMEDOUT;
63 top = &to;