Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/hyperv/vmbus/amd64/
H A Dhyperv_machdep.c80 static struct hyperv_reftsc_ctx hyperv_ref_tsc; variable
109 KASSERT(hyperv_ref_tsc.tsc_ref != NULL, ("reftsc has not been setup")); in hyperv_tsc_mmap()
120 *paddr = pmap_kextract((vm_offset_t)hyperv_ref_tsc.tsc_ref); in hyperv_tsc_mmap()
142 struct hyperv_reftsc *tsc_ref = hyperv_ref_tsc.tsc_ref; \
211 hyperv_ref_tsc.tsc_ref = contigmalloc(PAGE_SIZE, M_DEVBUF, in hyperv_tsc_tcinit()
213 if (hyperv_ref_tsc.tsc_ref == NULL) { in hyperv_tsc_tcinit()
219 val = (pmap_kextract((vm_offset_t)hyperv_ref_tsc.tsc_ref) >> in hyperv_tsc_tcinit()
/freebsd-14.2/lib/libc/x86/sys/
H A D__vdso_gettc.c289 static struct hyperv_reftsc *hyperv_ref_tsc; variable
303 hyperv_ref_tsc = mmap(NULL, sizeof(*hyperv_ref_tsc), PROT_READ, in __vdso_init_hyperv_tsc()
310 hyperv_ref_tsc = MAP_FAILED; in __vdso_init_hyperv_tsc()
430 if (hyperv_ref_tsc == NULL) in __vdso_gettc()
432 if (hyperv_ref_tsc == MAP_FAILED) in __vdso_gettc()
434 return (__vdso_hyperv_tsc(hyperv_ref_tsc, tc)); in __vdso_gettc()