• Home
  • Raw
  • Download

Lines Matching refs:ts

144 		struct timespec64 ts;  in SYSCALL_DEFINE2()  local
146 ktime_get_real_ts64(&ts); in SYSCALL_DEFINE2()
147 if (put_user(ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2()
148 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in SYSCALL_DEFINE2()
228 struct timespec64 ts; in COMPAT_SYSCALL_DEFINE2() local
230 ktime_get_real_ts64(&ts); in COMPAT_SYSCALL_DEFINE2()
231 if (put_user(ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2()
232 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in COMPAT_SYSCALL_DEFINE2()
454 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval() local
457 tv.tv_sec = ts.tv_sec; in ns_to_kernel_old_timeval()
458 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; in ns_to_kernel_old_timeval()
478 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
495 ts->tv_sec = sec; in set_normalized_timespec64()
496 ts->tv_nsec = nsec; in set_normalized_timespec64()
508 struct timespec64 ts = { 0, 0 }; in ns_to_timespec64() local
512 ts.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64()
513 ts.tv_nsec = rem; in ns_to_timespec64()
520 ts.tv_sec = -div_u64_rem(-nsec - 1, NSEC_PER_SEC, &rem) - 1; in ns_to_timespec64()
521 ts.tv_nsec = NSEC_PER_SEC - rem - 1; in ns_to_timespec64()
524 return ts; in ns_to_timespec64()
782 int get_timespec64(struct timespec64 *ts, in get_timespec64() argument
792 ts->tv_sec = kts.tv_sec; in get_timespec64()
799 ts->tv_nsec = kts.tv_nsec; in get_timespec64()
805 int put_timespec64(const struct timespec64 *ts, in put_timespec64() argument
809 .tv_sec = ts->tv_sec, in put_timespec64()
810 .tv_nsec = ts->tv_nsec in put_timespec64()
820 struct old_timespec32 ts; in __get_old_timespec32() local
823 ret = copy_from_user(&ts, cts, sizeof(ts)); in __get_old_timespec32()
827 ts64->tv_sec = ts.tv_sec; in __get_old_timespec32()
828 ts64->tv_nsec = ts.tv_nsec; in __get_old_timespec32()
836 struct old_timespec32 ts = { in __put_old_timespec32() local
840 return copy_to_user(cts, &ts, sizeof(ts)) ? -EFAULT : 0; in __put_old_timespec32()
843 int get_old_timespec32(struct timespec64 *ts, const void __user *uts) in get_old_timespec32() argument
846 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in get_old_timespec32()
848 return __get_old_timespec32(ts, uts); in get_old_timespec32()
852 int put_old_timespec32(const struct timespec64 *ts, void __user *uts) in put_old_timespec32() argument
855 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; in put_old_timespec32()
857 return __put_old_timespec32(ts, uts); in put_old_timespec32()