Lines Matching refs:tcbpwmc
66 struct atmel_tcb_pwm_chip *tcbpwmc = to_tcb_chip(chip); in atmel_tcb_pwm_request() local
68 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_request()
91 spin_lock(&tcbpwmc->lock); in atmel_tcb_pwm_request()
114 spin_unlock(&tcbpwmc->lock); in atmel_tcb_pwm_request()
116 tcbpwmc->pwms[pwm->hwpwm] = tcbpwm; in atmel_tcb_pwm_request()
123 struct atmel_tcb_pwm_chip *tcbpwmc = to_tcb_chip(chip); in atmel_tcb_pwm_free() local
125 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_free()
128 tcbpwmc->pwms[pwm->hwpwm] = NULL; in atmel_tcb_pwm_free()
134 struct atmel_tcb_pwm_chip *tcbpwmc = to_tcb_chip(chip); in atmel_tcb_pwm_disable() local
136 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_disable()
154 spin_lock(&tcbpwmc->lock); in atmel_tcb_pwm_disable()
185 spin_unlock(&tcbpwmc->lock); in atmel_tcb_pwm_disable()
190 struct atmel_tcb_pwm_chip *tcbpwmc = to_tcb_chip(chip); in atmel_tcb_pwm_enable() local
192 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_enable()
210 spin_lock(&tcbpwmc->lock); in atmel_tcb_pwm_enable()
266 spin_unlock(&tcbpwmc->lock); in atmel_tcb_pwm_enable()
273 struct atmel_tcb_pwm_chip *tcbpwmc = to_tcb_chip(chip); in atmel_tcb_pwm_config() local
278 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_config()
321 atcbpwm = tcbpwmc->pwms[pwm->hwpwm + 1]; in atmel_tcb_pwm_config()
323 atcbpwm = tcbpwmc->pwms[pwm->hwpwm - 1]; in atmel_tcb_pwm_config()