Home
last modified time | relevance | path

Searched refs:duty100 (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/
Dsmu7_thermal.c57 uint32_t duty100; in smu7_fan_ctrl_get_fan_speed_percent() local
64 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_percent()
69 if (duty100 == 0) in smu7_fan_ctrl_get_fan_speed_percent()
74 do_div(tmp64, duty100); in smu7_fan_ctrl_get_fan_speed_percent()
198 uint32_t duty100; in smu7_fan_ctrl_set_fan_speed_percent() local
211 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_fan_speed_percent()
214 if (duty100 == 0) in smu7_fan_ctrl_set_fan_speed_percent()
217 tmp64 = (uint64_t)speed * duty100; in smu7_fan_ctrl_set_fan_speed_percent()
Dvega10_thermal.c254 uint32_t duty100; in vega10_fan_ctrl_set_fan_speed_percent() local
267 duty100 = REG_GET_FIELD(RREG32_SOC15(THM, 0, mmCG_FDO_CTRL1), in vega10_fan_ctrl_set_fan_speed_percent()
270 if (duty100 == 0) in vega10_fan_ctrl_set_fan_speed_percent()
273 tmp64 = (uint64_t)speed * duty100; in vega10_fan_ctrl_set_fan_speed_percent()
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smumgr.c2147 uint32_t duty100; in fiji_thermal_setup_fan_table() local
2166 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_thermal_setup_fan_table()
2169 if (duty100 == 0) { in fiji_thermal_setup_fan_table()
2176 usPWMMin * duty100; in fiji_thermal_setup_fan_table()
2190 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in fiji_thermal_setup_fan_table()
2191 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in fiji_thermal_setup_fan_table()
2220 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in fiji_thermal_setup_fan_table()
Diceland_smumgr.c2088 uint32_t duty100; in iceland_thermal_setup_fan_table() local
2109duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in iceland_thermal_setup_fan_table()
2111 if (0 == duty100) { in iceland_thermal_setup_fan_table()
2116 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in iceland_thermal_setup_fan_table()
2126 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in iceland_thermal_setup_fan_table()
2127 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in iceland_thermal_setup_fan_table()
2150 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in iceland_thermal_setup_fan_table()
Dpolaris10_smumgr.c1994 uint32_t duty100; in polaris10_thermal_setup_fan_table() local
2013 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table()
2016 if (duty100 == 0) { in polaris10_thermal_setup_fan_table()
2023 usPWMMin * duty100; in polaris10_thermal_setup_fan_table()
2037 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in polaris10_thermal_setup_fan_table()
2038 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in polaris10_thermal_setup_fan_table()
2067 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in polaris10_thermal_setup_fan_table()
Dci_smumgr.c2125 uint32_t duty100; in ci_thermal_setup_fan_table() local
2146duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in ci_thermal_setup_fan_table()
2148 if (0 == duty100) { in ci_thermal_setup_fan_table()
2153 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table()
2163 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
2164 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
2187 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in ci_thermal_setup_fan_table()
Dtonga_smumgr.c2454 uint32_t duty100; in tonga_thermal_setup_fan_table() local
2477 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, in tonga_thermal_setup_fan_table()
2481 if (0 == duty100) { in tonga_thermal_setup_fan_table()
2487 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in tonga_thermal_setup_fan_table()
2501 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in tonga_thermal_setup_fan_table()
2502 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in tonga_thermal_setup_fan_table()
2525 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in tonga_thermal_setup_fan_table()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dsi_dpm.c6029 u32 duty100; in si_thermal_setup_fan_table() local
6041 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6043 if (duty100 == 0) { in si_thermal_setup_fan_table()
6048 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6058 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6059 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6083 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6134 u32 duty, duty100; in si_fan_ctrl_get_fan_speed_percent() local
6140 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_get_fan_speed_percent()
6143 if (duty100 == 0) in si_fan_ctrl_get_fan_speed_percent()
[all …]
Dci_dpm.c959 u32 duty100; in ci_thermal_setup_fan_table() local
971 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table()
973 if (duty100 == 0) { in ci_thermal_setup_fan_table()
978 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
988 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
989 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1013 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1076 u32 duty, duty100; in ci_fan_ctrl_get_fan_speed_percent() local
1082 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_get_fan_speed_percent()
1085 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c1098 u32 duty100; in ci_thermal_setup_fan_table() local
1110 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) in ci_thermal_setup_fan_table()
1113 if (duty100 == 0) { in ci_thermal_setup_fan_table()
1118 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
1128 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
1129 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1153 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1219 u32 duty, duty100; in ci_dpm_get_fan_speed_percent() local
1226 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) in ci_dpm_get_fan_speed_percent()
1231 if (duty100 == 0) in ci_dpm_get_fan_speed_percent()
[all …]
Dsi_dpm.c6466 u32 duty100; in si_thermal_setup_fan_table() local
6478 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6480 if (duty100 == 0) { in si_thermal_setup_fan_table()
6485 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6495 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6496 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6512 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6563 u32 duty, duty100; in si_dpm_get_fan_speed_percent() local
6570 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_get_fan_speed_percent()
6573 if (duty100 == 0) in si_dpm_get_fan_speed_percent()
[all …]