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