Lines Matching defs:state
93 struct pwm_state *state)
105 state->enabled = true;
107 state->enabled = false;
113 state->duty_cycle = DIV_ROUND_UP_ULL(high, clk_rate);
114 state->period = DIV_ROUND_UP_ULL(high + low, clk_rate);
115 state->polarity = PWM_POLARITY_NORMAL;
121 const struct pwm_state *state)
130 if (state->polarity != PWM_POLARITY_NORMAL)
142 if (!state->enabled) {
155 div = clk_rate * state->duty_cycle;
161 div = clk_rate * state->period;
174 if (state->enabled && !current_state.enabled)