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()
544 if (!pwm || !state || !state->period || in pwm_apply_state()
545 state->duty_cycle > state->period) in pwm_apply_state()
550 if (state->period == pwm->state.period && in pwm_apply_state()
597 if (state->period != pwm->state.period || in pwm_apply_state()
601 state->period); in pwm_apply_state()
606 pwm->state.period = state->period; in pwm_apply_state()
677 if (!state.period) { in pwm_adjust_config()
679 state.period = pargs.period; in pwm_adjust_config()
689 if (pargs.period != state.period) { in pwm_adjust_config()
690 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
692 do_div(dutycycle, state.period); in pwm_adjust_config()
694 state.period = pargs.period; in pwm_adjust_config()
702 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
878 pwm->args.period = args.args[1]; in acpi_pwm_get()
1040 pwm->args.period = chosen->period; in pwm_get()
1191 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()