Lines Matching refs:gtod
2197 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in kvm_track_tsc_matching() local
2211 (gtod_is_based_on_tsc(gtod->clock.vclock_mode) && vcpus_matched)) in kvm_track_tsc_matching()
2216 ka->use_master_clock, gtod->clock.vclock_mode); in kvm_track_tsc_matching()
2455 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in do_monotonic_raw() local
2461 seq = read_seqcount_begin(>od->seq); in do_monotonic_raw()
2462 ns = gtod->raw_clock.base_cycles; in do_monotonic_raw()
2463 ns += vgettsc(>od->raw_clock, tsc_timestamp, &mode); in do_monotonic_raw()
2464 ns >>= gtod->raw_clock.shift; in do_monotonic_raw()
2465 ns += ktime_to_ns(ktime_add(gtod->raw_clock.offset, gtod->offs_boot)); in do_monotonic_raw()
2466 } while (unlikely(read_seqcount_retry(>od->seq, seq))); in do_monotonic_raw()
2474 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in do_realtime() local
2480 seq = read_seqcount_begin(>od->seq); in do_realtime()
2481 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
2482 ns = gtod->clock.base_cycles; in do_realtime()
2483 ns += vgettsc(>od->clock, tsc_timestamp, &mode); in do_realtime()
2484 ns >>= gtod->clock.shift; in do_realtime()
2485 } while (unlikely(read_seqcount_retry(>od->seq, seq))); in do_realtime()
8059 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in pvclock_gtod_notify() local
8069 if (!gtod_is_based_on_tsc(gtod->clock.vclock_mode) && in pvclock_gtod_notify()