Home
last modified time | relevance | path

Searched refs:tsc_ref (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/hyperv/vmbus/amd64/
H A Dhyperv_machdep.c53 struct hyperv_reftsc *tsc_ref; member
108 KASSERT(hyperv_ref_tsc.tsc_ref != NULL, ("reftsc has not been setup")); in hyperv_tsc_mmap()
119 *paddr = pmap_kextract((vm_offset_t)hyperv_ref_tsc.tsc_ref); in hyperv_tsc_mmap()
141 struct hyperv_reftsc *tsc_ref = hyperv_ref_tsc.tsc_ref; \
144 while ((seq = atomic_load_acq_int(&tsc_ref->tsc_seq)) != 0) { \
146 uint64_t scale = tsc_ref->tsc_scale; \
147 int64_t ofs = tsc_ref->tsc_ofs; \
159 if (tsc_ref->tsc_seq == seq) \
210 hyperv_ref_tsc.tsc_ref = contigmalloc(PAGE_SIZE, M_DEVBUF, in hyperv_tsc_tcinit()
212 if (hyperv_ref_tsc.tsc_ref == NULL) { in hyperv_tsc_tcinit()
[all …]
/freebsd/lib/libsys/x86/
H A D__vdso_gettc.c314 __vdso_hyperv_tsc(struct hyperv_reftsc *tsc_ref, u_int *tc) in __vdso_hyperv_tsc() argument
320 while ((seq = atomic_load_acq_int(&tsc_ref->tsc_seq)) != 0) { in __vdso_hyperv_tsc()
321 scale = tsc_ref->tsc_scale; in __vdso_hyperv_tsc()
322 ofs = tsc_ref->tsc_ofs; in __vdso_hyperv_tsc()
334 if (tsc_ref->tsc_seq == seq) { in __vdso_hyperv_tsc()