Lines Matching full:duty
37 unsigned duty; /* PWM duty expressed in clk cycles */ member
80 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
95 &tcbpwm->duty); in atmel_tcb_pwm_request()
99 &tcbpwm->duty); in atmel_tcb_pwm_request()
130 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_disable()
137 if (tcbpwm->duty == 0) in atmel_tcb_pwm_disable()
184 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_enable()
191 if (tcbpwm->duty == 0) in atmel_tcb_pwm_enable()
216 * If duty is 0 or equal to period there's no need to register in atmel_tcb_pwm_enable()
221 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
242 tcbpwm->duty); in atmel_tcb_pwm_enable()
246 tcbpwm->duty); in atmel_tcb_pwm_enable()
268 unsigned duty; in atmel_tcb_pwm_config() local
306 duty = div_u64(duty_ns, min); in atmel_tcb_pwm_config()
317 if ((atcbpwm->duty > 0 && atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
326 tcbpwm->duty = duty; in atmel_tcb_pwm_config()