Lines Matching defs:state
283 const struct pwm_state *state)
287 if (state->polarity != PWM_POLARITY_NORMAL)
290 if (!state->enabled) {
291 if (pwm->state.enabled)
297 err = twl_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period);
301 if (!pwm->state.enabled)
308 const struct pwm_state *state)
312 if (state->polarity != PWM_POLARITY_NORMAL)
315 if (!state->enabled) {
316 if (pwm->state.enabled)
322 err = twl_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period);
326 if (!pwm->state.enabled)