Lines Matching refs:atmel_pwm_chip
79 struct atmel_pwm_chip {
100 static inline struct atmel_pwm_chip *to_atmel_pwm_chip(struct pwm_chip *chip)
102 return container_of(chip, struct atmel_pwm_chip, chip);
105 static inline u32 atmel_pwm_readl(struct atmel_pwm_chip *chip,
111 static inline void atmel_pwm_writel(struct atmel_pwm_chip *chip,
117 static inline u32 atmel_pwm_ch_readl(struct atmel_pwm_chip *chip,
125 static inline void atmel_pwm_ch_writel(struct atmel_pwm_chip *chip,
134 static void atmel_pwm_update_pending(struct atmel_pwm_chip *chip)
147 static void atmel_pwm_set_pending(struct atmel_pwm_chip *chip, unsigned int ch)
162 static int atmel_pwm_test_pending(struct atmel_pwm_chip *chip, unsigned int ch)
180 static int atmel_pwm_wait_nonpending(struct atmel_pwm_chip *chip, unsigned int ch)
197 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
242 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
261 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
272 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
296 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
361 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
466 static int atmel_pwm_enable_clk_if_on(struct atmel_pwm_chip *atmel_pwm, bool on)
504 struct atmel_pwm_chip *atmel_pwm;