Home
last modified time | relevance | path

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

123

/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dvmx.c82 cr0 &= rdmsr(MSR_IA32_VMX_CR0_FIXED1); in prepare_for_vmx_operation()
83 cr0 |= rdmsr(MSR_IA32_VMX_CR0_FIXED0); in prepare_for_vmx_operation()
87 cr4 &= rdmsr(MSR_IA32_VMX_CR4_FIXED1); in prepare_for_vmx_operation()
88 cr4 |= rdmsr(MSR_IA32_VMX_CR4_FIXED0); in prepare_for_vmx_operation()
101 feature_control = rdmsr(MSR_IA32_FEATURE_CONTROL); in prepare_for_vmx_operation()
134 vmwrite(PIN_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PINBASED_CTLS)); in init_vmcs_control_fields()
137 rdmsr(MSR_IA32_VMX_TRUE_PROCBASED_CTLS) | CPU_BASED_ACTIVATE_SECONDARY_CONTROLS); in init_vmcs_control_fields()
139 vmwrite(CPU_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PROCBASED_CTLS)); in init_vmcs_control_fields()
144 vmwrite(VM_EXIT_CONTROLS, rdmsr(MSR_IA32_VMX_EXIT_CTLS) | in init_vmcs_control_fields()
148 vmwrite(VM_ENTRY_CONTROLS, rdmsr(MSR_IA32_VMX_ENTRY_CTLS) | in init_vmcs_control_fields()
[all …]
/Linux-v4.19/drivers/cpufreq/
Dlongrun.c40 rdmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_get_policy()
47 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_get_policy()
96 rdmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_set_policy()
108 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_set_policy()
185 rdmsr(MSR_TMTA_LRTI_READOUT, msr_lo, msr_hi); in longrun_determine_freqs()
187 rdmsr(MSR_TMTA_LRTI_VOLT_MHZ, msr_lo, msr_hi); in longrun_determine_freqs()
192 rdmsr(MSR_TMTA_LRTI_VOLT_MHZ, msr_lo, msr_hi); in longrun_determine_freqs()
209 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_determine_freqs()
Dspeedstep-lib.c76 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentium3_get_frequency()
113 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentiumM_get_frequency()
136 rdmsr(MSR_FSB_FREQ, msr_lo, msr_tmp); in pentium_core_get_frequency()
161 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentium_core_get_frequency()
190 rdmsr(0x2c, msr_lo, msr_hi); in pentium4_get_frequency()
346 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_hi); in speedstep_detect_processor()
359 rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi); in speedstep_detect_processor()
De_powersaver.c104 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get()
116 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
120 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
132 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
144 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
200 rdmsr(0x1153, lo, hi); in eps_cpu_init()
205 rdmsr(0x1154, lo, hi); in eps_cpu_init()
243 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_cpu_init()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dp5.c27 rdmsr(MSR_IA32_P5_MC_ADDR, loaddr, hi); in pentium_machine_check()
28 rdmsr(MSR_IA32_P5_MC_TYPE, lotype, hi); in pentium_machine_check()
61 rdmsr(MSR_IA32_P5_MC_ADDR, l, h); in intel_p5_mcheck_init()
62 rdmsr(MSR_IA32_P5_MC_TYPE, l, h); in intel_p5_mcheck_init()
Dtherm_throt.c438 rdmsr(MSR_IA32_MISC_ENABLE, l, h); in intel_init_thermal()
464 rdmsr(MSR_THERM2_CTL, l, h); in intel_init_thermal()
475 rdmsr(MSR_IA32_THERM_INTERRUPT, l, h); in intel_init_thermal()
489 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); in intel_init_thermal()
508 rdmsr(MSR_IA32_MISC_ENABLE, l, h); in intel_init_thermal()
Dwinchip.c36 rdmsr(MSR_IDT_FCR1, lo, hi); in winchip_mcheck_init()
/Linux-v4.19/arch/x86/kernel/cpu/mtrr/
Dgeneric.c56 rdmsr(MSR_K8_SYSCFG, lo, hi); in k8_check_syscfg_dram_mod_en()
317 rdmsr(MTRRphysBase_MSR(index), vr->base_lo, vr->base_hi); in get_mtrr_var_range()
318 rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); in get_mtrr_var_range()
342 rdmsr(MSR_MTRRfix64K_00000, p[0], p[1]); in get_fixed_ranges()
345 rdmsr(MSR_MTRRfix16K_80000 + i, p[2 + i * 2], p[3 + i * 2]); in get_fixed_ranges()
347 rdmsr(MSR_MTRRfix4K_C0000 + i, p[6 + i * 2], p[7 + i * 2]); in get_fixed_ranges()
470 rdmsr(MSR_MTRRcap, lo, dummy); in get_mtrr_state()
478 rdmsr(MSR_MTRRdefType, lo, dummy); in get_mtrr_state()
486 rdmsr(MSR_K8_TOP_MEM2, low, high); in get_mtrr_state()
542 rdmsr(msr, lo, hi); in set_fixed_range()
[all …]
Damd.c15 rdmsr(MSR_K6_UWCCR, low, high); in amd_get_mtrr()
67 rdmsr(MSR_K6_UWCCR, regs[0], regs[1]); in amd_set_mtrr()
/Linux-v4.19/arch/x86/kernel/cpu/
Dcentaur.c38 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3()
46 rdmsr(MSR_VIA_RNG, lo, hi); in init_c3()
60 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3()
126 rdmsr(MSR_IA32_VMX_PROCBASED_CTLS, vmx_msr_low, vmx_msr_high); in centaur_detect_vmx_virtcap()
134 rdmsr(MSR_IA32_VMX_PROCBASED_CTLS2, in centaur_detect_vmx_virtcap()
218 rdmsr(MSR_IDT_FCR1, lo, hi); in init_centaur()
/Linux-v4.19/arch/x86/kernel/
Dtsc_msr.c90 rdmsr(MSR_PLATFORM_INFO, lo, hi); in cpu_khz_from_msr()
93 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in cpu_khz_from_msr()
98 rdmsr(MSR_FSB_FREQ, lo, hi); in cpu_khz_from_msr()
Dverify_cpu.S96 rdmsr
128 rdmsr
/Linux-v4.19/arch/x86/oprofile/
Dop_model_p4.c534 rdmsr(ev->bindings[i].escr_address, escr, high); in pmc_setup_one_p4_counter()
548 rdmsr(p4_counters[VIRT_CTR(stag, ctr)].cccr_address, in pmc_setup_one_p4_counter()
578 rdmsr(MSR_IA32_MISC_ENABLE, low, high); in p4_setup_ctrs()
588 rdmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_setup_ctrs()
647 rdmsr(p4_counters[real].cccr_address, low, high); in p4_check_ctrs()
648 rdmsr(p4_counters[real].counter_address, ctr, high); in p4_check_ctrs()
678 rdmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_start()
695 rdmsr(p4_counters[VIRT_CTR(stag, i)].cccr_address, low, high); in p4_stop()
/Linux-v4.19/tools/power/cpupower/debug/i386/
Dcentrino-decode.c29 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() function
81 err = rdmsr(cpu, MSR_IA32_PERF_STATUS, &lo, &hi); in decode_live()
/Linux-v4.19/drivers/ide/
Dcs5535.c101 rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy); in cs5535_set_speed()
111 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed()
115 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed()
/Linux-v4.19/drivers/ata/
Dpata_cs5536.c48 #undef rdmsr /* avoid accidental MSR usage on, e.g. x86-64 */
50 #define rdmsr(x, y, z) do { } while (0) macro
103 rdmsr(MSR_IDE_CFG + reg, *val, dummy); in cs5536_read()
Dpata_cs5535.c125 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_piomode()
147 rdmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, dummy); in cs5535_set_dmamode()
/Linux-v4.19/arch/x86/mm/
Dmem_encrypt_boot.S117 rdmsr
150 rdmsr
/Linux-v4.19/drivers/char/hw_random/
Dvia-rng.c153 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init()
177 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init()
/Linux-v4.19/drivers/misc/
Dcs5535-mfgpt.c87 rdmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
118 rdmsr(MSR_PIC_ZSEL_LOW, zsel, dummy); in cs5535_mfgpt_set_irq()
132 rdmsr(MSR_PIC_IRQM_LPC, lpc, dummy); in cs5535_mfgpt_set_irq()
/Linux-v4.19/drivers/hwmon/
Dhwmon-vid.c254 rdmsr(0x198, dummy, vid); in get_via_model_d_vrm()
257 rdmsr(0x1154, brand, dummy); in get_via_model_d_vrm()
/Linux-v4.19/arch/x86/boot/compressed/
Defi_thunk_64.S132 rdmsr
159 rdmsr
/Linux-v4.19/arch/x86/hyperv/
Dhv_apic.c63 rdmsr(HV_X64_MSR_EOI, reg_val, hi); in hv_apic_read()
66 rdmsr(HV_X64_MSR_TPR, reg_val, hi); in hv_apic_read()
/Linux-v4.19/drivers/thermal/
Dx86_pkg_temp_thermal.c264 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); in enable_pkg_thres_interrupt()
280 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); in disable_pkg_thres_interrupt()
392 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, pkgdev->msr_pkg_therm_low, in pkg_temp_thermal_device_add()
/Linux-v4.19/drivers/char/agp/
Dnvidia-agp.c76 rdmsr(IORR_BASE0 + 2 * iorr_addr, base_lo, base_hi); in nvidia_init_iorr()
77 rdmsr(IORR_MASK0 + 2 * iorr_addr, mask_lo, mask_hi); in nvidia_init_iorr()
98 rdmsr(SYSCFG, sys_lo, sys_hi); in nvidia_init_iorr()

123