Lines Matching refs:period
77 u16 period; member
180 tpu_pwm_write(pwm, TPU_TGRBn, pwm->period); in tpu_pwm_timer_start()
183 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start()
226 pwm->period = 0; in tpu_pwm_request()
253 u32 period; in tpu_pwm_config() local
264 period = clk_rate / prescalers[prescaler] in tpu_pwm_config()
266 if (period <= 0xffff) in tpu_pwm_config()
270 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config()
278 if (duty > period) in tpu_pwm_config()
286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()
288 if (pwm->prescaler == prescaler && pwm->period == period) in tpu_pwm_config()
292 pwm->period = period; in tpu_pwm_config()
315 if (duty == 0 || duty == period) { in tpu_pwm_config()
350 if (pwm->duty == 0 || pwm->duty == pwm->period) { in tpu_pwm_enable()