• Home
  • Raw
  • Download

Lines Matching refs:ts

111 	struct timespec64 ts;  in tk_xtime()  local
113 ts.tv_sec = tk->xtime_sec; in tk_xtime()
114 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
115 return ts; in tk_xtime()
118 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() argument
120 tk->xtime_sec = ts->tv_sec; in tk_set_xtime()
121 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
124 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() argument
126 tk->xtime_sec += ts->tv_sec; in tk_xtime_add()
127 tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_xtime_add()
728 void ktime_get_real_ts64(struct timespec64 *ts) in ktime_get_real_ts64() argument
739 ts->tv_sec = tk->xtime_sec; in ktime_get_real_ts64()
744 ts->tv_nsec = 0; in ktime_get_real_ts64()
745 timespec64_add_ns(ts, nsecs); in ktime_get_real_ts64()
882 void ktime_get_ts64(struct timespec64 *ts) in ktime_get_ts64() argument
893 ts->tv_sec = tk->xtime_sec; in ktime_get_ts64()
899 ts->tv_sec += tomono.tv_sec; in ktime_get_ts64()
900 ts->tv_nsec = 0; in ktime_get_ts64()
901 timespec64_add_ns(ts, nsec + tomono.tv_nsec); in ktime_get_ts64()
1037 struct system_device_crosststamp *ts) in adjust_historical_crosststamp() argument
1058 ktime_sub(ts->sys_monoraw, history->raw)); in adjust_historical_crosststamp()
1076 ktime_sub(ts->sys_realtime, history->real)); in adjust_historical_crosststamp()
1085 ts->sys_monoraw = ktime_add_ns(history->raw, corr_raw); in adjust_historical_crosststamp()
1086 ts->sys_realtime = ktime_add_ns(history->real, corr_real); in adjust_historical_crosststamp()
1088 ts->sys_monoraw = ktime_sub_ns(ts->sys_monoraw, corr_raw); in adjust_historical_crosststamp()
1089 ts->sys_realtime = ktime_sub_ns(ts->sys_realtime, corr_real); in adjust_historical_crosststamp()
1100 static bool timestamp_in_interval(u64 start, u64 end, u64 ts) in timestamp_in_interval() argument
1102 if (ts >= start && ts <= end) in timestamp_in_interval()
1104 if (start > end && (ts >= start || ts <= end)) in timestamp_in_interval()
1225 int do_settimeofday64(const struct timespec64 *ts) in do_settimeofday64() argument
1232 if (!timespec64_valid_settod(ts)) in do_settimeofday64()
1241 ts_delta = timespec64_sub(*ts, xt); in do_settimeofday64()
1250 tk_set_xtime(tk, ts); in do_settimeofday64()
1262 add_device_randomness(ts, sizeof(*ts)); in do_settimeofday64()
1275 static int timekeeping_inject_offset(const struct timespec64 *ts) in timekeeping_inject_offset() argument
1282 if (ts->tv_nsec < 0 || ts->tv_nsec >= NSEC_PER_SEC) in timekeeping_inject_offset()
1291 tmp = timespec64_add(tk_xtime(tk), *ts); in timekeeping_inject_offset()
1292 if (timespec64_compare(&tk->wall_to_monotonic, ts) > 0 || in timekeeping_inject_offset()
1298 tk_xtime_add(tk, ts); in timekeeping_inject_offset()
1299 tk_set_wall_to_mono(tk, timespec64_sub(tk->wall_to_monotonic, *ts)); in timekeeping_inject_offset()
1421 void ktime_get_raw_ts64(struct timespec64 *ts) in ktime_get_raw_ts64() argument
1429 ts->tv_sec = tk->raw_sec; in ktime_get_raw_ts64()
1434 ts->tv_nsec = 0; in ktime_get_raw_ts64()
1435 timespec64_add_ns(ts, nsecs); in ktime_get_raw_ts64()
1487 void __weak read_persistent_clock64(struct timespec64 *ts) in read_persistent_clock64() argument
1489 ts->tv_sec = 0; in read_persistent_clock64()
1490 ts->tv_nsec = 0; in read_persistent_clock64()
1986 struct timespec64 ts; in accumulate_nsecs_to_secs() local
1990 ts.tv_sec = leap; in accumulate_nsecs_to_secs()
1991 ts.tv_nsec = 0; in accumulate_nsecs_to_secs()
1993 timespec64_sub(tk->wall_to_monotonic, ts)); in accumulate_nsecs_to_secs()
2153 void getboottime64(struct timespec64 *ts) in getboottime64() argument
2158 *ts = ktime_to_timespec64(t); in getboottime64()
2162 void ktime_get_coarse_real_ts64(struct timespec64 *ts) in ktime_get_coarse_real_ts64() argument
2170 *ts = tk_xtime(tk); in ktime_get_coarse_real_ts64()
2175 void ktime_get_coarse_ts64(struct timespec64 *ts) in ktime_get_coarse_ts64() argument
2188 set_normalized_timespec64(ts, now.tv_sec + mono.tv_sec, in ktime_get_coarse_ts64()
2334 struct timespec64 ts; in do_adjtimex() local
2359 ktime_get_real_ts64(&ts); in do_adjtimex()
2360 add_device_randomness(&ts, sizeof(ts)); in do_adjtimex()
2366 ret = __do_adjtimex(txc, &ts, &tai, &ad); in do_adjtimex()