Lines Matching refs:state
167 const struct pwm_state *state)
175 pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period);
186 const struct pwm_state *state)
191 if (state->enabled) {
194 ret = pwm_lpss_prepare_enable(lpwm, pwm, state);
198 ret = pwm_lpss_prepare_enable(lpwm, pwm, state);
209 struct pwm_state *state)
227 state->period = NSEC_PER_SEC;
229 state->period = NSEC_PER_SEC / (unsigned long)freq;
231 on_time_div *= state->period;
233 state->duty_cycle = on_time_div;
235 state->polarity = PWM_POLARITY_NORMAL;
236 state->enabled = !!(ctrl & PWM_ENABLE);