Lines Matching full:period
148 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
176 pwm->args.period = args->args[0]; in of_pwm_single_xlate()
418 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
419 s2.period = s1.period; in pwm_apply_state_debug()
426 state->duty_cycle < state->period) in pwm_apply_state_debug()
431 last->period > s2.period && in pwm_apply_state_debug()
432 last->period <= state->period) in pwm_apply_state_debug()
434 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", in pwm_apply_state_debug()
435 state->period, s2.period, last->period); in pwm_apply_state_debug()
437 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
439 ".apply is supposed to round down period (requested: %llu, applied: %llu)\n", in pwm_apply_state_debug()
440 state->period, s2.period); in pwm_apply_state_debug()
444 last->period == s2.period && in pwm_apply_state_debug()
449 state->duty_cycle, state->period, in pwm_apply_state_debug()
450 s2.duty_cycle, s2.period, in pwm_apply_state_debug()
451 last->duty_cycle, last->period); in pwm_apply_state_debug()
456 state->duty_cycle, state->period, in pwm_apply_state_debug()
457 s2.duty_cycle, s2.period); in pwm_apply_state_debug()
481 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
485 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_state_debug()
487 last->period); in pwm_apply_state_debug()
510 if (!pwm || !state || !state->period || in pwm_apply_state()
511 state->duty_cycle > state->period) in pwm_apply_state()
516 if (state->period == pwm->state.period && in pwm_apply_state()
584 * If the current period is zero it means that either the PWM driver in pwm_adjust_config()
588 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
591 if (!state.period) { in pwm_adjust_config()
593 state.period = pargs.period; in pwm_adjust_config()
600 * Adjust the PWM duty cycle/period based on the period value provided in pwm_adjust_config()
603 if (pargs.period != state.period) { in pwm_adjust_config()
604 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
606 do_div(dutycycle, state.period); in pwm_adjust_config()
608 state.period = pargs.period; in pwm_adjust_config()
616 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
762 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
791 pwm->args.period = args.args[1]; in acpi_pwm_get()
953 pwm->args.period = chosen->period; in pwm_get()
1074 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()