/kernel/linux/linux-6.6/drivers/thermal/intel/ |
H A D | intel_soc_dts_iosf.c | 59 temp_out = (sensors->tj_max - temp) / 1000; in update_trip_temp() 155 if (temp > sensors->tj_max) in sys_set_trip_temp() 182 *temp = sensors->tj_max - out * 1000; in sys_get_curr_temp() 327 int tj_max; in intel_soc_dts_iosf_init() local 334 tj_max = intel_tcc_get_tjmax(-1); in intel_soc_dts_iosf_init() 335 if (tj_max < 0) in intel_soc_dts_iosf_init() 336 return ERR_PTR(tj_max); in intel_soc_dts_iosf_init() 345 sensors->tj_max = tj_max * 1000; in intel_soc_dts_iosf_init() 360 temp = sensors->tj_max in intel_soc_dts_iosf_init() [all...] |
H A D | x86_pkg_temp_thermal.c | 127 int tj_max, val, ret; in sys_set_trip_temp() local 129 tj_max = intel_tcc_get_tjmax(zonedev->cpu); in sys_set_trip_temp() 130 if (tj_max < 0) in sys_set_trip_temp() 131 return tj_max; in sys_set_trip_temp() 132 tj_max *= 1000; in sys_set_trip_temp() 134 val = (tj_max - temp)/1000; in sys_set_trip_temp() 271 static struct thermal_trip *pkg_temp_thermal_trips_init(int cpu, int tj_max, int num_trips) in pkg_temp_thermal_trips_init() argument 302 tj_max - thres_reg_value * 1000 : THERMAL_TEMP_INVALID; in pkg_temp_thermal_trips_init() 319 int tj_max; in pkg_temp_thermal_device_add() local 331 tj_max in pkg_temp_thermal_device_add() [all...] |
H A D | intel_soc_dts_iosf.h | 38 u32 tj_max; member
|
/kernel/linux/linux-5.10/drivers/thermal/intel/ |
H A D | intel_soc_dts_iosf.c | 48 static int get_tj_max(u32 *tj_max) in get_tj_max() argument 60 *tj_max = val * 1000; in get_tj_max() 69 *tj_max = 0; in get_tj_max() 95 *temp = sensors->tj_max - out * 1000; in sys_get_trip_temp() 118 temp_out = (sensors->tj_max - temp) / 1000; in update_trip_temp() 200 if (temp > sensors->tj_max) in sys_set_trip_temp() 241 *temp = sensors->tj_max - out * 1000; in sys_get_curr_temp() 356 sensors->tj_max - critical_offset, in intel_soc_dts_iosf_add_read_only_critical_trip() 407 int tj_max; in intel_soc_dts_iosf_init() local 417 if (get_tj_max(&tj_max)) in intel_soc_dts_iosf_init() [all...] |
H A D | x86_pkg_temp_thermal.c | 49 u32 tj_max; member 109 static int get_tj_max(int cpu, u32 *tj_max) in get_tj_max() argument 119 *tj_max = val * 1000; in get_tj_max() 132 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp() 165 *temp = zonedev->tj_max - thres_reg_value * 1000; in sys_get_trip_temp() 180 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= zonedev->tj_max) in sys_set_trip_temp() 205 l |= (zonedev->tj_max - temp)/1000 << shift; in sys_set_trip_temp() 332 u32 tj_max, eax, ebx, ecx, edx; in pkg_temp_thermal_device_add() local 346 err = get_tj_max(cpu, &tj_max); in pkg_temp_thermal_device_add() 356 zonedev->tj_max in pkg_temp_thermal_device_add() [all...] |
H A D | intel_soc_dts_iosf.h | 36 u32 tj_max; member
|
/kernel/linux/linux-6.6/tools/power/x86/turbostat/ |
H A D | turbostat.c | 262 unsigned int tj_max; variable 2209 c->core_temp_c = tj_max - ((msr >> 16) & 0x7F); in get_counters() 2318 p->pkg_temp_c = tj_max - ((msr >> 16) & 0x7F); in get_counters() 4866 fprintf(outf, "cpu%d: MSR_IA32_PACKAGE_THERM_STATUS: 0x%08llx (%d C)\n", cpu, msr, tj_max - dts); in print_thermal() 4874 cpu, msr, tj_max - dts, tj_max - dts2); in print_thermal() 4886 cpu, msr, tj_max - dts, resolution); in print_thermal() 4894 cpu, msr, tj_max - dts, tj_max - dts2); in print_thermal() 5266 /* tj_max i in set_temperature_target() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/ |
H A D | amdgpu_dpm.h | 193 u32 tj_max; member
|
H A D | hwmgr.h | 500 uint32_t tj_max; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/inc/ |
H A D | amdgpu_dpm.h | 182 u32 tj_max; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/inc/ |
H A D | hwmgr.h | 500 uint32_t tj_max; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | process_pptables_v1_0.c | 232 ptr->tj_max in get_platform_power_management_table()
|
H A D | processpptables.c | 1550 ptr->tj_max = le32_to_cpu(atom_ppm_table->ulTjmax); in get_platform_power_management_table()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | process_pptables_v1_0.c | 228 ptr->tj_max in get_platform_power_management_table()
|
H A D | processpptables.c | 1531 ptr->tj_max = le32_to_cpu(atom_ppm_table->ulTjmax); in get_platform_power_management_table()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | legacy_dpm.c | 552 adev->pm.dpm.dyn_state.ppm_table->tj_max = in amdgpu_parse_extended_power_table()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm.c | 638 adev->pm.dpm.dyn_state.ppm_table->tj_max = in amdgpu_parse_extended_power_table()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | r600_dpm.c | 1225 rdev->pm.dpm.dyn_state.ppm_table->tj_max = in r600_parse_extended_power_table()
|
H A D | radeon.h | 1460 u32 tj_max; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | r600_dpm.c | 1225 rdev->pm.dpm.dyn_state.ppm_table->tj_max = in r600_parse_extended_power_table()
|
H A D | radeon.h | 1453 u32 tj_max; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1880 dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; in iceland_populate_bapm_parameters_in_dpm_table()
|
H A D | ci_smumgr.c | 736 dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; in ci_populate_bapm_parameters_in_dpm_table()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1880 dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; in iceland_populate_bapm_parameters_in_dpm_table()
|
H A D | ci_smumgr.c | 737 dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; in ci_populate_bapm_parameters_in_dpm_table()
|