Lines Matching full:duty
105 * Set duty > period. This trick allows the TCU channels in TCU2 mode to in jz4740_pwm_disable()
129 unsigned long period, duty; in jz4740_pwm_apply() local
161 /* Calculate duty value */ in jz4740_pwm_apply()
164 duty = tmp; in jz4740_pwm_apply()
166 if (duty >= period) in jz4740_pwm_apply()
167 duty = period - 1; in jz4740_pwm_apply()
180 /* Set duty */ in jz4740_pwm_apply()
181 regmap_write(jz4740->map, TCU_REG_TDHRc(pwm->hwpwm), duty); in jz4740_pwm_apply()
194 * duty value, then becomes active until the timer reaches the period in jz4740_pwm_apply()
195 * value. In theory, we should then use (period - duty) as the real duty in jz4740_pwm_apply()
196 * value, as a high duty value would otherwise result in the PWM pin in jz4740_pwm_apply()