Lines Matching refs:pwm_channel
5 * struct pwm_channel - driver handle to a PWM channel
10 * Drivers initialize a pwm_channel structure using pwm_channel_alloc().
25 struct pwm_channel {
31 extern int pwm_channel_alloc(int index, struct pwm_channel *ch);
32 extern int pwm_channel_free(struct pwm_channel *ch);
37 extern int __pwm_channel_onoff(struct pwm_channel *ch, int enabled);
43 extern int pwm_channel_handler(struct pwm_channel *ch,
44 void (*handler)(struct pwm_channel *ch));
46 /* per-channel registers (banked at pwm_channel->regs) */
60 pwm_channel_writel(struct pwm_channel *pwmc, unsigned offset, u32 val)
65 static inline u32 pwm_channel_readl(struct pwm_channel *pwmc, unsigned offset)