Lines Matching refs:duty100
6469 u32 duty100; in si_thermal_setup_fan_table() local
6481 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_thermal_setup_fan_table()
6483 if (duty100 == 0) { in si_thermal_setup_fan_table()
6488 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table()
6498 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in si_thermal_setup_fan_table()
6499 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in si_thermal_setup_fan_table()
6515 fan_table.fdo_max = cpu_to_be16((u16)duty100); in si_thermal_setup_fan_table()
6566 u32 duty, duty100; in si_dpm_get_fan_speed_percent() local
6573 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_get_fan_speed_percent()
6576 if (duty100 == 0) in si_dpm_get_fan_speed_percent()
6580 do_div(tmp64, duty100); in si_dpm_get_fan_speed_percent()
6595 u32 duty, duty100; in si_dpm_set_fan_speed_percent() local
6607 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in si_dpm_set_fan_speed_percent()
6609 if (duty100 == 0) in si_dpm_set_fan_speed_percent()
6612 tmp64 = (u64)speed * duty100; in si_dpm_set_fan_speed_percent()