Home
last modified time | relevance | path

Searched refs:wrmsr (Results 1 – 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/cpufreq/
Dlongrun.c104 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()
Dpowernow-k6.c91 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()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_cs5535.c105 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()
Dpata_cs5536.c37 #undef wrmsr
39 #define wrmsr(x, y, z) do { } while (0) macro
101 wrmsr(MSR_IDE_CFG + reg, val, 0); in cs5536_write()
/kernel/linux/linux-5.10/drivers/ide/
Dcs5535.c95 wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); in cs5535_set_speed()
104 wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); in cs5535_set_speed()
109 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, in cs5535_set_speed()
123 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); in cs5535_set_speed()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dtsc_msrs_test.c39 wrmsr(MSR_IA32_TSC, val); in guest_code()
46 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
61 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
71 wrmsr(MSR_IA32_TSC, val); in guest_code()
Duser_msr_test.c97 wrmsr(MSR_SYSCALL_MASK, 0); in guest_msr_calls()
109 wrmsr(MSR_IA32_POWER_CTL, 0x1234); in guest_msr_calls()
116 wrmsr(0xdeadbeef, 0x1234); in guest_msr_calls()
Dvmx_tsc_adjust_test.c76 wrmsr(MSR_IA32_TSC, l1_tsc - TSC_ADJUST_VALUE); in l2_guest_code()
91 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
Dsmm_test.c58 wrmsr(APIC_BASE_MSR + (APIC_ICR >> 4), in self_smi()
68 wrmsr(MSR_IA32_APICBASE, apicbase | X2APIC_ENABLE); in guest_code()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
Dcentaur.c34 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()
Dtransmeta.c87 wrmsr(0x80860004, ~0, uk); in init_transmeta()
89 wrmsr(0x80860004, cap_mask, uk); in init_transmeta()
Dzhaoxin.c33 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
42 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
Dumwait.c36 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()
/kernel/linux/linux-5.10/arch/x86/oprofile/
Dop_model_p4.c545 wrmsr(ev->bindings[i].escr_address, escr, high); in pmc_setup_one_p4_counter()
557 wrmsr(p4_counters[VIRT_CTR(stag, ctr)].cccr_address, in pmc_setup_one_p4_counter()
591 wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_setup_ctrs()
598 wrmsr(msrs->controls[i].addr, 0, 0); in p4_setup_ctrs()
654 wrmsr(p4_counters[real].cccr_address, low, high); in p4_check_ctrs()
680 wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_start()
697 wrmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_stop()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/
Dtherm_throt.c700 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
704 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
708 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
714 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
719 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
724 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
732 wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h); in intel_init_thermal()
/kernel/linux/linux-5.10/arch/x86/hyperv/
Dhv_apic.c77 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_write()
80 wrmsr(HV_X64_MSR_TPR, val, 0); in hv_apic_write()
94 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_eoi_write()
/kernel/linux/linux-5.10/arch/x86/mm/
Dmem_encrypt_boot.S121 wrmsr
152 wrmsr
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dmsr.h271 static inline void wrmsr(unsigned int msr, u32 low, u32 high) in wrmsr() function
327 #define write_tsc(low, high) wrmsr(MSR_IA32_TSC, (low), (high))
329 #define write_rdtscp_aux(val) wrmsr(MSR_TSC_AUX, (val), 0)
357 wrmsr(msr_no, l, h); in wrmsr_on_cpu()
/kernel/linux/linux-5.10/arch/x86/realmode/rm/
Dwakeup_asm.S104 wrmsr
124 wrmsr
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
Defi_thunk_64.S122 wrmsr
147 wrmsr
/kernel/linux/linux-5.10/drivers/misc/
Dcs5535-mfgpt.c91 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()
/kernel/linux/linux-5.10/arch/x86/platform/pvh/
Dhead.S83 wrmsr
101 wrmsr
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/
Dsvm.c85 wrmsr(MSR_EFER, efer | EFER_SVME); in generic_svm_setup()
86 wrmsr(MSR_VM_HSAVE_PA, svm->save_area_gpa); in generic_svm_setup()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dverify_cpu.S97 wrmsr
128 wrmsr
/kernel/linux/linux-5.10/arch/x86/entry/
Dentry.S16 wrmsr

123