/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | librapl.c | 15 if (rdmsrl_safe(MSR_RAPL_POWER_UNIT, &power)) in librapl_energy_uJ() 20 if (rdmsrl_safe(MSR_PP1_ENERGY_STATUS, &power)) in librapl_energy_uJ()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | smpboot.c | 1842 err = rdmsrl_safe(MSR_IA32_MISC_ENABLE, &misc_en); in turbo_disabled() 1853 err = rdmsrl_safe(MSR_ATOM_CORE_RATIOS, base_freq); in slv_set_max_freq_ratio() 1857 err = rdmsrl_safe(MSR_ATOM_CORE_TURBO_RATIOS, turbo_freq); in slv_set_max_freq_ratio() 1899 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in knl_set_max_freq_ratio() 1905 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in knl_set_max_freq_ratio() 1937 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in skx_set_max_freq_ratio() 1943 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &ratios); in skx_set_max_freq_ratio() 1947 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT1, &counts); in skx_set_max_freq_ratio() 1967 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in core_set_max_freq_ratio() 1971 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in core_set_max_freq_ratio()
|
/kernel/linux/linux-5.10/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_mbox_msr.c | 181 ret = rdmsrl_safe(MSR_OS_MAILBOX_INTERFACE, &data); in isst_if_mbox_init() 185 ret = rdmsrl_safe(MSR_OS_MAILBOX_DATA, &data); in isst_if_mbox_init()
|
D | isst_if_common.c | 322 ret = rdmsrl_safe(MSR_CPU_BUS_NUMBER, &data); in isst_if_cpu_online() 332 ret = rdmsrl_safe(MSR_THREAD_ID_INFO, &data); in isst_if_cpu_online()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
D | amd.c | 478 if (rdmsrl_safe(MSR_AMD_PPIN_CTL, &val)) in amd_detect_ppin() 488 rdmsrl_safe(MSR_AMD_PPIN_CTL, &val); in amd_detect_ppin() 600 if (!rdmsrl_safe(MSR_K8_TSEG_ADDR, &tseg)) { in bsp_init_amd() 667 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_amd() 973 if (!rdmsrl_safe(MSR_F15H_IC_CFG, &value) && !(value & 0x1E)) { in init_amd_bd() 1001 if (!rdmsrl_safe(MSR_ZEN2_SPECTRAL_CHICKEN, &value)) { in init_spectral_chicken()
|
D | hygon.c | 214 if (!rdmsrl_safe(MSR_K8_TSEG_ADDR, &tseg)) { in bsp_init_hygon() 252 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_hygon()
|
D | feat_ctl.c | 101 if (rdmsrl_safe(MSR_IA32_FEAT_CTL, &msr)) { in init_ia32_feat_ctl()
|
D | intel.c | 580 if (!rdmsrl_safe(MSR_PLATFORM_INFO, &msr)) { in init_cpuid_fault() 590 if (rdmsrl_safe(MSR_MISC_FEATURES_ENABLES, &msr)) in init_intel_misc_features() 1008 if (rdmsrl_safe(MSR_TEST_CTRL, &ctrl)) in split_lock_verify_msr()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | fam15h_power.c | 147 rdmsrl_safe(MSR_F15H_CU_PWR_ACCUMULATOR, &data->cu_acc_power[cu]); in do_read_registers_on_cu() 148 rdmsrl_safe(MSR_F15H_PTSC, &data->cpu_sw_pwr_ptsc[cu]); in do_read_registers_on_cu() 428 if (rdmsrl_safe(MSR_F15H_CU_MAX_PWR_ACCUMULATOR, &tmp)) { in fam15h_power_init_data()
|
D | amd_energy.c | 73 rdmsrl_safe(ENERGY_PWR_UNIT_MSR, &rapl_units); in get_energy_units()
|
/kernel/linux/linux-5.10/arch/x86/events/ |
D | probe.c | 45 if (rdmsrl_safe(msr[bit].msr, &val)) in perf_msr_probe()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | intel_turbo_max_3.c | 51 ret = rdmsrl_safe(MSR_OC_MAILBOX, &value); in get_oc_core_priority()
|
D | intel_pmc_core.c | 1085 if (rdmsrl_safe(map[index].bit_mask, &pcstate_count)) in pmc_core_pkgc_show() 1318 if (rdmsrl_safe(MSR_PKG_C10_RESIDENCY, &pmcdev->pc10_counter)) in pmc_core_suspend() 1333 if (rdmsrl_safe(MSR_PKG_C10_RESIDENCY, &pc10_counter)) in pmc_core_is_pc10_failed()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
D | intel.c | 494 if (rdmsrl_safe(MSR_PPIN_CTL, &val)) in intel_ppin_init() 505 rdmsrl_safe(MSR_PPIN_CTL, &val); in intel_ppin_init()
|
/kernel/linux/linux-5.10/arch/x86/lib/ |
D | msr.c | 44 err = rdmsrl_safe(msr, &val); in msr_read()
|
/kernel/linux/linux-5.10/arch/x86/power/ |
D | cpu.c | 128 ctxt->misc_enable_saved = !rdmsrl_safe(MSR_IA32_MISC_ENABLE, in __save_processor_state() 442 msr_array[i].valid = !rdmsrl_safe(msr_id[j], &dummy); in msr_build_context()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | msr.h | 300 static inline int rdmsrl_safe(unsigned int msr, unsigned long long *p) in rdmsrl_safe() function 391 return rdmsrl_safe(msr_no, q); in rdmsrl_safe_on_cpu()
|
D | apic.h | 126 if (rdmsrl_safe(MSR_IA32_APICBASE, &msr)) in apic_is_x2apic_enabled()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | amd_freq_sensitivity.c | 131 if (rdmsrl_safe(MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, &val)) in amd_freq_sensitivity_init()
|
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/ |
D | processor_thermal_device.c | 155 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_offset_degree_celsius_show() 171 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_offset_update() 198 err = rdmsrl_safe(MSR_PLATFORM_INFO, &val); in tcc_offset_degree_celsius_store()
|
/kernel/linux/linux-5.10/drivers/powercap/ |
D | intel_rapl_msr.c | 106 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | acpi_lpit.c | 41 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter); in lpit_read_residency_counter_us()
|
D | acpi_extlog.c | 232 if (rdmsrl_safe(MSR_IA32_MCG_CAP, &cap) || in extlog_init()
|
/kernel/linux/linux-5.10/arch/x86/events/amd/ |
D | power.c | 275 if (rdmsrl_safe(MSR_F15H_CU_MAX_PWR_ACCUMULATOR, &max_cu_acc_power)) { in amd_power_pmu_init()
|
/kernel/linux/linux-5.10/drivers/thermal/intel/ |
D | intel_powerclamp.c | 235 if (!rdmsrl_safe(info->msr_index, &val)) in has_pkg_state_counter() 251 if (!rdmsrl_safe(info->msr_index, &val)) in pkg_state_counter()
|