Lines Matching refs:pwm_port_params
246 struct pwm_port_params { struct
258 static const struct pwm_port_params pwm_port_params[] = { argument
405 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
406 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
407 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
413 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
415 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
417 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
418 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
426 pwm_port_params[pwm_port].duty_ctrl_rise_point); in aspeed_set_pwm_port_duty_rising_falling()
428 pwm_port_params[pwm_port].duty_ctrl_fall_point); in aspeed_set_pwm_port_duty_rising_falling()
430 regmap_update_bits(regmap, pwm_port_params[pwm_port].duty_ctrl_reg, in aspeed_set_pwm_port_duty_rising_falling()
431 pwm_port_params[pwm_port].duty_ctrl_rise_fall_mask, in aspeed_set_pwm_port_duty_rising_falling()
868 if (pwm_port >= ARRAY_SIZE(pwm_port_params)) in aspeed_create_fan()