Lines Matching defs:period
74 unsigned long period;
83 period = ctx->pwm->args.period;
84 state.duty_cycle = DIV_ROUND_UP(pwm * (period - 1), MAX_PWM);
329 * __set_pwm assumes that MAX_PWM * (period - 1) fits into an unsigned
333 if (state.period > ULONG_MAX / MAX_PWM + 1) {
334 dev_err(dev, "Configured period too big\n");
339 state.duty_cycle = ctx->pwm->args.period - 1;
408 ret = pwm_config(ctx->pwm, 0, args.period);
456 duty = DIV_ROUND_UP_ULL(ctx->pwm_value * (pargs.period - 1), MAX_PWM);
457 ret = pwm_config(ctx->pwm, duty, pargs.period);