Lines Matching refs:tsc_msr
398 u64 tsc_msr; in suspend_hv_clock_tsc() local
401 tsc_msr = hv_get_register(HV_REGISTER_REFERENCE_TSC); in suspend_hv_clock_tsc()
402 tsc_msr &= ~BIT_ULL(0); in suspend_hv_clock_tsc()
403 hv_set_register(HV_REGISTER_REFERENCE_TSC, tsc_msr); in suspend_hv_clock_tsc()
410 u64 tsc_msr; in resume_hv_clock_tsc() local
413 tsc_msr = hv_get_register(HV_REGISTER_REFERENCE_TSC); in resume_hv_clock_tsc()
414 tsc_msr &= GENMASK_ULL(11, 0); in resume_hv_clock_tsc()
415 tsc_msr |= BIT_ULL(0) | (u64)phys_addr; in resume_hv_clock_tsc()
416 hv_set_register(HV_REGISTER_REFERENCE_TSC, tsc_msr); in resume_hv_clock_tsc()
498 u64 tsc_msr; in hv_init_tsc_clocksource() local
533 tsc_msr = hv_get_register(HV_REGISTER_REFERENCE_TSC); in hv_init_tsc_clocksource()
534 tsc_msr &= GENMASK_ULL(11, 0); in hv_init_tsc_clocksource()
535 tsc_msr = tsc_msr | 0x1 | (u64)phys_addr; in hv_init_tsc_clocksource()
536 hv_set_register(HV_REGISTER_REFERENCE_TSC, tsc_msr); in hv_init_tsc_clocksource()