Lines Matching defs:state
43 const struct pwm_state *state)
50 if (state->enabled) {
52 u64 pwmcval = state->duty_cycle * 256;
69 clk_period_ns > state->period) {
85 if ((clk_period_ns << pres) >= state->period)
116 do_div(pwmcval, state->period);
129 if (state->polarity == PWM_POLARITY_NORMAL)
199 struct pwm_state state;
202 pwm_get_state(&atmel->chip.pwms[0], &state);
205 if (!state.enabled) {
212 &state);