Lines Matching refs:s1
445 struct pwm_state s1, s2; in pwm_apply_state_debug() local
460 chip->ops->get_state(chip, pwm, &s1); in pwm_apply_state_debug()
461 trace_pwm_get(pwm, &s1); in pwm_apply_state_debug()
468 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
470 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
471 s2.period = s1.period; in pwm_apply_state_debug()
472 s2.enabled = s1.enabled; in pwm_apply_state_debug()
474 s2 = s1; in pwm_apply_state_debug()
516 err = chip->ops->apply(chip, pwm, &s1); in pwm_apply_state_debug()
518 *last = s1; in pwm_apply_state_debug()
523 trace_pwm_apply(pwm, &s1); in pwm_apply_state_debug()
529 if (s1.enabled != last->enabled || in pwm_apply_state_debug()
530 s1.polarity != last->polarity || in pwm_apply_state_debug()
531 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
532 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
535 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()