Lines Matching refs:state
125 const struct pwm_state *state)
133 pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period);
144 const struct pwm_state *state)
149 if (state->enabled) {
152 ret = pwm_lpss_prepare_enable(lpwm, pwm, state);
156 ret = pwm_lpss_prepare_enable(lpwm, pwm, state);
167 struct pwm_state *state)
185 state->period = NSEC_PER_SEC;
187 state->period = NSEC_PER_SEC / (unsigned long)freq;
189 on_time_div *= state->period;
191 state->duty_cycle = on_time_div;
193 state->polarity = PWM_POLARITY_NORMAL;
194 state->enabled = !!(ctrl & PWM_ENABLE);