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