Home
last modified time | relevance | path

Searched refs:systime_snapshot (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/arch/arm64/kvm/
Dhypercalls.c21 struct system_time_snapshot systime_snapshot; in kvm_ptp_get_time() local
29 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()
/linux-6.6.21/include/linux/
Dtimekeeping.h295 extern void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot);
/linux-6.6.21/kernel/time/
Dtimekeeping.c1055 void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot) in ktime_get_snapshot() argument
1070 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()