Lines Matching defs:state
30 * user requests a change in polarity when in active state:
58 * @mutex: Mutex to protect pwm apply state
65 /* Mutex to protect pwm apply state */
268 * pwm_omap_dmtimer_apply() - Changes the state of the pwm omap dm timer.
271 * @state: New state to apply
273 * Return 0 if successfully changed the state else appropriate error.
277 const struct pwm_state *state)
284 if (pwm_omap_dmtimer_is_enabled(omap) && !state->enabled) {
289 if (pwm_omap_dmtimer_polarity(omap) != state->polarity)
290 pwm_omap_dmtimer_set_polarity(chip, pwm, state->polarity);
292 ret = pwm_omap_dmtimer_config(chip, pwm, state->duty_cycle,
293 state->period);
297 if (!pwm_omap_dmtimer_is_enabled(omap) && state->enabled) {
299 state->polarity == PWM_POLARITY_INVERSED,