/linux-6.12.1/arch/x86/kernel/cpu/ |
D | aperfmperf.c | 102 err = rdmsrl_safe(MSR_IA32_MISC_ENABLE, &misc_en); in turbo_disabled() 113 err = rdmsrl_safe(MSR_ATOM_CORE_RATIOS, base_freq); in slv_set_max_freq_ratio() 117 err = rdmsrl_safe(MSR_ATOM_CORE_TURBO_RATIOS, turbo_freq); in slv_set_max_freq_ratio() 155 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in knl_set_max_freq_ratio() 161 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in knl_set_max_freq_ratio() 193 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in skx_set_max_freq_ratio() 199 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &ratios); in skx_set_max_freq_ratio() 203 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT1, &counts); in skx_set_max_freq_ratio() 223 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in core_set_max_freq_ratio() 227 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in core_set_max_freq_ratio()
|
D | amd.c | 418 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_amd() 784 if (!rdmsrl_safe(MSR_F15H_IC_CFG, &value) && !(value & 0x1E)) { in init_amd_bd() 834 if (!rdmsrl_safe(MSR_ZEN2_SPECTRAL_CHICKEN, &value)) { in init_spectral_chicken()
|
D | intel.c | 528 if (!rdmsrl_safe(MSR_PLATFORM_INFO, &msr)) { in init_cpuid_fault() 538 if (rdmsrl_safe(MSR_MISC_FEATURES_ENABLES, &msr)) in init_intel_misc_features() 977 if (rdmsrl_safe(MSR_TEST_CTRL, &ctrl)) in split_lock_verify_msr()
|
D | hygon.c | 113 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_hygon()
|
D | feat_ctl.c | 121 if (rdmsrl_safe(MSR_IA32_FEAT_CTL, &msr)) { in init_ia32_feat_ctl()
|
/linux-6.12.1/drivers/gpu/drm/i915/selftests/ |
D | librapl.c | 25 if (rdmsrl_safe(MSR_RAPL_POWER_UNIT, &power)) in librapl_energy_uJ() 30 if (rdmsrl_safe(MSR_PP1_ENERGY_STATUS, &power)) in librapl_energy_uJ()
|
/linux-6.12.1/drivers/thermal/intel/ |
D | intel_tcc_cooling.c | 84 err = rdmsrl_safe(MSR_PLATFORM_INFO, &val); in tcc_cooling_init() 91 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_cooling_init()
|
D | intel_powerclamp.c | 343 if (!rdmsrl_safe(info->msr_index, &val)) in has_pkg_state_counter() 359 if (!rdmsrl_safe(info->msr_index, &val)) in pkg_state_counter()
|
/linux-6.12.1/drivers/platform/x86/intel/ifs/ |
D | core.c | 117 if (rdmsrl_safe(MSR_IA32_CORE_CAPS, &msrval)) in ifs_init() 123 if (rdmsrl_safe(MSR_INTEGRITY_CAPS, &msrval)) in ifs_init()
|
/linux-6.12.1/drivers/platform/x86/intel/speed_select_if/ |
D | isst_if_mbox_msr.c | 179 ret = rdmsrl_safe(MSR_OS_MAILBOX_INTERFACE, &data); in isst_if_mbox_init() 183 ret = rdmsrl_safe(MSR_OS_MAILBOX_DATA, &data); in isst_if_mbox_init()
|
D | isst_if_common.c | 409 ret = rdmsrl_safe(MSR_CPU_BUS_NUMBER, &data); in isst_if_cpu_online() 423 ret = rdmsrl_safe(MSR_PM_LOGICAL_ID, &data); in isst_if_cpu_online() 428 ret = rdmsrl_safe(MSR_THREAD_ID_INFO, &data); in isst_if_cpu_online() 833 if (rdmsrl_safe(MSR_OS_MAILBOX_INTERFACE, &data) || in isst_if_common_init() 834 rdmsrl_safe(MSR_OS_MAILBOX_DATA, &data)) in isst_if_common_init()
|
/linux-6.12.1/drivers/platform/x86/intel/ |
D | tpmi_power_domains.c | 159 ret = rdmsrl_safe(MSR_PM_LOGICAL_ID, &data); in tpmi_get_logical_id() 205 ret = rdmsrl_safe(MSR_PM_LOGICAL_ID, &data); in tpmi_init()
|
D | turbo_max_3.c | 51 ret = rdmsrl_safe(MSR_OC_MAILBOX, &value); in get_oc_core_priority()
|
/linux-6.12.1/drivers/hwmon/ |
D | fam15h_power.c | 146 rdmsrl_safe(MSR_F15H_CU_PWR_ACCUMULATOR, &data->cu_acc_power[cu]); in do_read_registers_on_cu() 147 rdmsrl_safe(MSR_F15H_PTSC, &data->cpu_sw_pwr_ptsc[cu]); in do_read_registers_on_cu() 427 if (rdmsrl_safe(MSR_F15H_CU_MAX_PWR_ACCUMULATOR, &tmp)) { in fam15h_power_init_data()
|
/linux-6.12.1/arch/x86/events/ |
D | probe.c | 46 if (rdmsrl_safe(msr[bit].msr, &val)) in perf_msr_probe()
|
/linux-6.12.1/arch/x86/power/ |
D | cpu.c | 127 ctxt->misc_enable_saved = !rdmsrl_safe(MSR_IA32_MISC_ENABLE, in __save_processor_state() 403 msr_array[i].valid = !rdmsrl_safe(msr_id[j], &dummy); in msr_build_context()
|
/linux-6.12.1/arch/x86/lib/ |
D | msr.c | 44 err = rdmsrl_safe(msr, &val); in msr_read()
|
/linux-6.12.1/drivers/cpufreq/ |
D | amd_freq_sensitivity.c | 132 if (rdmsrl_safe(MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, &val)) in amd_freq_sensitivity_init()
|
D | amd-pstate-ut.c | 95 ret = rdmsrl_safe(MSR_AMD_CPPC_ENABLE, &cppc_enable); in amd_pstate_ut_pstate_enable()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | msr.h | 283 static inline int rdmsrl_safe(unsigned int msr, unsigned long long *p) in rdmsrl_safe() function 385 return rdmsrl_safe(msr_no, q); in rdmsrl_safe_on_cpu()
|
/linux-6.12.1/drivers/acpi/ |
D | acpi_lpit.c | 42 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter); in lpit_read_residency_counter_us()
|
D | acpi_extlog.c | 237 if (rdmsrl_safe(MSR_IA32_MCG_CAP, &cap) || in extlog_init()
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/powercap/ |
D | intel_rapl_msr.c | 119 ra->err = rdmsrl_safe(ra->reg.msr, &val); in rapl_msr_update_func()
|
/linux-6.12.1/arch/x86/kernel/cpu/mce/ |
D | intel.c | 462 if (rdmsrl_safe(MSR_ERROR_CONTROL, &error_control)) in intel_imc_init()
|