Lines Matching refs:msr_val

109 int (*platform_thermal_notify)(__u64 msr_val);
113 int (*platform_thermal_package_notify)(__u64 msr_val);
204 u64 mask, msr_val; in clear_therm_status_log() local
214 rdmsrl(msr, msr_val); in clear_therm_status_log()
215 msr_val &= mask; in clear_therm_status_log()
216 wrmsrl(msr, msr_val & ~THERM_STATUS_PROCHOT_LOG); in clear_therm_status_log()
222 u64 msr_val; in get_therm_status() local
229 rdmsrl(msr, msr_val); in get_therm_status()
230 if (msr_val & THERM_STATUS_PROCHOT_LOG) in get_therm_status()
235 *temp = (msr_val >> 16) & 0x7F; in get_therm_status()
521 static void notify_package_thresholds(__u64 msr_val) in notify_package_thresholds() argument
530 if (msr_val & THERM_LOG_THRESHOLD0) in notify_package_thresholds()
533 if (msr_val & THERM_LOG_THRESHOLD1) in notify_package_thresholds()
542 platform_thermal_package_notify(msr_val); in notify_package_thresholds()
548 platform_thermal_package_notify(msr_val); in notify_package_thresholds()
551 platform_thermal_package_notify(msr_val); in notify_package_thresholds()
554 static void notify_thresholds(__u64 msr_val) in notify_thresholds() argument
563 if ((msr_val & THERM_LOG_THRESHOLD0) && in notify_thresholds()
565 platform_thermal_notify(msr_val); in notify_thresholds()
567 if ((msr_val & THERM_LOG_THRESHOLD1) && in notify_thresholds()
569 platform_thermal_notify(msr_val); in notify_thresholds()
580 __u64 msr_val; in intel_thermal_interrupt() local
585 rdmsrl(MSR_IA32_THERM_STATUS, msr_val); in intel_thermal_interrupt()
588 notify_thresholds(msr_val); in intel_thermal_interrupt()
590 therm_throt_process(msr_val & THERM_STATUS_PROCHOT, in intel_thermal_interrupt()
595 therm_throt_process(msr_val & THERM_STATUS_POWER_LIMIT, in intel_thermal_interrupt()
600 rdmsrl(MSR_IA32_PACKAGE_THERM_STATUS, msr_val); in intel_thermal_interrupt()
602 notify_package_thresholds(msr_val); in intel_thermal_interrupt()
603 therm_throt_process(msr_val & PACKAGE_THERM_STATUS_PROCHOT, in intel_thermal_interrupt()
607 therm_throt_process(msr_val & in intel_thermal_interrupt()