Lines Matching defs:state
23 * clock tick per period. This should better use the disabled state.
157 const struct pwm_state *state)
161 if (state->polarity != PWM_POLARITY_NORMAL)
164 if (!state->enabled) {
165 if (pwm->state.enabled)
172 * We cannot skip calling ->config even if state->period ==
173 * pwm->state.period && state->duty_cycle == pwm->state.duty_cycle
175 * pwm_apply_state because of !state->enabled and so the two values in
176 * pwm->state might not be configured in hardware.
179 state->duty_cycle, state->period);
183 if (!pwm->state.enabled)
265 const struct pwm_state *state)
269 if (state->polarity != pwm->state.polarity)
272 if (!state->enabled) {
273 if (pwm->state.enabled)
280 state->duty_cycle, state->period);
284 if (!pwm->state.enabled)