Lines Matching refs:pwm
236 static int ehrpwm_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ehrpwm_pwm_config() argument
274 if (i == pwm->hwpwm) in ehrpwm_pwm_config()
283 pc->period_cycles[pwm->hwpwm] = period_cycles; in ehrpwm_pwm_config()
310 if (pwm->hwpwm == 1) in ehrpwm_pwm_config()
324 struct pwm_device *pwm, enum pwm_polarity polarity) in ehrpwm_pwm_set_polarity() argument
329 pc->polarity[pwm->hwpwm] = polarity; in ehrpwm_pwm_set_polarity()
333 static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_enable() argument
343 if (pwm->hwpwm) { in ehrpwm_pwm_enable()
358 configure_polarity(pc, pwm->hwpwm); in ehrpwm_pwm_enable()
373 static void ehrpwm_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_disable() argument
379 if (pwm->hwpwm) { in ehrpwm_pwm_disable()
406 static void ehrpwm_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_free() argument
410 if (pwm_is_enabled(pwm)) { in ehrpwm_pwm_free()
416 pc->period_cycles[pwm->hwpwm] = 0; in ehrpwm_pwm_free()
566 struct pwm_device *pwm = &pc->chip.pwms[i]; in ehrpwm_pwm_suspend() local
568 if (!pwm_is_enabled(pwm)) in ehrpwm_pwm_suspend()
583 struct pwm_device *pwm = &pc->chip.pwms[i]; in ehrpwm_pwm_resume() local
585 if (!pwm_is_enabled(pwm)) in ehrpwm_pwm_resume()