Lines Matching full:period
124 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
152 pwm->args.period = args->args[0]; in of_pwm_single_xlate()
364 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_debug()
365 s2.period = s1.period; in pwm_apply_debug()
372 state->duty_cycle < state->period) in pwm_apply_debug()
377 last->period > s2.period && in pwm_apply_debug()
378 last->period <= state->period) in pwm_apply_debug()
380 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", in pwm_apply_debug()
381 state->period, s2.period, last->period); in pwm_apply_debug()
383 if (state->enabled && state->period < s2.period) in pwm_apply_debug()
385 ".apply is supposed to round down period (requested: %llu, applied: %llu)\n", in pwm_apply_debug()
386 state->period, s2.period); in pwm_apply_debug()
390 last->period == s2.period && in pwm_apply_debug()
395 state->duty_cycle, state->period, in pwm_apply_debug()
396 s2.duty_cycle, s2.period, in pwm_apply_debug()
397 last->duty_cycle, last->period); in pwm_apply_debug()
402 state->duty_cycle, state->period, in pwm_apply_debug()
403 s2.duty_cycle, s2.period); in pwm_apply_debug()
427 (s1.enabled && s1.period != last->period) || in pwm_apply_debug()
431 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
433 last->period); in pwm_apply_debug()
447 if (!pwm || !state || !state->period || in __pwm_apply()
448 state->duty_cycle > state->period) in __pwm_apply()
453 if (state->period == pwm->state.period && in __pwm_apply()
570 * If the current period is zero it means that either the PWM driver in pwm_adjust_config()
574 * In either case, we setup the new period and polarity, and assign a in pwm_adjust_config()
577 if (!state.period) { in pwm_adjust_config()
579 state.period = pargs.period; in pwm_adjust_config()
586 * Adjust the PWM duty cycle/period based on the period value provided in pwm_adjust_config()
589 if (pargs.period != state.period) { in pwm_adjust_config()
590 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
592 do_div(dutycycle, state.period); in pwm_adjust_config()
594 state.period = pargs.period; in pwm_adjust_config()
602 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
749 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
778 pwm->args.period = args.args[1]; in acpi_pwm_get()
940 pwm->args.period = chosen->period; in pwm_get()
1060 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()