Lines Matching refs:s2
390 struct pwm_state s1 = { 0 }, s2 = { 0 }; in pwm_apply_state_debug() local
417 s2.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()
425 if (s2.polarity != state->polarity && in pwm_apply_state_debug()
431 last->period > s2.period && in pwm_apply_state_debug()
435 state->period, s2.period, last->period); in pwm_apply_state_debug()
437 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
440 state->period, s2.period); in pwm_apply_state_debug()
444 last->period == s2.period && in pwm_apply_state_debug()
445 last->duty_cycle > s2.duty_cycle && in pwm_apply_state_debug()
450 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
453 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
457 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
459 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug()