/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu7_thermal.c | 320 int low_temp, int high_temp) in smu7_thermal_set_temperature_range() argument 327 if (low < low_temp) in smu7_thermal_set_temperature_range() 328 low = low_temp; in smu7_thermal_set_temperature_range()
|
/Linux-v6.1/drivers/thermal/ |
D | k3_j72xx_bandgap.c | 356 int high_max, low_temp; in k3_j72xx_bandgap_probe() local 494 low_temp = k3_j72xx_bandgap_temp_to_adc_code(COOL_DOWN_TEMP); in k3_j72xx_bandgap_probe() 496 writel((low_temp << 16) | high_max, data[0].bgp->cfg2_base + in k3_j72xx_bandgap_probe()
|
/Linux-v6.1/drivers/gpu/drm/radeon/ |
D | r600_dpm.c | 742 int low_temp = 0 * 1000; in r600_set_thermal_temperature_range() local 745 if (low_temp < min_temp) in r600_set_thermal_temperature_range() 746 low_temp = min_temp; in r600_set_thermal_temperature_range() 749 if (high_temp < low_temp) { in r600_set_thermal_temperature_range() 750 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in r600_set_thermal_temperature_range() 755 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTL(low_temp / 1000), ~DIG_THERM_INTL_MASK); in r600_set_thermal_temperature_range() 758 rdev->pm.dpm.thermal.min_temp = low_temp; in r600_set_thermal_temperature_range()
|
D | trinity_dpm.c | 1002 int low_temp = 0 * 1000; in trinity_set_thermal_temperature_range() local 1005 if (low_temp < min_temp) in trinity_set_thermal_temperature_range() 1006 low_temp = min_temp; in trinity_set_thermal_temperature_range() 1009 if (high_temp < low_temp) { in trinity_set_thermal_temperature_range() 1010 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in trinity_set_thermal_temperature_range() 1015 WREG32_P(CG_THERMAL_INT_CTRL, DIG_THERM_INTL(49 + (low_temp / 1000)), ~DIG_THERM_INTL_MASK); in trinity_set_thermal_temperature_range() 1017 rdev->pm.dpm.thermal.min_temp = low_temp; in trinity_set_thermal_temperature_range()
|
D | sumo_dpm.c | 1159 int low_temp = 0 * 1000; in sumo_set_thermal_temperature_range() local 1162 if (low_temp < min_temp) in sumo_set_thermal_temperature_range() 1163 low_temp = min_temp; in sumo_set_thermal_temperature_range() 1166 if (high_temp < low_temp) { in sumo_set_thermal_temperature_range() 1167 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in sumo_set_thermal_temperature_range() 1172 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTL(49 + (low_temp / 1000)), ~DIG_THERM_INTL_MASK); in sumo_set_thermal_temperature_range() 1174 rdev->pm.dpm.thermal.min_temp = low_temp; in sumo_set_thermal_temperature_range()
|
D | kv_dpm.c | 2252 int low_temp = 0 * 1000; in kv_set_thermal_temperature_range() local 2256 if (low_temp < min_temp) in kv_set_thermal_temperature_range() 2257 low_temp = min_temp; in kv_set_thermal_temperature_range() 2260 if (high_temp < low_temp) { in kv_set_thermal_temperature_range() 2261 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in kv_set_thermal_temperature_range() 2268 DIG_THERM_INTL(49 + (low_temp / 1000))); in kv_set_thermal_temperature_range() 2271 rdev->pm.dpm.thermal.min_temp = low_temp; in kv_set_thermal_temperature_range()
|
D | rv770_dpm.c | 1873 int low_temp = 0 * 1000; in rv770_set_thermal_temperature_range() local 1876 if (low_temp < min_temp) in rv770_set_thermal_temperature_range() 1877 low_temp = min_temp; in rv770_set_thermal_temperature_range() 1880 if (high_temp < low_temp) { in rv770_set_thermal_temperature_range() 1881 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in rv770_set_thermal_temperature_range() 1886 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTL(low_temp / 1000), ~DIG_THERM_INTL_MASK); in rv770_set_thermal_temperature_range() 1889 rdev->pm.dpm.thermal.min_temp = low_temp; in rv770_set_thermal_temperature_range()
|
D | si_dpm.c | 5966 int low_temp = 0 * 1000; in si_thermal_set_temperature_range() local 5969 if (low_temp < min_temp) in si_thermal_set_temperature_range() 5970 low_temp = min_temp; in si_thermal_set_temperature_range() 5973 if (high_temp < low_temp) { in si_thermal_set_temperature_range() 5974 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in si_thermal_set_temperature_range() 5979 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTL(low_temp / 1000), ~DIG_THERM_INTL_MASK); in si_thermal_set_temperature_range() 5982 rdev->pm.dpm.thermal.min_temp = low_temp; in si_thermal_set_temperature_range()
|
D | ci_dpm.c | 848 int low_temp = 0 * 1000; in ci_thermal_set_temperature_range() local 852 if (low_temp < min_temp) in ci_thermal_set_temperature_range() 853 low_temp = min_temp; in ci_thermal_set_temperature_range() 856 if (high_temp < low_temp) { in ci_thermal_set_temperature_range() 857 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in ci_thermal_set_temperature_range() 864 CI_DIG_THERM_INTL(low_temp / 1000); in ci_thermal_set_temperature_range() 875 rdev->pm.dpm.thermal.min_temp = low_temp; in ci_thermal_set_temperature_range()
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | kv_dpm.c | 2526 int low_temp = 0 * 1000; in kv_set_thermal_temperature_range() local 2530 if (low_temp < min_temp) in kv_set_thermal_temperature_range() 2531 low_temp = min_temp; in kv_set_thermal_temperature_range() 2534 if (high_temp < low_temp) { in kv_set_thermal_temperature_range() 2535 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in kv_set_thermal_temperature_range() 2543 ((49 + (low_temp / 1000)) << CG_THERMAL_INT_CTRL__DIG_THERM_INTL__SHIFT); in kv_set_thermal_temperature_range() 2546 adev->pm.dpm.thermal.min_temp = low_temp; in kv_set_thermal_temperature_range()
|
D | si_dpm.c | 6440 int low_temp = 0 * 1000; in si_thermal_set_temperature_range() local 6443 if (low_temp < min_temp) in si_thermal_set_temperature_range() 6444 low_temp = min_temp; in si_thermal_set_temperature_range() 6447 if (high_temp < low_temp) { in si_thermal_set_temperature_range() 6448 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp); in si_thermal_set_temperature_range() 6453 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTL(low_temp / 1000), ~DIG_THERM_INTL_MASK); in si_thermal_set_temperature_range() 6456 adev->pm.dpm.thermal.min_temp = low_temp; in si_thermal_set_temperature_range()
|