Lines Matching refs:s2
429 struct pwm_state s1, s2; in pwm_apply_state_debug() local
453 s2.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()
461 if (s2.polarity != state->polarity && in pwm_apply_state_debug()
467 last->period > s2.period && in pwm_apply_state_debug()
471 state->period, s2.period, last->period); in pwm_apply_state_debug()
473 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
476 state->period, s2.period); in pwm_apply_state_debug()
480 last->period == s2.period && in pwm_apply_state_debug()
481 last->duty_cycle > s2.duty_cycle && in pwm_apply_state_debug()
486 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
489 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
493 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
495 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug()