Lines Matching refs:tv
949 struct timeval32 tv; in get_tv32() local
950 if (copy_from_user(&tv, i, sizeof(struct timeval32))) in get_tv32()
952 o->tv_sec = tv.tv_sec; in get_tv32()
953 o->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in get_tv32()
982 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
985 if (tv) { in SYSCALL_DEFINE2()
989 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2()
999 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1005 if (tv) { in SYSCALL_DEFINE2()
1006 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2()
1014 return do_sys_settimeofday64(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2()
1020 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
1023 if (get_tv32(&tv[0], &tvs[0]) || in SYSCALL_DEFINE2()
1024 get_tv32(&tv[1], &tvs[1])) in SYSCALL_DEFINE2()
1027 if (tv[0].tv_nsec < 0 || tv[0].tv_nsec >= 1000000000 || in SYSCALL_DEFINE2()
1028 tv[1].tv_nsec < 0 || tv[1].tv_nsec >= 1000000000) in SYSCALL_DEFINE2()
1032 return do_utimes(AT_FDCWD, filename, tvs ? tv : NULL, 0); in SYSCALL_DEFINE2()
1040 struct timespec64 tv; in SYSCALL_DEFINE5() local
1043 if (get_tv32(&tv, tvp)) in SYSCALL_DEFINE5()
1046 if (tv.tv_sec < 0 || tv.tv_nsec < 0) in SYSCALL_DEFINE5()
1049 if (poll_select_set_timeout(to, tv.tv_sec, tv.tv_nsec)) in SYSCALL_DEFINE5()