Lines Matching refs:gtod
23 #define gtod (&VVAR(vsyscall_gtod_data)) macro
124 last = gtod->cycle_last; in vread_pvclock()
191 last = gtod->cycle_last; in vread_tsc()
213 if (gtod->vclock_mode == VCLOCK_TSC) in vgetsns()
216 else if (gtod->vclock_mode == VCLOCK_HPET) in vgetsns()
220 else if (gtod->vclock_mode == VCLOCK_PVCLOCK) in vgetsns()
225 v = (cycles - gtod->cycle_last) & gtod->mask; in vgetsns()
226 return v * gtod->mult; in vgetsns()
237 seq = gtod_read_begin(gtod); in do_realtime()
238 mode = gtod->vclock_mode; in do_realtime()
239 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
240 ns = gtod->wall_time_snsec; in do_realtime()
242 ns >>= gtod->shift; in do_realtime()
243 } while (unlikely(gtod_read_retry(gtod, seq))); in do_realtime()
258 seq = gtod_read_begin(gtod); in do_monotonic()
259 mode = gtod->vclock_mode; in do_monotonic()
260 ts->tv_sec = gtod->monotonic_time_sec; in do_monotonic()
261 ns = gtod->monotonic_time_snsec; in do_monotonic()
263 ns >>= gtod->shift; in do_monotonic()
264 } while (unlikely(gtod_read_retry(gtod, seq))); in do_monotonic()
276 seq = gtod_read_begin(gtod); in do_realtime_coarse()
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()
279 } while (unlikely(gtod_read_retry(gtod, seq))); in do_realtime_coarse()
286 seq = gtod_read_begin(gtod); in do_monotonic_coarse()
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()
289 } while (unlikely(gtod_read_retry(gtod, seq))); in do_monotonic_coarse()
328 tz->tz_minuteswest = gtod->tz_minuteswest; in __vdso_gettimeofday()
329 tz->tz_dsttime = gtod->tz_dsttime; in __vdso_gettimeofday()
344 time_t result = ACCESS_ONCE(gtod->wall_time_sec); in __vdso_time()