Lines Matching refs:s1
429 struct pwm_state s1, s2; in pwm_apply_state_debug() local
444 chip->ops->get_state(chip, pwm, &s1); in pwm_apply_state_debug()
445 trace_pwm_get(pwm, &s1); in pwm_apply_state_debug()
452 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
454 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
455 s2.period = s1.period; in pwm_apply_state_debug()
456 s2.enabled = s1.enabled; in pwm_apply_state_debug()
458 s2 = s1; in pwm_apply_state_debug()
500 err = chip->ops->apply(chip, pwm, &s1); in pwm_apply_state_debug()
502 *last = s1; in pwm_apply_state_debug()
507 trace_pwm_apply(pwm, &s1); in pwm_apply_state_debug()
513 if (s1.enabled != last->enabled || in pwm_apply_state_debug()
514 s1.polarity != last->polarity || in pwm_apply_state_debug()
515 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
516 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
519 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()