• Home
  • Raw
  • Download

Lines Matching refs:ts

64 static inline int do_realtime(struct vdso_data *vdso, struct timespec *ts)  in do_realtime()  argument
71 ts->tv_sec = vdso->wall_time_sec; in do_realtime()
77 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime()
78 ts->tv_nsec = ns; in do_realtime()
83 static inline int do_monotonic(struct vdso_data *vdso, struct timespec *ts) in do_monotonic() argument
90 ts->tv_sec = vdso->monotonic_time_sec; in do_monotonic()
96 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_monotonic()
97 ts->tv_nsec = ns; in do_monotonic()
103 struct timespec *ts) in do_realtime_coarse() argument
109 ts->tv_sec = vdso->wall_time_coarse_sec; in do_realtime_coarse()
110 ts->tv_nsec = vdso->wall_time_coarse_nsec; in do_realtime_coarse()
117 struct timespec *ts) in do_monotonic_coarse() argument
123 ts->tv_sec = vdso->monotonic_time_coarse_sec; in do_monotonic_coarse()
124 ts->tv_nsec = vdso->monotonic_time_coarse_nsec; in do_monotonic_coarse()
159 struct timespec *ts) in vdso_fallback_gettime() argument
165 : "R10" (__NR_clock_gettime), "R00" (clock), "R01" (ts) in vdso_fallback_gettime()
174 struct timespec *ts) in __vdso_clock_gettime() argument
181 do_realtime(vdso, ts); in __vdso_clock_gettime()
184 do_monotonic(vdso, ts); in __vdso_clock_gettime()
187 do_realtime_coarse(vdso, ts); in __vdso_clock_gettime()
190 do_monotonic_coarse(vdso, ts); in __vdso_clock_gettime()
193 return vdso_fallback_gettime(clock, ts); in __vdso_clock_gettime()
197 int clock_gettime(clockid_t clock, struct timespec *ts)