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()
230 notrace static int __always_inline do_realtime(struct timespec *ts) in do_realtime() argument
239 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
245 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime()
246 ts->tv_nsec = ns; in do_realtime()
251 notrace static int __always_inline do_monotonic(struct timespec *ts) in do_monotonic() argument
260 ts->tv_sec = gtod->monotonic_time_sec; in do_monotonic()
266 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic()
267 ts->tv_nsec = ns; in do_monotonic()
272 notrace static void do_realtime_coarse(struct timespec *ts) in do_realtime_coarse() argument
277 ts->tv_sec = gtod->wall_time_coarse_sec; in do_realtime_coarse()
278 ts->tv_nsec = gtod->wall_time_coarse_nsec; in do_realtime_coarse()
282 notrace static void do_monotonic_coarse(struct timespec *ts) in do_monotonic_coarse() argument
287 ts->tv_sec = gtod->monotonic_time_coarse_sec; in do_monotonic_coarse()
288 ts->tv_nsec = gtod->monotonic_time_coarse_nsec; in do_monotonic_coarse()
292 notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() argument
296 if (do_realtime(ts) == VCLOCK_NONE) in __vdso_clock_gettime()
300 if (do_monotonic(ts) == VCLOCK_NONE) in __vdso_clock_gettime()
304 do_realtime_coarse(ts); in __vdso_clock_gettime()
307 do_monotonic_coarse(ts); in __vdso_clock_gettime()
315 return vdso_fallback_gettime(clock, ts); in __vdso_clock_gettime()