Lines Matching full:polarity
123 enum pwm_polarity polarity) in atmel_tcb_pwm_disable() argument
135 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_disable()
138 polarity = !polarity; in atmel_tcb_pwm_disable()
145 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
151 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
177 enum pwm_polarity polarity) in atmel_tcb_pwm_enable() argument
189 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_enable()
192 polarity = !polarity; in atmel_tcb_pwm_enable()
202 /* Set CMR flags according to given polarity */ in atmel_tcb_pwm_enable()
203 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
209 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
223 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
228 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
341 atmel_tcb_pwm_disable(chip, pwm, state->polarity); in atmel_tcb_pwm_apply()
352 return atmel_tcb_pwm_enable(chip, pwm, state->polarity); in atmel_tcb_pwm_apply()