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

/linux-4.4.14/drivers/pwm/
H A Dpwm-bcm2835.c18 #define PWM_CONTROL_SHIFT(x) ((x) * 8) macro
48 value &= ~(PWM_CONTROL_MASK << PWM_CONTROL_SHIFT(pwm->hwpwm)); bcm2835_pwm_request()
49 value |= (PWM_MODE << PWM_CONTROL_SHIFT(pwm->hwpwm)); bcm2835_pwm_request()
61 value &= ~(PWM_CONTROL_MASK << PWM_CONTROL_SHIFT(pwm->hwpwm)); bcm2835_pwm_free()
88 value |= PWM_ENABLE << PWM_CONTROL_SHIFT(pwm->hwpwm); bcm2835_pwm_enable()
100 value &= ~(PWM_ENABLE << PWM_CONTROL_SHIFT(pwm->hwpwm)); bcm2835_pwm_disable()
113 value &= ~(PWM_POLARITY << PWM_CONTROL_SHIFT(pwm->hwpwm)); bcm2835_set_polarity()
115 value |= PWM_POLARITY << PWM_CONTROL_SHIFT(pwm->hwpwm); bcm2835_set_polarity()

Completed in 31 milliseconds