Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/powerplay/hwmgr/
Dsmu7_thermal.c58 uint32_t duty100; in smu7_fan_ctrl_get_fan_speed_percent() local
65 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_percent()
70 if (duty100 == 0) in smu7_fan_ctrl_get_fan_speed_percent()
75 do_div(tmp64, duty100); in smu7_fan_ctrl_get_fan_speed_percent()
201 uint32_t duty100; in smu7_fan_ctrl_set_fan_speed_percent() local
215 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_set_fan_speed_percent()
218 if (duty100 == 0) in smu7_fan_ctrl_set_fan_speed_percent()
221 tmp64 = (uint64_t)speed * duty100; in smu7_fan_ctrl_set_fan_speed_percent()
/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smc.c1954 uint32_t duty100; in fiji_thermal_setup_fan_table() local
1973 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in fiji_thermal_setup_fan_table()
1976 if (duty100 == 0) { in fiji_thermal_setup_fan_table()
1983 usPWMMin * duty100; in fiji_thermal_setup_fan_table()
1997 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in fiji_thermal_setup_fan_table()
1998 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in fiji_thermal_setup_fan_table()
2027 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in fiji_thermal_setup_fan_table()
Diceland_smc.c1999 uint32_t duty100; in iceland_thermal_setup_fan_table() local
2020duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_FDO_CTRL1, FMAX_DUTY100… in iceland_thermal_setup_fan_table()
2022 if (0 == duty100) { in iceland_thermal_setup_fan_table()
2027 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in iceland_thermal_setup_fan_table()
2037 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in iceland_thermal_setup_fan_table()
2038 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in iceland_thermal_setup_fan_table()
2061 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in iceland_thermal_setup_fan_table()
Dpolaris10_smc.c1881 uint32_t duty100; in polaris10_thermal_setup_fan_table() local
1900 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in polaris10_thermal_setup_fan_table()
1903 if (duty100 == 0) { in polaris10_thermal_setup_fan_table()
1910 usPWMMin * duty100; in polaris10_thermal_setup_fan_table()
1924 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in polaris10_thermal_setup_fan_table()
1925 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in polaris10_thermal_setup_fan_table()
1954 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in polaris10_thermal_setup_fan_table()
Dtonga_smc.c2488 uint32_t duty100; in tonga_thermal_setup_fan_table() local
2511 duty100 = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, in tonga_thermal_setup_fan_table()
2515 if (0 == duty100) { in tonga_thermal_setup_fan_table()
2521 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in tonga_thermal_setup_fan_table()
2535 slope1 = (uint16_t)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in tonga_thermal_setup_fan_table()
2536 slope2 = (uint16_t)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in tonga_thermal_setup_fan_table()
2559 fan_table.FdoMax = cpu_to_be16((uint16_t)duty100); in tonga_thermal_setup_fan_table()
/drivers/gpu/drm/radeon/
Dci_dpm.c964 u32 duty100; in ci_thermal_setup_fan_table() local
976 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table()
978 if (duty100 == 0) { in ci_thermal_setup_fan_table()
983 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
993 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
994 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1018 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1081 u32 duty, duty100; in ci_fan_ctrl_get_fan_speed_percent() local
1087 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_get_fan_speed_percent()
1090 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
[all …]
Dsi_dpm.c6086 u32 duty100; in si_thermal_setup_fan_table() local
6098 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6100 if (duty100 == 0) { in si_thermal_setup_fan_table()
6105 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6115 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6116 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6140 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6191 u32 duty, duty100; in si_fan_ctrl_get_fan_speed_percent() local
6197 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_get_fan_speed_percent()
6200 if (duty100 == 0) in si_fan_ctrl_get_fan_speed_percent()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c1083 u32 duty100; in ci_thermal_setup_fan_table() local
1095 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) in ci_thermal_setup_fan_table()
1098 if (duty100 == 0) { in ci_thermal_setup_fan_table()
1103 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
1113 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
1114 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1138 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1204 u32 duty, duty100; in ci_dpm_get_fan_speed_percent() local
1210 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) in ci_dpm_get_fan_speed_percent()
1215 if (duty100 == 0) in ci_dpm_get_fan_speed_percent()
[all …]
Dsi_dpm.c6543 u32 duty100; in si_thermal_setup_fan_table() local
6555 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6557 if (duty100 == 0) { in si_thermal_setup_fan_table()
6562 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6572 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6573 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6589 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6640 u32 duty, duty100; in si_dpm_get_fan_speed_percent() local
6646 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_get_fan_speed_percent()
6649 if (duty100 == 0) in si_dpm_get_fan_speed_percent()
[all …]