Lines Matching defs:period
38 unsigned period; /* PWM period expressed in clk cycles */
82 tcbpwm->period = 0;
103 &tcbpwm->period);
221 * If duty is 0 or equal to period there's no need to register
226 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) {
254 tcbpwm->period);
272 unsigned period;
306 /* If period is too big return ERANGE error */
312 period = div_u64(period_ns, min);
324 * We're checking the period value of the second PWM device
328 atcbpwm->duty != atcbpwm->period) &&
329 (atcbpwm->div != i || atcbpwm->period != period)) {
335 tcbpwm->period = period;
345 int duty_cycle, period;
353 period = state->period < INT_MAX ? state->period : INT_MAX;
356 ret = atmel_tcb_pwm_config(chip, pwm, duty_cycle, period);