Lines Matching full:polarity
124 enum pwm_polarity polarity) in atmel_tcb_pwm_disable() argument
136 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_disable()
139 polarity = !polarity; in atmel_tcb_pwm_disable()
147 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
153 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
181 enum pwm_polarity polarity) in atmel_tcb_pwm_enable() argument
193 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_enable()
196 polarity = !polarity; in atmel_tcb_pwm_enable()
207 /* Set CMR flags according to given polarity */ in atmel_tcb_pwm_enable()
208 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
214 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
228 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
233 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
349 atmel_tcb_pwm_disable(chip, pwm, state->polarity); in atmel_tcb_pwm_apply()
360 return atmel_tcb_pwm_enable(chip, pwm, state->polarity); in atmel_tcb_pwm_apply()