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