Lines Matching refs:s2
451 struct pwm_state s1, s2; in pwm_apply_state_debug() local
478 s2.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()
486 if (s2.polarity != state->polarity && in pwm_apply_state_debug()
492 last->period > s2.period && in pwm_apply_state_debug()
496 state->period, s2.period, last->period); in pwm_apply_state_debug()
498 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
501 state->period, s2.period); in pwm_apply_state_debug()
505 last->period == s2.period && in pwm_apply_state_debug()
506 last->duty_cycle > s2.duty_cycle && in pwm_apply_state_debug()
511 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
514 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
518 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
520 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug()