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