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
45 const struct pwm_state *state)
53 if (state->polarity != PWM_POLARITY_NORMAL)
56 if (state->period < IQS620_PWM_PERIOD_NS)
74 duty_cycle = min_t(u64, state->duty_cycle, IQS620_PWM_PERIOD_NS);
79 if (!state->enabled || !duty_scale) {
97 if (state->enabled && duty_scale) {
104 iqs620_pwm->out_en = state->enabled;
113 struct pwm_state *state)
128 state->enabled = iqs620_pwm->out_en;
129 state->duty_cycle = DIV_ROUND_UP((iqs620_pwm->duty_val + 1) *
134 state->period = IQS620_PWM_PERIOD_NS;
135 state->polarity = PWM_POLARITY_NORMAL;