Lines Matching defs:state
122 struct pwm_device *pwm, struct pwm_state *state)
136 state->enabled = true;
138 state->enabled = false;
142 state->polarity = PWM_POLARITY_NORMAL;
145 state->polarity = PWM_POLARITY_INVERSED;
158 state->period = DIV_ROUND_UP_ULL(tmp, pwm_clk);
164 if (state->enabled)
170 state->duty_cycle = DIV_ROUND_UP_ULL(tmp, pwm_clk);
216 const struct pwm_state *state)
229 c = clkrate * state->period;
237 c = clkrate * state->duty_cycle;
279 if (state->polarity == PWM_POLARITY_INVERSED)
283 if (state->enabled)
288 if (!state->enabled)