Lines Matching defs:pca9685

78 struct pca9685 {
89 static inline struct pca9685 *to_pca(struct pwm_chip *chip)
91 return container_of(chip, struct pca9685, chip);
95 static bool pca9685_prescaler_can_change(struct pca9685 *pca, int channel)
110 static int pca9685_read_reg(struct pca9685 *pca, unsigned int reg, unsigned int *val)
122 static int pca9685_write_reg(struct pca9685 *pca, unsigned int reg, unsigned int val)
135 static void pca9685_pwm_set_duty(struct pca9685 *pca, int channel, unsigned int duty)
154 * If usage_power is set, the pca9685 driver will phase shift
174 static unsigned int pca9685_pwm_get_duty(struct pca9685 *pca, int channel)
211 static bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pca, int pwm_idx)
241 static void pca9685_pwm_clear_inuse(struct pca9685 *pca, int pwm_idx)
250 struct pca9685 *pca = gpiochip_get_data(gpio);
260 struct pca9685 *pca = gpiochip_get_data(gpio);
268 struct pca9685 *pca = gpiochip_get_data(gpio);
275 struct pca9685 *pca = gpiochip_get_data(gpio);
309 static int pca9685_pwm_gpio_probe(struct pca9685 *pca)
329 static inline bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pca,
336 pca9685_pwm_clear_inuse(struct pca9685 *pca, int pwm_idx)
340 static inline int pca9685_pwm_gpio_probe(struct pca9685 *pca)
346 static void pca9685_set_sleep_mode(struct pca9685 *pca, bool enable)
366 struct pca9685 *pca = to_pca(chip);
418 struct pca9685 *pca = to_pca(chip);
437 struct pca9685 *pca = to_pca(chip);
473 struct pca9685 *pca = to_pca(chip);
492 struct pca9685 *pca = to_pca(chip);
520 struct pca9685 *pca;
604 struct pca9685 *pca = i2c_get_clientdata(client);
619 struct pca9685 *pca = i2c_get_clientdata(client);
628 struct pca9685 *pca = i2c_get_clientdata(client);
635 { "pca9685", 0 },
650 { .compatible = "nxp,pca9685-pwm", },
663 .name = "pca9685-pwm",