Lines Matching refs: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()
310 clk_rate, 1 << (2 * prescaler), (u32)period, duty); in tpu_pwm_config()
317 tpd->duty = duty; 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()
344 tpu_pwm_set_pin(tpd, duty ? TPU_PIN_ACTIVE : TPU_PIN_INACTIVE); in tpu_pwm_config()
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()