Lines Matching refs:duty_cycle
479 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
487 state->duty_cycle < state->period) in pwm_apply_state_debug()
506 last->duty_cycle > s2.duty_cycle && in pwm_apply_state_debug()
507 last->duty_cycle <= state->duty_cycle) in pwm_apply_state_debug()
510 state->duty_cycle, state->period, in pwm_apply_state_debug()
511 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
512 last->duty_cycle, last->period); in pwm_apply_state_debug()
514 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
517 state->duty_cycle, state->period, 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()
542 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
545 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
546 last->enabled, last->polarity, last->duty_cycle, in pwm_apply_state_debug()
571 state->duty_cycle > state->period) in pwm_apply_state()
577 state->duty_cycle == pwm->state.duty_cycle && in pwm_apply_state()
652 state.duty_cycle = 0; in pwm_adjust_config()
664 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
667 state.duty_cycle = dutycycle; in pwm_adjust_config()
676 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
1135 seq_printf(s, " duty: %llu ns", state.duty_cycle); in pwm_dbg_show()