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