Lines Matching defs:state
72 struct pwm_state *state)
81 state->enabled = true;
83 state->enabled = false;
86 state->polarity = PWM_POLARITY_NORMAL;
88 state->polarity = PWM_POLARITY_INVERSED;
92 state->period = 0;
93 state->duty_cycle = 0;
105 state->period = div64_u64(tmp, rate);
109 state->duty_cycle = div64_u64(tmp, rate);
115 const struct pwm_state *state)
138 value = rate * state->period;
140 value = rate * state->duty_cycle;
170 if (state->polarity == PWM_POLARITY_NORMAL)
177 if (state->enabled)