/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/ |
D | apic.c | 12 wrmsr(MSR_IA32_APICBASE, in apic_disable() 24 wrmsr(MSR_IA32_APICBASE, in xapic_enable() 27 wrmsr(MSR_IA32_APICBASE, val | MSR_IA32_APICBASE_ENABLE); in xapic_enable() 41 wrmsr(MSR_IA32_APICBASE, rdmsr(MSR_IA32_APICBASE) | in x2apic_enable()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_clock.c | 107 wrmsr(HV_X64_MSR_GUEST_OS_ID, (u64)0x8100 << 48); in guest_main() 115 wrmsr(HV_X64_MSR_REFERENCE_TSC, tsc_page_gpa); in guest_main() 123 wrmsr(HV_X64_MSR_REFERENCE_TSC, tsc_page_gpa | 0x1); in guest_main() 147 wrmsr(HV_X64_MSR_REENLIGHTENMENT_CONTROL, 0x1 << 16 | 0xff); in guest_main() 148 wrmsr(HV_X64_MSR_TSC_EMULATION_CONTROL, 0x1); in guest_main() 163 wrmsr(HV_X64_MSR_REENLIGHTENMENT_CONTROL, 0); in guest_main() 164 wrmsr(HV_X64_MSR_TSC_EMULATION_CONTROL, 0); in guest_main() 165 wrmsr(HV_X64_MSR_REFERENCE_TSC, 0); in guest_main()
|
D | pmu_event_filter_test.c | 116 wrmsr(msr, v); in check_msr() 121 wrmsr(msr, v); in check_msr() 136 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 0); in intel_guest_code() 137 wrmsr(MSR_P6_EVNTSEL0, ARCH_PERFMON_EVENTSEL_ENABLE | in intel_guest_code() 139 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 1); in intel_guest_code() 161 wrmsr(MSR_K7_EVNTSEL0, 0); in amd_guest_code() 162 wrmsr(MSR_K7_EVNTSEL0, ARCH_PERFMON_EVENTSEL_ENABLE | in amd_guest_code()
|
D | tsc_msrs_test.c | 28 wrmsr(MSR_IA32_TSC, val); in guest_code() 35 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code() 50 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code() 60 wrmsr(MSR_IA32_TSC, val); in guest_code()
|
D | ucna_injection_test.c | 89 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in ucna_injection_guest_code() 101 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 & ~MCI_CTL2_CMCI_EN); in ucna_injection_guest_code() 113 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in cmci_disabled_guest_code() 121 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_RESERVED_BIT); in cmci_enabled_guest_code()
|
D | amx_test.c | 254 wrmsr(MSR_IA32_XFD, 0); in guest_code() 271 wrmsr(MSR_IA32_XFD, XFEATURE_MASK_XTILEDATA); in guest_code() 291 wrmsr(MSR_IA32_XFD_ERR, 0); in guest_nm_handler() 293 wrmsr(MSR_IA32_XFD, 0); in guest_nm_handler()
|
D | vmx_tsc_adjust_test.c | 73 wrmsr(MSR_IA32_TSC, l1_tsc - TSC_ADJUST_VALUE); in l2_guest_code() 88 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
|
/linux-6.1.9/drivers/cpufreq/ |
D | longrun.c | 104 wrmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_set_policy() 112 wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_set_policy() 181 wrmsr(MSR_TMTA_LRTI_READOUT, msr_hi, msr_hi); in longrun_determine_freqs() 186 wrmsr(MSR_TMTA_LRTI_READOUT, 0, msr_hi); in longrun_determine_freqs() 219 wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_determine_freqs() 225 wrmsr(MSR_TMTA_LONGRUN_CTRL, save_lo, save_hi); in longrun_determine_freqs()
|
D | powernow-k6.c | 91 wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ in powernow_k6_get_cpu_multiplier() 94 wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ in powernow_k6_get_cpu_multiplier() 121 wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ in powernow_k6_set_cpu_multiplier() 127 wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ in powernow_k6_set_cpu_multiplier()
|
/linux-6.1.9/drivers/ata/ |
D | pata_cs5535.c | 105 wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, in cs5535_set_piomode() 109 wrmsr(ATAC_CH0D0_PIO + 2 * adev->devno, in cs5535_set_piomode() 114 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg | 0x80000000UL, 0); in cs5535_set_piomode() 141 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); in cs5535_set_dmamode()
|
D | pata_cs5536.c | 37 #undef wrmsr 39 #define wrmsr(x, y, z) do { } while (0) macro 101 wrmsr(MSR_IDE_CFG + reg, val, 0); in cs5536_write()
|
/linux-6.1.9/arch/x86/kernel/cpu/ |
D | centaur.c | 34 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3() 42 wrmsr(MSR_VIA_RNG, lo, hi); in init_c3() 56 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3() 190 wrmsr(MSR_IDT_FCR1, newlo, hi); in init_centaur()
|
D | transmeta.c | 87 wrmsr(0x80860004, ~0, uk); in init_transmeta() 89 wrmsr(0x80860004, cap_mask, uk); in init_transmeta()
|
D | zhaoxin.c | 33 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap() 42 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
|
D | umwait.c | 36 wrmsr(MSR_IA32_UMWAIT_CONTROL, READ_ONCE(umwait_control_cached), 0); in umwait_update_control_msr() 74 wrmsr(MSR_IA32_UMWAIT_CONTROL, orig_umwait_control_cached, 0); in umwait_cpu_offline()
|
/linux-6.1.9/drivers/thermal/intel/ |
D | therm_throt.c | 709 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal() 713 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal() 717 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal() 723 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal() 728 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal() 733 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal() 739 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal() 745 wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h); in intel_init_thermal()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | extable.h | 45 extern void __noreturn ex_handler_msr_mce(struct pt_regs *regs, bool wrmsr); 47 static inline void __noreturn ex_handler_msr_mce(struct pt_regs *regs, bool wrmsr) in ex_handler_msr_mce() argument
|
/linux-6.1.9/arch/x86/mm/ |
D | extable.c | 148 struct pt_regs *regs, bool wrmsr, bool safe, int reg) in ex_handler_msr() argument 150 if (__ONCE_LITE_IF(!safe && wrmsr)) { in ex_handler_msr() 157 if (__ONCE_LITE_IF(!safe && !wrmsr)) { in ex_handler_msr() 163 if (!wrmsr) { in ex_handler_msr()
|
D | mem_encrypt_boot.S | 121 wrmsr 152 wrmsr
|
/linux-6.1.9/arch/x86/hyperv/ |
D | hv_apic.c | 79 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_write() 82 wrmsr(HV_X64_MSR_TPR, val, 0); in hv_apic_write() 96 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_eoi_write()
|
/linux-6.1.9/arch/x86/platform/pvh/ |
D | head.S | 83 wrmsr 101 wrmsr
|
/linux-6.1.9/arch/x86/realmode/rm/ |
D | wakeup_asm.S | 104 wrmsr 124 wrmsr
|
/linux-6.1.9/drivers/misc/ |
D | cs5535-mfgpt.c | 91 wrmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event() 138 wrmsr(MSR_PIC_ZSEL_LOW, zsel, dummy); in cs5535_mfgpt_set_irq() 255 wrmsr(MSR_MFGPT_SETUP, val, dummy); in reset_all_timers()
|
/linux-6.1.9/arch/x86/kernel/ |
D | verify_cpu.S | 97 wrmsr 128 wrmsr
|
/linux-6.1.9/arch/x86/boot/compressed/ |
D | efi_thunk_64.S | 134 wrmsr 162 wrmsr
|