Lines Matching refs:duty100
961 u32 duty100; in ci_thermal_setup_fan_table() local
973 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table()
975 if (duty100 == 0) { in ci_thermal_setup_fan_table()
980 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table()
990 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); in ci_thermal_setup_fan_table()
991 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); in ci_thermal_setup_fan_table()
1015 fan_table.FdoMax = cpu_to_be16((u16)duty100); in ci_thermal_setup_fan_table()
1078 u32 duty, duty100; in ci_fan_ctrl_get_fan_speed_percent() local
1084 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_get_fan_speed_percent()
1087 if (duty100 == 0) in ci_fan_ctrl_get_fan_speed_percent()
1091 do_div(tmp64, duty100); in ci_fan_ctrl_get_fan_speed_percent()
1104 u32 duty, duty100; in ci_fan_ctrl_set_fan_speed_percent() local
1117 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_fan_ctrl_set_fan_speed_percent()
1119 if (duty100 == 0) in ci_fan_ctrl_set_fan_speed_percent()
1122 tmp64 = (u64)speed * duty100; in ci_fan_ctrl_set_fan_speed_percent()