Lines Matching defs:state
158 const struct pwm_state *state)
166 if (state->period != EC_PWM_MAX_DUTY)
169 if (state->polarity != PWM_POLARITY_NORMAL)
176 duty_cycle = state->enabled ? state->duty_cycle : 0;
182 channel->duty_cycle = state->duty_cycle;
188 struct pwm_state *state)
200 state->enabled = (ret > 0);
201 state->period = EC_PWM_MAX_DUTY;
202 state->polarity = PWM_POLARITY_NORMAL;
214 state->duty_cycle = channel->duty_cycle;
216 state->duty_cycle = ret;