Lines Matching full:duty
78 u16 duty; member
179 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_timer_start()
183 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start()
227 tpd->duty = 0; in tpu_pwm_request()
253 u32 duty; in tpu_pwm_config() local
305 duty = mul_u64_u64_div_u64(clk_rate, duty_ns, in tpu_pwm_config()
308 duty = 0; in tpu_pwm_config()
311 "rate %u, prescaler %u, period %u, duty %u\n", in tpu_pwm_config()
312 clk_rate, 1 << (2 * prescaler), (u32)period, duty); in tpu_pwm_config()
319 tpd->duty = duty; in tpu_pwm_config()
327 * If only the duty cycle changed and the timer is already in tpu_pwm_config()
329 * modify the duty cycle. in tpu_pwm_config()
331 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_config()
333 tpd->duty); in tpu_pwm_config()
341 if (duty == 0 || duty == period) { in tpu_pwm_config()
344 * 0% and 100% duty cycles as fixed levels and stop the timer. in tpu_pwm_config()
346 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()