Lines Matching refs:ts
77 struct timespec64 ts; in tk_xtime() local
79 ts.tv_sec = tk->xtime_sec; in tk_xtime()
80 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
81 return ts; in tk_xtime()
84 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() argument
86 tk->xtime_sec = ts->tv_sec; in tk_set_xtime()
87 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
90 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() argument
92 tk->xtime_sec += ts->tv_sec; in tk_xtime_add()
93 tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_xtime_add()
625 int __getnstimeofday64(struct timespec64 *ts) in __getnstimeofday64() argument
634 ts->tv_sec = tk->xtime_sec; in __getnstimeofday64()
639 ts->tv_nsec = 0; in __getnstimeofday64()
640 timespec64_add_ns(ts, nsecs); in __getnstimeofday64()
658 void getnstimeofday64(struct timespec64 *ts) in getnstimeofday64() argument
660 WARN_ON(__getnstimeofday64(ts)); in getnstimeofday64()
777 void ktime_get_ts64(struct timespec64 *ts) in ktime_get_ts64() argument
788 ts->tv_sec = tk->xtime_sec; in ktime_get_ts64()
794 ts->tv_sec += tomono.tv_sec; in ktime_get_ts64()
795 ts->tv_nsec = 0; in ktime_get_ts64()
796 timespec64_add_ns(ts, nsec + tomono.tv_nsec); in ktime_get_ts64()
908 int do_settimeofday64(const struct timespec64 *ts) in do_settimeofday64() argument
915 if (!timespec64_valid_strict(ts)) in do_settimeofday64()
924 ts_delta.tv_sec = ts->tv_sec - xt.tv_sec; in do_settimeofday64()
925 ts_delta.tv_nsec = ts->tv_nsec - xt.tv_nsec; in do_settimeofday64()
934 tk_set_xtime(tk, ts); in do_settimeofday64()
954 int timekeeping_inject_offset(struct timespec *ts) in timekeeping_inject_offset() argument
961 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timekeeping_inject_offset()
964 ts64 = timespec_to_timespec64(*ts); in timekeeping_inject_offset()
1106 void getrawmonotonic64(struct timespec64 *ts) in getrawmonotonic64() argument
1121 *ts = ts64; in getrawmonotonic64()
1173 void __weak read_persistent_clock(struct timespec *ts) in read_persistent_clock() argument
1175 ts->tv_sec = 0; in read_persistent_clock()
1176 ts->tv_nsec = 0; in read_persistent_clock()
1181 struct timespec ts; in read_persistent_clock64() local
1183 read_persistent_clock(&ts); in read_persistent_clock64()
1184 *ts64 = timespec_to_timespec64(ts); in read_persistent_clock64()
1196 void __weak read_boot_clock64(struct timespec64 *ts) in read_boot_clock64() argument
1198 ts->tv_sec = 0; in read_boot_clock64()
1199 ts->tv_nsec = 0; in read_boot_clock64()
1695 struct timespec64 ts; in accumulate_nsecs_to_secs() local
1699 ts.tv_sec = leap; in accumulate_nsecs_to_secs()
1700 ts.tv_nsec = 0; in accumulate_nsecs_to_secs()
1702 timespec64_sub(tk->wall_to_monotonic, ts)); in accumulate_nsecs_to_secs()
1859 void getboottime64(struct timespec64 *ts) in getboottime64() argument
1864 *ts = ktime_to_timespec64(t); in getboottime64()
1978 struct timespec64 ts; in do_adjtimex() local
1998 getnstimeofday64(&ts); in do_adjtimex()
2004 ret = __do_adjtimex(txc, &ts, &tai); in do_adjtimex()