Lines Matching refs:ts
25 extern int __vdso_clock_gettime(clockid_t clock, struct timespec *ts);
46 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime() argument
50 "0" (__NR_clock_gettime), "D" (clock), "S" (ts) : "memory"); in vdso_fallback_gettime()
135 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime() argument
145 : "0" (__NR_clock_gettime), "g" (clock), "c" (ts) in vdso_fallback_gettime()
218 notrace static int __always_inline do_realtime(struct timespec *ts) in do_realtime() argument
227 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
233 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime()
234 ts->tv_nsec = ns; in do_realtime()
239 notrace static int __always_inline do_monotonic(struct timespec *ts) in do_monotonic() argument
248 ts->tv_sec = gtod->monotonic_time_sec; in do_monotonic()
254 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic()
255 ts->tv_nsec = ns; in do_monotonic()
260 notrace static void do_realtime_coarse(struct timespec *ts) in do_realtime_coarse() argument
265 ts->tv_sec = gtod->wall_time_coarse_sec; in do_realtime_coarse()
266 ts->tv_nsec = gtod->wall_time_coarse_nsec; in do_realtime_coarse()
270 notrace static void do_monotonic_coarse(struct timespec *ts) in do_monotonic_coarse() argument
275 ts->tv_sec = gtod->monotonic_time_coarse_sec; in do_monotonic_coarse()
276 ts->tv_nsec = gtod->monotonic_time_coarse_nsec; in do_monotonic_coarse()
280 notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() argument
284 if (do_realtime(ts) == VCLOCK_NONE) in __vdso_clock_gettime()
288 if (do_monotonic(ts) == VCLOCK_NONE) in __vdso_clock_gettime()
292 do_realtime_coarse(ts); in __vdso_clock_gettime()
295 do_monotonic_coarse(ts); in __vdso_clock_gettime()
303 return vdso_fallback_gettime(clock, ts); in __vdso_clock_gettime()