Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/pm/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()
199 uint32_t duty100; in smu7_fan_ctrl_set_fan_speed_percent() local
212 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_fan_speed_percent()
215 if (duty100 == 0) in smu7_fan_ctrl_set_fan_speed_percent()
218 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.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()
/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dfiji_smumgr.c2135 uint32_t duty100; in fiji_thermal_setup_fan_table() local
2154 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_thermal_setup_fan_table()
2157 if (duty100 == 0) { in fiji_thermal_setup_fan_table()
2164 usPWMMin * duty100; in fiji_thermal_setup_fan_table()
2178 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in fiji_thermal_setup_fan_table()
2179 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in fiji_thermal_setup_fan_table()
2208 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.c2071 uint32_t duty100; in polaris10_thermal_setup_fan_table() local
2090 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table()
2093 if (duty100 == 0) { in polaris10_thermal_setup_fan_table()
2104 usPWMMin * duty100; in polaris10_thermal_setup_fan_table()
2118 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in polaris10_thermal_setup_fan_table()
2119 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in polaris10_thermal_setup_fan_table()
2148 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in polaris10_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()
Dci_smumgr.c2128 uint32_t duty100; in ci_thermal_setup_fan_table() local
2149duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in ci_thermal_setup_fan_table()
2151 if (0 == duty100) { in ci_thermal_setup_fan_table()
2156 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table()
2166 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
2167 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
2190 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in ci_thermal_setup_fan_table()
/drivers/gpu/drm/radeon/
Dci_dpm.c946 u32 duty100; in ci_thermal_setup_fan_table() local
958 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table()
960 if (duty100 == 0) { in ci_thermal_setup_fan_table()
965 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
975 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
976 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1000 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1063 u32 duty, duty100; in ci_fan_ctrl_get_fan_speed_percent() local
1069 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_get_fan_speed_percent()
1072 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
[all …]
Dsi_dpm.c6016 u32 duty100; in si_thermal_setup_fan_table() local
6028 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6030 if (duty100 == 0) { in si_thermal_setup_fan_table()
6035 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6045 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6046 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6070 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6121 u32 duty, duty100; in si_fan_ctrl_get_fan_speed_percent() local
6127 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_get_fan_speed_percent()
6130 if (duty100 == 0) in si_fan_ctrl_get_fan_speed_percent()
[all …]
/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c1129 uint32_t duty100, duty; in smu_v11_0_set_fan_speed_percent() local
1138 duty100 = REG_GET_FIELD(RREG32_SOC15(THM, 0, mmCG_FDO_CTRL1), in smu_v11_0_set_fan_speed_percent()
1140 if (!duty100) in smu_v11_0_set_fan_speed_percent()
1143 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_percent()
/drivers/gpu/drm/amd/pm/powerplay/
Dsi_dpm.c6448 u32 duty100; in si_thermal_setup_fan_table() local
6460 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6462 if (duty100 == 0) { in si_thermal_setup_fan_table()
6467 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6477 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6478 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6494 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6545 u32 duty, duty100; in si_dpm_get_fan_speed_percent() local
6552 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_get_fan_speed_percent()
6555 if (duty100 == 0) in si_dpm_get_fan_speed_percent()
[all …]