Lines Matching defs:state
9 * to the duty cycle or enable/disable state.
10 * - Changes to the duty cycle or enable/disable state take effect immediately
63 const struct pwm_state *state)
70 if (state->polarity != PWM_POLARITY_NORMAL)
73 if (state->period < IQS620_PWM_PERIOD_NS)
90 duty_cycle = min_t(u64, state->duty_cycle, IQS620_PWM_PERIOD_NS);
93 if (!state->enabled)
108 struct pwm_state *state)
122 state->enabled = iqs620_pwm->duty_scale > 0;
123 state->duty_cycle = DIV_ROUND_UP(iqs620_pwm->duty_scale *
128 state->period = IQS620_PWM_PERIOD_NS;
129 state->polarity = PWM_POLARITY_NORMAL;