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

/openbsd-current/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/
H A Dsmu7_thermal.c316 * @high_temp: Temperature to be programmed for low alert signals
320 int low_temp, int high_temp)
329 if (high > high_temp)
330 high = high_temp;
319 smu7_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, int low_temp, int high_temp) argument
/openbsd-current/sys/dev/pci/drm/radeon/
H A Dr600_dpm.c743 int high_temp = 255 * 1000; local
747 if (high_temp > max_temp)
748 high_temp = max_temp;
749 if (high_temp < low_temp) {
750 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
754 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
756 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
759 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Drv770_dpm.c1874 int high_temp = 255 * 1000; local
1878 if (high_temp > max_temp)
1879 high_temp = max_temp;
1880 if (high_temp < low_temp) {
1881 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1885 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
1887 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
1890 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dtrinity_dpm.c1003 int high_temp = 255 * 1000; local
1007 if (high_temp > max_temp)
1008 high_temp = max_temp;
1009 if (high_temp < low_temp) {
1010 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1014 WREG32_P(CG_THERMAL_INT_CTRL, DIG_THERM_INTH(49 + (high_temp / 1000)), ~DIG_THERM_INTH_MASK);
1018 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dsumo_dpm.c1160 int high_temp = 255 * 1000; local
1164 if (high_temp > max_temp)
1165 high_temp = max_temp;
1166 if (high_temp < low_temp) {
1167 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
1171 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(49 + (high_temp / 1000)), ~DIG_THERM_INTH_MASK);
1175 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dkv_dpm.c2253 int high_temp = 255 * 1000; local
2258 if (high_temp > max_temp)
2259 high_temp = max_temp;
2260 if (high_temp < low_temp) {
2261 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
2267 tmp |= (DIG_THERM_INTH(49 + (high_temp / 1000)) |
2272 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dci_dpm.c849 int high_temp = 255 * 1000; local
854 if (high_temp > max_temp)
855 high_temp = max_temp;
856 if (high_temp < low_temp) {
857 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
863 tmp |= CI_DIG_THERM_INTH(high_temp / 1000) |
871 tmp |= DIG_THERM_DPM(high_temp / 1000);
876 rdev->pm.dpm.thermal.max_temp = high_temp;
H A Dsi_dpm.c5967 int high_temp = 255 * 1000; local
5971 if (high_temp > max_temp)
5972 high_temp = max_temp;
5973 if (high_temp < low_temp) {
5974 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
5978 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
5980 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
5983 rdev->pm.dpm.thermal.max_temp = high_temp;
/openbsd-current/sys/dev/pci/drm/amd/pm/legacy-dpm/
H A Damdgpu_kv_dpm.c2514 int high_temp = 255 * 1000; local
2519 if (high_temp > max_temp)
2520 high_temp = max_temp;
2521 if (high_temp < low_temp) {
2522 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
2529 tmp |= ((49 + (high_temp / 1000)) << CG_THERMAL_INT_CTRL__DIG_THERM_INTH__SHIFT) |
2534 adev->pm.dpm.thermal.max_temp = high_temp;
H A Damdgpu_si_dpm.c6441 int high_temp = 255 * 1000; local
6445 if (high_temp > max_temp)
6446 high_temp = max_temp;
6447 if (high_temp < low_temp) {
6448 DRM_ERROR("invalid thermal range: %d - %d\n", low_temp, high_temp);
6452 WREG32_P(CG_THERMAL_INT, DIG_THERM_INTH(high_temp / 1000), ~DIG_THERM_INTH_MASK);
6454 WREG32_P(CG_THERMAL_CTRL, DIG_THERM_DPM(high_temp / 1000), ~DIG_THERM_DPM_MASK);
6457 adev->pm.dpm.thermal.max_temp = high_temp;

Completed in 410 milliseconds