Lines Matching defs:state
177 const struct pwm_state *state)
180 bool enabled = pwm->state.enabled;
182 if (state->polarity != pwm->state.polarity) {
193 err = vt8500_pwm_set_polarity(chip, pwm, state->polarity);
198 if (!state->enabled) {
206 * We cannot skip calling ->config even if state->period ==
207 * pwm->state.period && state->duty_cycle == pwm->state.duty_cycle
209 * pwm_apply_state because of !state->enabled and so the two values in
210 * pwm->state might not be configured in hardware.
212 err = vt8500_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period);