Lines Matching refs:state
82 struct pwm_state *state)
91 state->enabled = true;
93 state->enabled = false;
96 state->polarity = PWM_POLARITY_NORMAL;
98 state->polarity = PWM_POLARITY_INVERSED;
102 state->period = 0;
103 state->duty_cycle = 0;
115 state->period = div64_u64(tmp, rate);
119 state->duty_cycle = div64_u64(tmp, rate);
123 const struct pwm_state *state)
146 value = rate * state->period;
148 value = rate * state->duty_cycle;
178 if (state->polarity == PWM_POLARITY_NORMAL)
185 if (state->enabled)