Lines Matching refs:s1
390 struct pwm_state s1 = { 0 }, s2 = { 0 }; in pwm_apply_state_debug() local
405 err = chip->ops->get_state(chip, pwm, &s1); in pwm_apply_state_debug()
406 trace_pwm_get(pwm, &s1, err); in pwm_apply_state_debug()
416 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
418 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
419 s2.period = s1.period; in pwm_apply_state_debug()
420 s2.enabled = s1.enabled; in pwm_apply_state_debug()
422 s2 = s1; in pwm_apply_state_debug()
464 err = chip->ops->apply(chip, pwm, &s1); in pwm_apply_state_debug()
465 trace_pwm_apply(pwm, &s1, err); in pwm_apply_state_debug()
467 *last = s1; in pwm_apply_state_debug()
479 if (s1.enabled != last->enabled || in pwm_apply_state_debug()
480 s1.polarity != last->polarity || in pwm_apply_state_debug()
481 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
482 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
485 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()