Lines Matching full:duty
37 unsigned duty; /* PWM duty expressed in clk cycles */ member
81 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
95 &tcbpwm->duty); in atmel_tcb_pwm_request()
99 &tcbpwm->duty); in atmel_tcb_pwm_request()
131 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_disable()
138 if (tcbpwm->duty == 0) in atmel_tcb_pwm_disable()
188 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_enable()
195 if (tcbpwm->duty == 0) in atmel_tcb_pwm_enable()
221 * If duty is 0 or equal to period there's no need to register in atmel_tcb_pwm_enable()
226 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
247 tcbpwm->duty); in atmel_tcb_pwm_enable()
251 tcbpwm->duty); in atmel_tcb_pwm_enable()
273 unsigned duty; in atmel_tcb_pwm_config() local
311 duty = div_u64(duty_ns, min); in atmel_tcb_pwm_config()
327 if ((atcbpwm && atcbpwm->duty > 0 && in atmel_tcb_pwm_config()
328 atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
337 tcbpwm->duty = duty; in atmel_tcb_pwm_config()