Lines Matching full:duty
77 u16 duty; member
181 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_timer_start()
185 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start()
227 tpd->duty = 0; in tpu_pwm_request()
251 u32 duty; in tpu_pwm_config() local
303 duty = mul_u64_u64_div_u64(clk_rate, duty_ns, in tpu_pwm_config()
306 duty = 0; in tpu_pwm_config()
309 "rate %u, prescaler %u, period %u, duty %u\n", in tpu_pwm_config()
310 clk_rate, 1 << (2 * prescaler), (u32)period, duty); in tpu_pwm_config()
317 tpd->duty = duty; in tpu_pwm_config()
325 * If only the duty cycle changed and the timer is already in tpu_pwm_config()
327 * modify the duty cycle. in tpu_pwm_config()
329 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_config()
331 tpd->duty); in tpu_pwm_config()
339 if (duty == 0 || duty == period) { in tpu_pwm_config()
342 * 0% and 100% duty cycles as fixed levels and stop the timer. in tpu_pwm_config()
344 tpu_pwm_set_pin(tpd, duty ? TPU_PIN_ACTIVE : TPU_PIN_INACTIVE); in tpu_pwm_config()
374 * 100% duty cycles as fixed levels and stop the timer. in tpu_pwm_enable()
376 if (tpd->duty == 0 || tpd->duty == tpd->period) { in tpu_pwm_enable()
377 tpu_pwm_set_pin(tpd, tpd->duty ? in tpu_pwm_enable()