Lines Matching full:duty
37 unsigned duty; /* PWM duty expressed in clk cycles */ member
81 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
96 &tcbpwm->duty); in atmel_tcb_pwm_request()
100 &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()
185 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_enable()
192 if (tcbpwm->duty == 0) in atmel_tcb_pwm_enable()
217 * If duty is 0 or equal to period there's no need to register in atmel_tcb_pwm_enable()
222 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
243 tcbpwm->duty); in atmel_tcb_pwm_enable()
247 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()
322 if ((atcbpwm && atcbpwm->duty > 0 && in atmel_tcb_pwm_config()
323 atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
332 tcbpwm->duty = duty; in atmel_tcb_pwm_config()