Lines Matching full:duty
39 unsigned duty; /* PWM duty expressed in clk cycles */ member
102 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
116 &tcbpwm->duty); in atmel_tcb_pwm_request()
120 &tcbpwm->duty); in atmel_tcb_pwm_request()
157 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_disable()
164 if (tcbpwm->duty == 0) in atmel_tcb_pwm_disable()
214 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_enable()
221 if (tcbpwm->duty == 0) in atmel_tcb_pwm_enable()
247 * If duty is 0 or equal to period there's no need to register in atmel_tcb_pwm_enable()
252 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
273 tcbpwm->duty); in atmel_tcb_pwm_enable()
277 tcbpwm->duty); in atmel_tcb_pwm_enable()
299 unsigned duty; in atmel_tcb_pwm_config() local
337 duty = div_u64(duty_ns, min); in atmel_tcb_pwm_config()
353 if ((atcbpwm && atcbpwm->duty > 0 && in atmel_tcb_pwm_config()
354 atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
363 tcbpwm->duty = duty; in atmel_tcb_pwm_config()