Lines Matching full:duty
78 u16 duty; member
179 tpu_pwm_write(pwm, TPU_TGRAn, pwm->duty); in tpu_pwm_timer_start()
183 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start()
227 pwm->duty = 0; in tpu_pwm_request()
254 u32 duty; in tpu_pwm_config() local
276 duty = clk_rate / prescalers[prescaler] in tpu_pwm_config()
278 if (duty > period) in tpu_pwm_config()
281 duty = 0; in tpu_pwm_config()
285 "rate %u, prescaler %u, period %u, duty %u\n", in tpu_pwm_config()
286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()
293 pwm->duty = duty; in tpu_pwm_config()
301 * If only the duty cycle changed and the timer is already in tpu_pwm_config()
303 * modify the duty cycle. in tpu_pwm_config()
305 tpu_pwm_write(pwm, TPU_TGRAn, pwm->duty); in tpu_pwm_config()
307 pwm->duty); in tpu_pwm_config()
315 if (duty == 0 || duty == period) { in tpu_pwm_config()
318 * 0% and 100% duty cycles as fixed levels and stop the timer. in tpu_pwm_config()
320 tpu_pwm_set_pin(pwm, duty ? TPU_PIN_ACTIVE : TPU_PIN_INACTIVE); in tpu_pwm_config()
348 * 100% duty cycles as fixed levels and stop the timer. in tpu_pwm_enable()
350 if (pwm->duty == 0 || pwm->duty == pwm->period) { in tpu_pwm_enable()
351 tpu_pwm_set_pin(pwm, pwm->duty ? in tpu_pwm_enable()