Lines Matching defs:state
42 const struct pwm_state *state)
49 if (state->enabled) {
51 u64 pwmcval = state->duty_cycle * 256;
68 clk_period_ns > state->period) {
84 if ((clk_period_ns << pres) >= state->period)
115 do_div(pwmcval, state->period);
128 if (state->polarity == PWM_POLARITY_NORMAL)
198 struct pwm_state state;
201 pwm_get_state(&chip->chip.pwms[0], &state);
204 if (!state.enabled) {
210 return atmel_hlcdc_pwm_apply(&chip->chip, &chip->chip.pwms[0], &state);