Lines Matching defs:chan
39 #define PWM_CONTROL_SMOOTH_SHIFT(chan) (24 + (chan)) argument
40 #define PWM_CONTROL_TYPE_SHIFT(chan) (16 + (chan)) argument
41 #define PWM_CONTROL_POLARITY_SHIFT(chan) (8 + (chan)) argument
42 #define PWM_CONTROL_TRIGGER_SHIFT(chan) (chan) argument
45 #define PRESCALE_SHIFT(chan) ((chan) << 2) argument
46 #define PRESCALE_MASK(chan) (0x7 << PRESCALE_SHIFT(chan)) argument
50 #define PERIOD_COUNT_OFFSET(chan) (0x00000008 + ((chan) << 3)) argument
54 #define DUTY_CYCLE_HIGH_OFFSET(chan) (0x0000000c + ((chan) << 3)) argument
73 unsigned int chan) in kona_pwmc_prepare_for_settings()
88 static void kona_pwmc_apply_settings(struct kona_pwmc *kp, unsigned int chan) in kona_pwmc_apply_settings()
107 unsigned int value, chan = pwm->hwpwm; in kona_pwmc_config() local
161 unsigned int chan = pwm->hwpwm; in kona_pwmc_set_polarity() local
206 unsigned int chan = pwm->hwpwm; in kona_pwmc_disable() local
278 unsigned int chan; in kona_pwmc_probe() local