Searched refs:duty100 (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dci_dpm.c952 u32 duty100; ci_thermal_setup_fan_table() local
964 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_thermal_setup_fan_table()
966 if (duty100 == 0) { ci_thermal_setup_fan_table()
971 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; ci_thermal_setup_fan_table()
981 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); ci_thermal_setup_fan_table()
982 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); ci_thermal_setup_fan_table()
1006 fan_table.FdoMax = cpu_to_be16((u16)duty100); ci_thermal_setup_fan_table()
1069 u32 duty, duty100; ci_fan_ctrl_get_fan_speed_percent() local
1075 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_fan_ctrl_get_fan_speed_percent()
1078 if (duty100 == 0) ci_fan_ctrl_get_fan_speed_percent()
1082 do_div(tmp64, duty100); ci_fan_ctrl_get_fan_speed_percent()
1095 u32 duty, duty100; ci_fan_ctrl_set_fan_speed_percent() local
1108 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_fan_ctrl_set_fan_speed_percent()
1110 if (duty100 == 0) ci_fan_ctrl_set_fan_speed_percent()
1113 tmp64 = (u64)speed * duty100; ci_fan_ctrl_set_fan_speed_percent()
H A Dsi_dpm.c6044 u32 duty100; si_thermal_setup_fan_table() local
6056 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_thermal_setup_fan_table()
6058 if (duty100 == 0) { si_thermal_setup_fan_table()
6063 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; si_thermal_setup_fan_table()
6073 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); si_thermal_setup_fan_table()
6074 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); si_thermal_setup_fan_table()
6098 fan_table.fdo_max = cpu_to_be16((u16)duty100); si_thermal_setup_fan_table()
6149 u32 duty, duty100; si_fan_ctrl_get_fan_speed_percent() local
6155 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_fan_ctrl_get_fan_speed_percent()
6158 if (duty100 == 0) si_fan_ctrl_get_fan_speed_percent()
6162 do_div(tmp64, duty100); si_fan_ctrl_get_fan_speed_percent()
6176 u32 duty, duty100; si_fan_ctrl_set_fan_speed_percent() local
6188 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_fan_ctrl_set_fan_speed_percent()
6190 if (duty100 == 0) si_fan_ctrl_set_fan_speed_percent()
6193 tmp64 = (u64)speed * duty100; si_fan_ctrl_set_fan_speed_percent()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Dci_dpm.c1070 u32 duty100; ci_thermal_setup_fan_table() local
1082 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) ci_thermal_setup_fan_table()
1085 if (duty100 == 0) { ci_thermal_setup_fan_table()
1090 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; ci_thermal_setup_fan_table()
1100 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); ci_thermal_setup_fan_table()
1101 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); ci_thermal_setup_fan_table()
1125 fan_table.FdoMax = cpu_to_be16((u16)duty100); ci_thermal_setup_fan_table()
1191 u32 duty, duty100; ci_dpm_get_fan_speed_percent() local
1197 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) ci_dpm_get_fan_speed_percent()
1202 if (duty100 == 0) ci_dpm_get_fan_speed_percent()
1206 do_div(tmp64, duty100); ci_dpm_get_fan_speed_percent()
1219 u32 duty, duty100; ci_dpm_set_fan_speed_percent() local
1232 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) ci_dpm_set_fan_speed_percent()
1235 if (duty100 == 0) ci_dpm_set_fan_speed_percent()
1238 tmp64 = (u64)speed * duty100; ci_dpm_set_fan_speed_percent()

Completed in 180 milliseconds