Lines Matching refs:pwm_port_params
245 struct pwm_port_params { struct
257 static const struct pwm_port_params pwm_port_params[] = { argument
404 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_enable()
405 pwm_port_params[pwm_port].pwm_en, in aspeed_set_pwm_port_enable()
406 enable ? pwm_port_params[pwm_port].pwm_en : 0); in aspeed_set_pwm_port_enable()
412 u32 reg_value = (type & 0x1) << pwm_port_params[pwm_port].type_part1; in aspeed_set_pwm_port_type()
414 reg_value |= (type & 0x2) << pwm_port_params[pwm_port].type_part2; in aspeed_set_pwm_port_type()
416 regmap_update_bits(regmap, pwm_port_params[pwm_port].ctrl_reg, in aspeed_set_pwm_port_type()
417 pwm_port_params[pwm_port].type_mask, reg_value); in aspeed_set_pwm_port_type()
425 pwm_port_params[pwm_port].duty_ctrl_rise_point); in aspeed_set_pwm_port_duty_rising_falling()
427 pwm_port_params[pwm_port].duty_ctrl_fall_point); in aspeed_set_pwm_port_duty_rising_falling()
429 regmap_update_bits(regmap, pwm_port_params[pwm_port].duty_ctrl_reg, in aspeed_set_pwm_port_duty_rising_falling()
430 pwm_port_params[pwm_port].duty_ctrl_rise_fall_mask, in aspeed_set_pwm_port_duty_rising_falling()
860 if (pwm_port >= ARRAY_SIZE(pwm_port_params)) in aspeed_create_fan()