Lines Matching full:period
154 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
184 pwm->args.period = args->args[1]; in of_pwm_simple_xlate()
497 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
498 s2.period = s1.period; in pwm_apply_state_debug()
505 state->duty_cycle < state->period) in pwm_apply_state_debug()
510 last->period > s2.period && in pwm_apply_state_debug()
511 last->period <= state->period) in pwm_apply_state_debug()
513 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", in pwm_apply_state_debug()
514 state->period, s2.period, last->period); in pwm_apply_state_debug()
516 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
518 ".apply is supposed to round down period (requested: %llu, applied: %llu)\n", in pwm_apply_state_debug()
519 state->period, s2.period); in pwm_apply_state_debug()
523 last->period == s2.period && in pwm_apply_state_debug()
528 state->duty_cycle, state->period, in pwm_apply_state_debug()
529 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
530 last->duty_cycle, last->period); in pwm_apply_state_debug()
535 state->duty_cycle, state->period, in pwm_apply_state_debug()
536 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
558 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
562 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
564 last->period); in pwm_apply_state_debug()
578 if (!pwm || !state || !state->period || in pwm_apply_state()
579 state->duty_cycle > state->period) in pwm_apply_state()
584 if (state->period == pwm->state.period && in pwm_apply_state()
630 if (state->period != pwm->state.period || in pwm_apply_state()
634 state->period); in pwm_apply_state()
639 pwm->state.period = state->period; in pwm_apply_state()
703 * If the current period is zero it means that either the PWM driver in pwm_adjust_config()
707 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
710 if (!state.period) { in pwm_adjust_config()
712 state.period = pargs.period; in pwm_adjust_config()
719 * Adjust the PWM duty cycle/period based on the period value provided in pwm_adjust_config()
722 if (pargs.period != state.period) { in pwm_adjust_config()
723 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
725 do_div(dutycycle, state.period); in pwm_adjust_config()
727 state.period = pargs.period; in pwm_adjust_config()
735 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
904 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
939 pwm->args.period = args.args[1]; in acpi_pwm_get()
1101 pwm->args.period = chosen->period; in pwm_get()
1287 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()