Searched refs:hyperv_ref_tsc (Results 1 – 2 of 2) sorted by relevance
| /freebsd-13.1/sys/dev/hyperv/vmbus/amd64/ |
| H A D | hyperv_machdep.c | 79 static struct hyperv_reftsc_ctx hyperv_ref_tsc; variable 108 KASSERT(hyperv_ref_tsc.tsc_ref != NULL, ("reftsc has not been setup")); in hyperv_tsc_mmap() 119 *paddr = hyperv_ref_tsc.tsc_ref_dma.hv_paddr; in hyperv_tsc_mmap() 141 struct hyperv_reftsc *tsc_ref = hyperv_ref_tsc.tsc_ref; \ 210 hyperv_ref_tsc.tsc_ref = hyperv_dmamem_alloc(NULL, PAGE_SIZE, 0, in hyperv_tsc_tcinit() 211 sizeof(struct hyperv_reftsc), &hyperv_ref_tsc.tsc_ref_dma, in hyperv_tsc_tcinit() 213 if (hyperv_ref_tsc.tsc_ref == NULL) { in hyperv_tsc_tcinit() 220 ((hyperv_ref_tsc.tsc_ref_dma.hv_paddr >> PAGE_SHIFT) << in hyperv_tsc_tcinit()
|
| /freebsd-13.1/lib/libc/x86/sys/ |
| H A D | __vdso_gettc.c | 256 static struct hyperv_reftsc *hyperv_ref_tsc; variable 270 hyperv_ref_tsc = mmap(NULL, sizeof(*hyperv_ref_tsc), PROT_READ, in __vdso_init_hyperv_tsc() 277 hyperv_ref_tsc = MAP_FAILED; in __vdso_init_hyperv_tsc() 397 if (hyperv_ref_tsc == NULL) in __vdso_gettc() 399 if (hyperv_ref_tsc == MAP_FAILED) in __vdso_gettc() 401 return (__vdso_hyperv_tsc(hyperv_ref_tsc, tc)); in __vdso_gettc()
|