Lines Matching refs:pstate
86 struct pwm_state pstate;
89 pwm_init_state(drvdata->pwm, &pstate);
90 pwm_set_relative_duty_cycle(&pstate,
93 ret = pwm_apply_might_sleep(drvdata->pwm, &pstate);
154 struct pwm_state pstate;
158 pwm_get_state(drvdata->pwm, &pstate);
160 if (!pstate.enabled) {
161 if (pstate.polarity == PWM_POLARITY_INVERSED)
162 pstate.duty_cycle = pstate.period;
164 pstate.duty_cycle = 0;
167 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit);
201 struct pwm_state pstate;
206 pwm_init_state(drvdata->pwm, &pstate);
227 pwm_set_relative_duty_cycle(&pstate, dutycycle, duty_unit);
229 ret = pwm_apply_might_sleep(drvdata->pwm, &pstate);
328 struct pwm_state pstate;
333 pwm_get_state(drvdata->pwm, &pstate);
334 if (pstate.enabled)
342 if (pstate.polarity == PWM_POLARITY_INVERSED)
343 pstate.duty_cycle = pstate.period;
345 pstate.duty_cycle = 0;
347 return pwm_apply_might_sleep(drvdata->pwm, &pstate);