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()
498 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
499 s2.period = s1.period; in pwm_apply_state_debug()
506 state->duty_cycle < state->period) in pwm_apply_state_debug()
511 last->period > s2.period && in pwm_apply_state_debug()
512 last->period <= state->period) in pwm_apply_state_debug()
514 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", in pwm_apply_state_debug()
515 state->period, s2.period, last->period); in pwm_apply_state_debug()
517 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
519 ".apply is supposed to round down period (requested: %llu, applied: %llu)\n", in pwm_apply_state_debug()
520 state->period, s2.period); in pwm_apply_state_debug()
524 last->period == s2.period && in pwm_apply_state_debug()
529 state->duty_cycle, state->period, in pwm_apply_state_debug()
530 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
531 last->duty_cycle, last->period); in pwm_apply_state_debug()
536 state->duty_cycle, state->period, in pwm_apply_state_debug()
537 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
559 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
563 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
565 last->period); in pwm_apply_state_debug()
579 if (!pwm || !state || !state->period || in pwm_apply_state()
580 state->duty_cycle > state->period) in pwm_apply_state()
585 if (state->period == pwm->state.period && in pwm_apply_state()
634 if (state->period != pwm->state.period || in pwm_apply_state()
638 state->period); in pwm_apply_state()
643 pwm->state.period = state->period; in pwm_apply_state()
707 * If the current period is zero it means that either the PWM driver in pwm_adjust_config()
711 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
714 if (!state.period) { in pwm_adjust_config()
716 state.period = pargs.period; in pwm_adjust_config()
723 * Adjust the PWM duty cycle/period based on the period value provided in pwm_adjust_config()
726 if (pargs.period != state.period) { in pwm_adjust_config()
727 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
729 do_div(dutycycle, state.period); in pwm_adjust_config()
731 state.period = pargs.period; in pwm_adjust_config()
739 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
908 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
943 pwm->args.period = args.args[1]; in acpi_pwm_get()
1105 pwm->args.period = chosen->period; in pwm_get()
1291 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()