Lines Matching refs:pwm
69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() argument
92 base = pwm->hwpwm * 2 + TWL4030_PWMA_REG; in twl4030_pwmled_config()
98 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label); in twl4030_pwmled_config()
103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() argument
112 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label); in twl4030_pwmled_enable()
116 val |= TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS); in twl4030_pwmled_enable()
120 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label); in twl4030_pwmled_enable()
128 struct pwm_device *pwm) in twl4030_pwmled_disable() argument
137 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label); in twl4030_pwmled_disable()
141 val &= ~TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS); in twl4030_pwmled_disable()
145 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label); in twl4030_pwmled_disable()
151 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() argument
163 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label); in twl6030_pwmled_config()
168 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() argument
178 pwm->label); in twl6030_pwmled_enable()
187 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label); in twl6030_pwmled_enable()
195 struct pwm_device *pwm) in twl6030_pwmled_disable() argument
205 pwm->label); in twl6030_pwmled_disable()
214 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label); in twl6030_pwmled_disable()
220 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() argument
230 pwm->label); in twl6030_pwmled_request()
239 dev_err(chip->dev, "%s: Failed to request PWM\n", pwm->label); in twl6030_pwmled_request()
246 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free() argument
256 pwm->label); in twl6030_pwmled_free()
265 dev_err(chip->dev, "%s: Failed to free PWM\n", pwm->label); in twl6030_pwmled_free()