Lines Matching refs: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);
218 const struct pwm_state *state)
231 c = clkrate * state->period;
239 c = clkrate * state->duty_cycle;
281 if (state->polarity == PWM_POLARITY_INVERSED)
285 if (state->enabled)
290 if (!state->enabled)