Lines Matching full:period
143 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
171 pwm->args.period = args->args[0]; in of_pwm_single_xlate()
470 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
471 s2.period = s1.period; in pwm_apply_state_debug()
478 state->duty_cycle < state->period) in pwm_apply_state_debug()
483 last->period > s2.period && in pwm_apply_state_debug()
484 last->period <= state->period) in pwm_apply_state_debug()
486 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", in pwm_apply_state_debug()
487 state->period, s2.period, last->period); in pwm_apply_state_debug()
489 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
491 ".apply is supposed to round down period (requested: %llu, applied: %llu)\n", in pwm_apply_state_debug()
492 state->period, s2.period); in pwm_apply_state_debug()
496 last->period == s2.period && in pwm_apply_state_debug()
501 state->duty_cycle, state->period, in pwm_apply_state_debug()
502 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
503 last->duty_cycle, last->period); in pwm_apply_state_debug()
508 state->duty_cycle, state->period, in pwm_apply_state_debug()
509 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
531 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
535 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
537 last->period); in pwm_apply_state_debug()
560 if (!pwm || !state || !state->period || in pwm_apply_state()
561 state->duty_cycle > state->period) in pwm_apply_state()
566 if (state->period == pwm->state.period && in pwm_apply_state()
635 * If the current period is zero it means that either the PWM driver in pwm_adjust_config()
639 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
642 if (!state.period) { in pwm_adjust_config()
644 state.period = pargs.period; in pwm_adjust_config()
651 * Adjust the PWM duty cycle/period based on the period value provided in pwm_adjust_config()
654 if (pargs.period != state.period) { in pwm_adjust_config()
655 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
657 do_div(dutycycle, state.period); in pwm_adjust_config()
659 state.period = pargs.period; in pwm_adjust_config()
667 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
813 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
842 pwm->args.period = args.args[1]; in acpi_pwm_get()
1004 pwm->args.period = chosen->period; in pwm_get()
1125 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()