Lines Matching defs:state
110 struct pwm_state *state)
117 state->enabled = duty > 0;
121 state->enabled = false;
123 state->period = ddata->real_period;
124 state->duty_cycle =
126 state->polarity = PWM_POLARITY_INVERSED;
132 const struct pwm_state *state)
142 if (state->polarity != PWM_POLARITY_INVERSED)
145 cur_state = pwm->state;
148 duty_cycle = state->duty_cycle;
149 if (!state->enabled)
159 frac = DIV64_U64_ROUND_CLOSEST(num, state->period);
164 if (state->period != ddata->approx_period) {
175 ddata->approx_period = state->period;
183 * the PWM state.
195 if (!state->enabled)
327 if (pwm->state.enabled)