Lines Matching refs:duty100
6014 u32 duty100; in si_thermal_setup_fan_table() local
6026 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6028 if (duty100 == 0) { in si_thermal_setup_fan_table()
6033 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6043 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6044 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6068 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6119 u32 duty, duty100; in si_fan_ctrl_get_fan_speed_percent() local
6125 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_get_fan_speed_percent()
6128 if (duty100 == 0) in si_fan_ctrl_get_fan_speed_percent()
6132 do_div(tmp64, duty100); in si_fan_ctrl_get_fan_speed_percent()
6146 u32 duty, duty100; in si_fan_ctrl_set_fan_speed_percent() local
6158 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_fan_ctrl_set_fan_speed_percent()
6160 if (duty100 == 0) in si_fan_ctrl_set_fan_speed_percent()
6163 tmp64 = (u64)speed * duty100; in si_fan_ctrl_set_fan_speed_percent()