Lines Matching refs:pca9685_write_reg
122 static int pca9685_write_reg(struct pwm_chip *chip, unsigned int reg, unsigned int val) in pca9685_write_reg() function
143 pca9685_write_reg(chip, REG_OFF_H(channel), LED_FULL); in pca9685_pwm_set_duty()
147 pca9685_write_reg(chip, REG_ON_H(channel), LED_FULL); in pca9685_pwm_set_duty()
148 pca9685_write_reg(chip, REG_OFF_H(channel), 0); in pca9685_pwm_set_duty()
168 pca9685_write_reg(chip, REG_ON_L(channel), on & 0xff); in pca9685_pwm_set_duty()
169 pca9685_write_reg(chip, REG_ON_H(channel), (on >> 8) & 0xf); in pca9685_pwm_set_duty()
171 pca9685_write_reg(chip, REG_OFF_L(channel), off & 0xff); in pca9685_pwm_set_duty()
172 pca9685_write_reg(chip, REG_OFF_H(channel), (off >> 8) & 0xf); in pca9685_pwm_set_duty()
408 pca9685_write_reg(chip, PCA9685_PRESCALE, prescale); in __pca9685_pwm_apply()
560 ret = pca9685_write_reg(chip, PCA9685_MODE2, reg); in pca9685_pwm_probe()
567 pca9685_write_reg(chip, PCA9685_MODE1, reg); in pca9685_pwm_probe()
570 pca9685_write_reg(chip, PCA9685_ALL_LED_OFF_L, 0); in pca9685_pwm_probe()
571 pca9685_write_reg(chip, PCA9685_ALL_LED_OFF_H, LED_FULL); in pca9685_pwm_probe()
572 pca9685_write_reg(chip, PCA9685_ALL_LED_ON_L, 0); in pca9685_pwm_probe()
573 pca9685_write_reg(chip, PCA9685_ALL_LED_ON_H, LED_FULL); in pca9685_pwm_probe()