Searched refs:high_temp (Results 1 - 10 of 10) sorted by relevance

/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
H A Damdgpu_smu7_thermal.c317 int low_temp, int high_temp)
326 if (high > high_temp)
327 high = high_temp;
316 smu7_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, int low_temp, int high_temp) argument
/netbsd-current/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_r600_dpm.c748 int high_temp = 255 * 1000; local
752 if (high_temp > max_temp)
753 high_temp = max_temp;
754 if (high_temp < low_temp) {
755 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
759 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
761 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
764 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_rv770_dpm.c1877 int high_temp = 255 * 1000; local
1881 if (high_temp > max_temp)
1882 high_temp = max_temp;
1883 if (high_temp < low_temp) {
1884 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1888 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
1890 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
1893 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_trinity_dpm.c1052 int high_temp = 255 * 1000; local
1056 if (high_temp > max_temp)
1057 high_temp = max_temp;
1058 if (high_temp < low_temp) {
1059 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1063 WREG32_P(CG_THERMAL_INT_CTRL, DIG_THERM_INTH(49 + (high_temp / 1000)), ~DIG_THERM_INTH_MASK);
1067 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_sumo_dpm.c1165 int high_temp = 255 * 1000; local
1169 if (high_temp > max_temp)
1170 high_temp = max_temp;
1171 if (high_temp < low_temp) {
1172 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1176 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(49 + (high_temp / 1000)), ~DIG_THERM_INTH_MASK);
1180 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_kv_dpm.c2463 int high_temp = 255 * 1000; local
2468 if (high_temp > max_temp)
2469 high_temp = max_temp;
2470 if (high_temp < low_temp) {
2471 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
2477 tmp |= (DIG_THERM_INTH(49 + (high_temp / 1000)) |
2482 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_ci_dpm.c878 int high_temp = 255 * 1000; local
883 if (high_temp > max_temp)
884 high_temp = max_temp;
885 if (high_temp < low_temp) {
886 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
892 tmp |= CI_DIG_THERM_INTH(high_temp / 1000) |
900 tmp |= DIG_THERM_DPM(high_temp / 1000);
905 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dradeon_si_dpm.c5990 int high_temp = 255 * 1000; local
5994 if (high_temp > max_temp)
5995 high_temp = max_temp;
5996 if (high_temp < low_temp) {
5997 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
6001 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
6003 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
6006 rdev->pm.dpm.thermal.max_temp = high_temp;
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_kv_dpm.c2530 int high_temp = 255 * 1000; local
2535 if (high_temp > max_temp)
2536 high_temp = max_temp;
2537 if (high_temp < low_temp) {
2538 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
2545 tmp |= ((49 + (high_temp / 1000)) << CG_THERMAL_INT_CTRL__DIG_THERM_INTH__SHIFT) |
2550 adev->pm.dpm.thermal.max_temp = high_temp;
H A Damdgpu_si_dpm.c6427 int high_temp = 255 * 1000; local
6431 if (high_temp > max_temp)
6432 high_temp = max_temp;
6433 if (high_temp < low_temp) {
6434 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
6438 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
6440 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
6443 adev->pm.dpm.thermal.max_temp = high_temp;

Completed in 180 milliseconds