Lines Matching refs:pca9685_write_reg
122 static int pca9685_write_reg(struct pca9685 *pca, unsigned int reg, unsigned int val) in pca9685_write_reg() function
142 pca9685_write_reg(pca, REG_OFF_H(channel), LED_FULL); in pca9685_pwm_set_duty()
146 pca9685_write_reg(pca, REG_ON_H(channel), LED_FULL); in pca9685_pwm_set_duty()
147 pca9685_write_reg(pca, REG_OFF_H(channel), 0); in pca9685_pwm_set_duty()
167 pca9685_write_reg(pca, REG_ON_L(channel), on & 0xff); in pca9685_pwm_set_duty()
168 pca9685_write_reg(pca, REG_ON_H(channel), (on >> 8) & 0xf); in pca9685_pwm_set_duty()
170 pca9685_write_reg(pca, REG_OFF_L(channel), off & 0xff); in pca9685_pwm_set_duty()
171 pca9685_write_reg(pca, REG_OFF_H(channel), (off >> 8) & 0xf); in pca9685_pwm_set_duty()
403 pca9685_write_reg(pca, PCA9685_PRESCALE, prescale); in __pca9685_pwm_apply()
554 ret = pca9685_write_reg(pca, PCA9685_MODE2, reg); in pca9685_pwm_probe()
561 pca9685_write_reg(pca, PCA9685_MODE1, reg); in pca9685_pwm_probe()
564 pca9685_write_reg(pca, PCA9685_ALL_LED_OFF_L, 0); in pca9685_pwm_probe()
565 pca9685_write_reg(pca, PCA9685_ALL_LED_OFF_H, LED_FULL); in pca9685_pwm_probe()
566 pca9685_write_reg(pca, PCA9685_ALL_LED_ON_L, 0); in pca9685_pwm_probe()
567 pca9685_write_reg(pca, PCA9685_ALL_LED_ON_H, LED_FULL); in pca9685_pwm_probe()