Lines Matching defs:period
38 unsigned period; /* PWM period expressed in clk cycles */
81 tcbpwm->period = 0;
103 &tcbpwm->period);
216 * If duty is 0 or equal to period there's no need to register
221 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) {
249 tcbpwm->period);
263 /* companion PWM sharing register values period and div */
267 unsigned period;
301 /* If period is too big return ERANGE error */
307 period = div_u64(period_ns, min);
314 * We're checking the period value of the second PWM device
317 if ((atcbpwm->duty > 0 && atcbpwm->duty != atcbpwm->period) &&
318 (atcbpwm->div != i || atcbpwm->period != period)) {
324 tcbpwm->period = period;
335 int duty_cycle, period;
345 period = min(state->period, INT_MAX);
348 ret = atmel_tcb_pwm_config(chip, pwm, duty_cycle, period);