Lines Matching refs:period_cycles
111 unsigned long period_cycles[NUM_PWM_CHANNEL]; member
222 u32 period_cycles, duty_cycles; in ehrpwm_pwm_config() local
233 period_cycles = (unsigned long)c; in ehrpwm_pwm_config()
235 if (period_cycles < 1) { in ehrpwm_pwm_config()
236 period_cycles = 1; in ehrpwm_pwm_config()
250 if (pc->period_cycles[i] && in ehrpwm_pwm_config()
251 (pc->period_cycles[i] != period_cycles)) { in ehrpwm_pwm_config()
266 pc->period_cycles[pwm->hwpwm] = period_cycles; in ehrpwm_pwm_config()
269 if (set_prescale_div(period_cycles/PERIOD_MAX, &ps_divval, in ehrpwm_pwm_config()
281 period_cycles = period_cycles / ps_divval; in ehrpwm_pwm_config()
287 ehrpwm_write(pc->mmio_base, TBPRD, period_cycles); in ehrpwm_pwm_config()
401 pc->period_cycles[pwm->hwpwm] = 0; in ehrpwm_pwm_free()