Lines Matching full:duty
36 unsigned duty; /* PWM duty expressed in clk cycles */ member
96 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
108 tcbpwm->duty = in atmel_tcb_pwm_request()
111 tcbpwm->duty = in atmel_tcb_pwm_request()
153 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_disable()
160 if (tcbpwm->duty == 0) in atmel_tcb_pwm_disable()
212 * If duty is 0 the timer will be stopped and we have to in atmel_tcb_pwm_enable()
219 if (tcbpwm->duty == 0) in atmel_tcb_pwm_enable()
245 * If duty is 0 or equal to period there's no need to register in atmel_tcb_pwm_enable()
250 if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { in atmel_tcb_pwm_enable()
269 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RA)); in atmel_tcb_pwm_enable()
271 __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RB)); in atmel_tcb_pwm_enable()
295 unsigned duty; in atmel_tcb_pwm_config() local
330 duty = div_u64(duty_ns, min); in atmel_tcb_pwm_config()
350 if ((atcbpwm && atcbpwm->duty > 0 && in atmel_tcb_pwm_config()
351 atcbpwm->duty != atcbpwm->period) && in atmel_tcb_pwm_config()
360 tcbpwm->duty = duty; in atmel_tcb_pwm_config()