Searched refs:systime_snapshot (Results 1 – 3 of 3) sorted by relevance
21 struct system_time_snapshot systime_snapshot; in kvm_ptp_get_time() local29 ktime_get_snapshot(&systime_snapshot); in kvm_ptp_get_time()36 if (systime_snapshot.cs_id != CSID_ARM_ARCH_COUNTER) in kvm_ptp_get_time()47 cycles = systime_snapshot.cycles - vcpu->kvm->arch.timer_data.voffset; in kvm_ptp_get_time()50 cycles = systime_snapshot.cycles - vcpu->kvm->arch.timer_data.poffset; in kvm_ptp_get_time()62 val[0] = upper_32_bits(systime_snapshot.real); in kvm_ptp_get_time()63 val[1] = lower_32_bits(systime_snapshot.real); in kvm_ptp_get_time()
295 extern void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot);
1055 void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot) in ktime_get_snapshot() argument1070 systime_snapshot->cs_id = tk->tkr_mono.clock->id; in ktime_get_snapshot()1071 systime_snapshot->cs_was_changed_seq = tk->cs_was_changed_seq; in ktime_get_snapshot()1072 systime_snapshot->clock_was_set_seq = tk->clock_was_set_seq; in ktime_get_snapshot()1080 systime_snapshot->cycles = now; in ktime_get_snapshot()1081 systime_snapshot->real = ktime_add_ns(base_real, nsec_real); in ktime_get_snapshot()1082 systime_snapshot->raw = ktime_add_ns(base_raw, nsec_raw); in ktime_get_snapshot()