Lines Matching defs:state
35 * high or low depending on its state at that exact instant.
226 const struct pwm_state *state)
230 bool enabled = pwm->state.enabled;
232 if (state->polarity != pwm->state.polarity) {
238 err = kona_pwmc_set_polarity(chip, pwm, state->polarity);
242 pwm->state.polarity = state->polarity;
245 if (!state->enabled) {
263 err = kona_pwmc_config(pwm->chip, pwm, state->duty_cycle, state->period);
264 if (err && !pwm->state.enabled)