Home
last modified time | relevance | path

Searched refs:ts_delta (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/include/linux/
Dtime64.h71 struct timespec64 ts_delta; in timespec64_add() local
72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
74 return ts_delta; in timespec64_add()
83 struct timespec64 ts_delta; in timespec64_sub() local
84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
86 return ts_delta; in timespec64_sub()
/linux-6.1.9/tools/testing/selftests/net/
Dtxtimestamp.c122 int64_t ts_delta = timespec_to_ns64(t_end) - timespec_to_ns64(t_start); in add_timing_event() local
125 if (ts_delta < te->min) in add_timing_event()
126 te->min = ts_delta; in add_timing_event()
127 if (ts_delta > te->max) in add_timing_event()
128 te->max = ts_delta; in add_timing_event()
129 te->total += ts_delta; in add_timing_event()
170 static void __print_ts_delta_formatted(int64_t ts_delta) in __print_ts_delta_formatted() argument
173 fprintf(stderr, "%" PRId64 " ns", ts_delta); in __print_ts_delta_formatted()
175 fprintf(stderr, "%" PRId64 " us", ts_delta / NSEC_PER_USEC); in __print_ts_delta_formatted()
181 int64_t ts_delta; in __print_timestamp() local
[all …]
/linux-6.1.9/kernel/time/
Dtimekeeping.c1315 struct timespec64 ts_delta, xt; in do_settimeofday64() local
1328 ts_delta = timespec64_sub(*ts, xt); in do_settimeofday64()
1330 if (timespec64_compare(&tk->wall_to_monotonic, &ts_delta) > 0) { in do_settimeofday64()
1335 tk_set_wall_to_mono(tk, timespec64_sub(tk->wall_to_monotonic, ts_delta)); in do_settimeofday64()
1348 audit_tk_injoffset(ts_delta); in do_settimeofday64()
1782 struct timespec64 ts_new, ts_delta; in timekeeping_resume() local
1809 ts_delta = ns_to_timespec64(nsec); in timekeeping_resume()
1812 ts_delta = timespec64_sub(ts_new, timekeeping_suspend_time); in timekeeping_resume()
1818 __timekeeping_inject_sleeptime(tk, &ts_delta); in timekeeping_resume()
/linux-6.1.9/kernel/
Dsmp.c331 u64 ts2, ts_delta; in csd_lock_wait_toolong() local
346 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong()
347 if (likely(ts_delta <= csd_lock_timeout_ns || csd_lock_timeout_ns == 0)) in csd_lock_wait_toolong()
/linux-6.1.9/include/linux/qed/
Deth_common.h250 __le32 ts_delta; member