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

/linux-4.4.14/drivers/pwm/
H A Dpwm-sun4i.c47 #define BIT_CH(bit, chan) ((bit) << ((chan) * PWMCH_OFFSET)) macro
163 clk_gate = val & BIT_CH(PWM_CLK_GATING, pwm->hwpwm); sun4i_pwm_config()
165 val &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); sun4i_pwm_config()
170 val &= ~BIT_CH(PWM_PRESCAL_MASK, pwm->hwpwm); sun4i_pwm_config()
171 val |= BIT_CH(prescaler, pwm->hwpwm); sun4i_pwm_config()
206 val &= ~BIT_CH(PWM_ACT_STATE, pwm->hwpwm); sun4i_pwm_set_polarity()
208 val |= BIT_CH(PWM_ACT_STATE, pwm->hwpwm); sun4i_pwm_set_polarity()
232 val |= BIT_CH(PWM_EN, pwm->hwpwm); sun4i_pwm_enable()
233 val |= BIT_CH(PWM_CLK_GATING, pwm->hwpwm); sun4i_pwm_enable()
247 val &= ~BIT_CH(PWM_EN, pwm->hwpwm); sun4i_pwm_disable()
248 val &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); sun4i_pwm_disable()
356 if (!(val & BIT_CH(PWM_ACT_STATE, i))) sun4i_pwm_probe()

Completed in 45 milliseconds