Lines Matching refs:hwpwm
381 pca9685_pwm_set_duty(pca, pwm->hwpwm, 0); in __pca9685_pwm_apply()
387 if (!pca9685_prescaler_can_change(pca, pwm->hwpwm)) { in __pca9685_pwm_apply()
411 pca9685_pwm_set_duty(pca, pwm->hwpwm, duty); in __pca9685_pwm_apply()
425 set_bit(pwm->hwpwm, pca->pwms_enabled); in pca9685_pwm_apply()
427 clear_bit(pwm->hwpwm, pca->pwms_enabled); in pca9685_pwm_apply()
454 if (pwm->hwpwm >= PCA9685_MAXCHAN) { in pca9685_pwm_get_state()
465 duty = pca9685_pwm_get_duty(pca, pwm->hwpwm); in pca9685_pwm_get_state()
475 if (pca9685_pwm_test_and_set_inuse(pca, pwm->hwpwm)) in pca9685_pwm_request()
478 if (pwm->hwpwm < PCA9685_MAXCHAN) { in pca9685_pwm_request()
481 set_bit(pwm->hwpwm, pca->pwms_enabled); in pca9685_pwm_request()
495 pca9685_pwm_set_duty(pca, pwm->hwpwm, 0); in pca9685_pwm_free()
496 clear_bit(pwm->hwpwm, pca->pwms_enabled); in pca9685_pwm_free()
500 pca9685_pwm_clear_inuse(pca, pwm->hwpwm); in pca9685_pwm_free()