Lines Matching refs:duty100
6034 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()
6152 do_div(tmp64, duty100); in si_fan_ctrl_get_fan_speed_percent()
6166 u32 duty, duty100; in si_fan_ctrl_set_fan_speed_percent() local
6178 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_set_fan_speed_percent()
6180 if (duty100 == 0) in si_fan_ctrl_set_fan_speed_percent()
6183 tmp64 = (u64)speed * duty100; in si_fan_ctrl_set_fan_speed_percent()