Lines Matching refs:s2
445 struct pwm_state s1, s2; in pwm_apply_state_debug() local
469 s2.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()
477 if (s2.polarity != state->polarity && in pwm_apply_state_debug()
483 last->period > s2.period && in pwm_apply_state_debug()
487 state->period, s2.period, last->period); in pwm_apply_state_debug()
489 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
492 state->period, s2.period); in pwm_apply_state_debug()
496 last->period == s2.period && in pwm_apply_state_debug()
497 last->duty_cycle > s2.duty_cycle && in pwm_apply_state_debug()
502 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
505 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
509 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
511 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug()