Lines Matching refs:period
143 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
454 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
455 s2.period = s1.period; in pwm_apply_state_debug()
462 state->duty_cycle < state->period) in pwm_apply_state_debug()
467 last->period > s2.period && in pwm_apply_state_debug()
468 last->period <= state->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()
485 state->duty_cycle, state->period, in pwm_apply_state_debug()
486 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
487 last->duty_cycle, last->period); in pwm_apply_state_debug()
492 state->duty_cycle, state->period, in pwm_apply_state_debug()
493 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
515 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
519 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
521 last->period); in pwm_apply_state_debug()
535 if (!pwm || !state || !state->period || in pwm_apply_state()
536 state->duty_cycle > state->period) in pwm_apply_state()
541 if (state->period == pwm->state.period && in pwm_apply_state()
588 if (state->period != pwm->state.period || in pwm_apply_state()
592 state->period); in pwm_apply_state()
597 pwm->state.period = state->period; in pwm_apply_state()
668 if (!state.period) { in pwm_adjust_config()
670 state.period = pargs.period; in pwm_adjust_config()
680 if (pargs.period != state.period) { in pwm_adjust_config()
681 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
683 do_div(dutycycle, state.period); in pwm_adjust_config()
685 state.period = pargs.period; in pwm_adjust_config()
693 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
869 pwm->args.period = args.args[1]; in acpi_pwm_get()
1031 pwm->args.period = chosen->period; in pwm_get()
1182 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()