Lines Matching refs:s1
451 struct pwm_state s1, s2; in pwm_apply_state_debug() local
466 err = chip->ops->get_state(chip, pwm, &s1); in pwm_apply_state_debug()
467 trace_pwm_get(pwm, &s1, err); in pwm_apply_state_debug()
477 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
479 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
480 s2.period = s1.period; in pwm_apply_state_debug()
481 s2.enabled = s1.enabled; in pwm_apply_state_debug()
483 s2 = s1; in pwm_apply_state_debug()
525 err = chip->ops->apply(chip, pwm, &s1); in pwm_apply_state_debug()
526 trace_pwm_apply(pwm, &s1, err); in pwm_apply_state_debug()
528 *last = s1; in pwm_apply_state_debug()
539 if (s1.enabled != last->enabled || in pwm_apply_state_debug()
540 s1.polarity != last->polarity || in pwm_apply_state_debug()
541 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
542 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
545 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()