Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/pwm/
Dpwm-sun4i.c53 #define BIT_CH(bit, chan) ((bit) << ((chan) * PWMCH_OFFSET)) macro
128 if (val & BIT_CH(PWM_ACT_STATE, pwm->hwpwm)) in sun4i_pwm_get_state()
133 if ((val & BIT_CH(PWM_CLK_GATING | PWM_EN, pwm->hwpwm)) == in sun4i_pwm_get_state()
134 BIT_CH(PWM_CLK_GATING | PWM_EN, pwm->hwpwm)) in sun4i_pwm_get_state()
245 ctrl &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm); in sun4i_pwm_apply()
248 ctrl &= ~BIT_CH(PWM_PRESCAL_MASK, pwm->hwpwm); in sun4i_pwm_apply()
249 ctrl |= BIT_CH(prescaler, pwm->hwpwm); in sun4i_pwm_apply()
260 ctrl &= ~BIT_CH(PWM_ACT_STATE, pwm->hwpwm); in sun4i_pwm_apply()
262 ctrl |= BIT_CH(PWM_ACT_STATE, pwm->hwpwm); in sun4i_pwm_apply()
264 ctrl |= BIT_CH(PWM_CLK_GATING, pwm->hwpwm); in sun4i_pwm_apply()
[all …]