Lines Matching full:polarity
37 enum pwm_polarity polarity; /* PWM polarity */ member
73 enum pwm_polarity polarity) in atmel_tcb_pwm_set_polarity() argument
78 tcbpwm->polarity = polarity; in atmel_tcb_pwm_set_polarity()
101 tcbpwm->polarity = PWM_POLARITY_NORMAL; in atmel_tcb_pwm_request()
154 enum pwm_polarity polarity = tcbpwm->polarity; in atmel_tcb_pwm_disable() local
162 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_disable()
165 polarity = !polarity; in atmel_tcb_pwm_disable()
173 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
179 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
211 enum pwm_polarity polarity = tcbpwm->polarity; in atmel_tcb_pwm_enable() local
219 * This is why we're reverting polarity in this case. in atmel_tcb_pwm_enable()
222 polarity = !polarity; in atmel_tcb_pwm_enable()
233 /* Set CMR flags according to given polarity */ in atmel_tcb_pwm_enable()
234 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
240 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
254 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
259 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable()
375 atmel_tcb_pwm_set_polarity(chip, pwm, state->polarity); in atmel_tcb_pwm_apply()