Home
last modified time | relevance | path

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

/Linux-v5.4/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()
Dvega20_thermal.c140 uint32_t duty100; in vega20_fan_ctrl_set_fan_speed_percent() local
150 duty100 = REG_GET_FIELD(RREG32_SOC15(THM, 0, mmCG_FDO_CTRL1), in vega20_fan_ctrl_set_fan_speed_percent()
153 if (duty100 == 0) in vega20_fan_ctrl_set_fan_speed_percent()
156 tmp64 = (uint64_t)speed * duty100; in vega20_fan_ctrl_set_fan_speed_percent()
Dvega10_thermal.c255 uint32_t duty100; in vega10_fan_ctrl_set_fan_speed_percent() local
268 duty100 = REG_GET_FIELD(RREG32_SOC15(THM, 0, mmCG_FDO_CTRL1), in vega10_fan_ctrl_set_fan_speed_percent()
271 if (duty100 == 0) in vega10_fan_ctrl_set_fan_speed_percent()
274 tmp64 = (uint64_t)speed * duty100; in vega10_fan_ctrl_set_fan_speed_percent()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smumgr.c2138 uint32_t duty100; in fiji_thermal_setup_fan_table() local
2157 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_thermal_setup_fan_table()
2160 if (duty100 == 0) { in fiji_thermal_setup_fan_table()
2167 usPWMMin * duty100; in fiji_thermal_setup_fan_table()
2181 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in fiji_thermal_setup_fan_table()
2182 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in fiji_thermal_setup_fan_table()
2211 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in fiji_thermal_setup_fan_table()
Diceland_smumgr.c2089 uint32_t duty100; in iceland_thermal_setup_fan_table() local
2110duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in iceland_thermal_setup_fan_table()
2112 if (0 == duty100) { in iceland_thermal_setup_fan_table()
2117 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in iceland_thermal_setup_fan_table()
2127 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in iceland_thermal_setup_fan_table()
2128 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in iceland_thermal_setup_fan_table()
2151 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in iceland_thermal_setup_fan_table()
Dpolaris10_smumgr.c2069 uint32_t duty100; in polaris10_thermal_setup_fan_table() local
2088 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table()
2091 if (duty100 == 0) { in polaris10_thermal_setup_fan_table()
2102 usPWMMin * duty100; in polaris10_thermal_setup_fan_table()
2116 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in polaris10_thermal_setup_fan_table()
2117 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in polaris10_thermal_setup_fan_table()
2146 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in polaris10_thermal_setup_fan_table()
Dci_smumgr.c2127 uint32_t duty100; in ci_thermal_setup_fan_table() local
2148duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in ci_thermal_setup_fan_table()
2150 if (0 == duty100) { in ci_thermal_setup_fan_table()
2155 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table()
2165 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
2166 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
2189 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in ci_thermal_setup_fan_table()
Dtonga_smumgr.c2465 uint32_t duty100; in tonga_thermal_setup_fan_table() local
2488 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, in tonga_thermal_setup_fan_table()
2492 if (0 == duty100) { in tonga_thermal_setup_fan_table()
2498 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in tonga_thermal_setup_fan_table()
2512 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in tonga_thermal_setup_fan_table()
2513 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in tonga_thermal_setup_fan_table()
2536 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in tonga_thermal_setup_fan_table()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/
Dsmu_v11_0.c1422 uint32_t duty100, duty; in smu_v11_0_set_fan_speed_percent() local
1431 duty100 = REG_GET_FIELD(RREG32_SOC15(THM, 0, mmCG_FDO_CTRL1), in smu_v11_0_set_fan_speed_percent()
1433 if (!duty100) in smu_v11_0_set_fan_speed_percent()
1436 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_percent()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dsi_dpm.c6034 u32 duty100; in si_thermal_setup_fan_table() local
6046 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6048 if (duty100 == 0) { in si_thermal_setup_fan_table()
6053 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6063 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6064 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6088 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6139 u32 duty, duty100; in si_fan_ctrl_get_fan_speed_percent() local
6145 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_get_fan_speed_percent()
6148 if (duty100 == 0) in si_fan_ctrl_get_fan_speed_percent()
[all …]
Dci_dpm.c961 u32 duty100; in ci_thermal_setup_fan_table() local
973 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table()
975 if (duty100 == 0) { in ci_thermal_setup_fan_table()
980 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
990 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
991 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1015 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1078 u32 duty, duty100; in ci_fan_ctrl_get_fan_speed_percent() local
1084 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_get_fan_speed_percent()
1087 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dsi_dpm.c6469 u32 duty100; in si_thermal_setup_fan_table() local
6481 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6483 if (duty100 == 0) { in si_thermal_setup_fan_table()
6488 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6498 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6499 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6515 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6566 u32 duty, duty100; in si_dpm_get_fan_speed_percent() local
6573 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_get_fan_speed_percent()
6576 if (duty100 == 0) in si_dpm_get_fan_speed_percent()
[all …]