Home
last modified time | relevance | path

Searched refs:pca9685 (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-pca9685.c74 struct pca9685 { struct
85 static inline struct pca9685 *to_pca(struct pwm_chip *chip) in to_pca()
87 return container_of(chip, struct pca9685, chip); in to_pca()
91 static bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pca, int pwm_idx) in pca9685_pwm_test_and_set_inuse()
121 static void pca9685_pwm_clear_inuse(struct pca9685 *pca, int pwm_idx) in pca9685_pwm_clear_inuse()
130 struct pca9685 *pca = gpiochip_get_data(gpio); in pca9685_pwm_gpio_request()
140 struct pca9685 *pca = gpiochip_get_data(gpio); in pca9685_pwm_gpio_get()
152 struct pca9685 *pca = gpiochip_get_data(gpio); in pca9685_pwm_gpio_set()
166 struct pca9685 *pca = gpiochip_get_data(gpio); in pca9685_pwm_gpio_free()
200 static int pca9685_pwm_gpio_probe(struct pca9685 *pc
[all...]
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-pca9685.c78 struct pca9685 { struct
89 static inline struct pca9685 *to_pca(struct pwm_chip *chip) in to_pca()
91 return container_of(chip, struct pca9685, chip); in to_pca()
95 static bool pca9685_prescaler_can_change(struct pca9685 *pca, int channel) in pca9685_prescaler_can_change()
110 static int pca9685_read_reg(struct pca9685 *pca, unsigned int reg, unsigned int *val) in pca9685_read_reg()
122 static int pca9685_write_reg(struct pca9685 *pca, unsigned int reg, unsigned int val) in pca9685_write_reg()
135 static void pca9685_pwm_set_duty(struct pca9685 *pca, int channel, unsigned int duty) in pca9685_pwm_set_duty()
154 * If usage_power is set, the pca9685 driver will phase shift in pca9685_pwm_set_duty()
174 static unsigned int pca9685_pwm_get_duty(struct pca9685 *pca, int channel) in pca9685_pwm_get_duty()
211 static bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pc
[all...]

Completed in 3 milliseconds