Lines Matching refs:usb_regs
152 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eprx_stall_change()
159 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eprx_stall_change()
169 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eptx_stall_change()
176 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eptx_stall_change()
197 clrsetbits_be16(&udc->usb_regs->usb_usep[epnum], in qe_eprx_nack()
201 clrbits16(&udc->usb_regs->usb_usbmr, in qe_eprx_nack()
214 clrsetbits_be16(&udc->usb_regs->usb_usep[ep->epnum], in qe_eprx_normal()
218 out_be16(&udc->usb_regs->usb_usber, in qe_eprx_normal()
220 setbits16(&udc->usb_regs->usb_usbmr, in qe_eprx_normal()
262 out_8(&udc->usb_regs->usb_uscom, in qe_ep_flushtxfifo()
278 out_8(&udc->usb_regs->usb_uscom, in qe_ep_filltxfifo()
321 tmpusep = in_be16(&udc->usb_regs->usb_usep[pipe_num]); in qe_ep_reset()
338 out_be16(&udc->usb_regs->usb_usep[pipe_num], tmpusep); in qe_ep_reset()
510 out_be16(&udc->usb_regs->usb_usep[pipe_num], usep); in qe_ep_register_init()
691 setbits8(&udc->usb_regs->usb_usmod, USB_MODE_EN); in qe_usb_enable()
696 clrbits8(&udc->usb_regs->usb_usmod, USB_MODE_EN); in qe_usb_disable()
774 if (in_be16(&udc->usb_regs->usb_usber) & USB_E_BSY_MASK) in ep_recycle_rxbds()
775 out_be16(&udc->usb_regs->usb_usber, USB_E_BSY_MASK); in ep_recycle_rxbds()
1078 saveusbmr = in_be16(&udc->usb_regs->usb_usbmr); in qe_ep_tx()
1079 out_be16(&udc->usb_regs->usb_usbmr, in qe_ep_tx()
1118 out_be16(&udc->usb_regs->usb_usbmr, saveusbmr); in qe_ep_tx()
1128 out_be16(&udc->usb_regs->usb_usbmr, saveusbmr); in qe_ep_tx()
1964 usep = in_be16(&udc->usb_regs->usb_usep[pipe]); in ch9getstatus()
2119 usbs = in_8(&udc->usb_regs->usb_usbs); in idle_irq()
2137 out_8(&udc->usb_regs->usb_usadr, 0); in reset_irq()
2170 && (in_8(&udc->usb_regs->usb_usadr) == 0)) in tx_irq()
2171 out_8(&udc->usb_regs->usb_usadr, udc->device_address); in tx_irq()
2224 irq_src = in_be16(&udc->usb_regs->usb_usber) & in qe_udc_irq()
2225 in_be16(&udc->usb_regs->usb_usbmr); in qe_udc_irq()
2227 out_be16(&udc->usb_regs->usb_usber, irq_src); in qe_udc_irq()
2291 out_be16(&udc->usb_regs->usb_usber, 0xffff); in fsl_qe_start()
2292 out_be16(&udc->usb_regs->usb_usbmr, USB_E_DEFAULT_DEVICE); in fsl_qe_start()
2386 qe_usbregs = udc->usb_regs; in qe_udc_reg_init()
2491 udc->usb_regs = of_iomap(np, 0); in qe_udc_probe()
2492 if (!udc->usb_regs) { in qe_udc_probe()
2610 iounmap(udc->usb_regs); in qe_udc_probe()
2675 iounmap(udc->usb_regs); in qe_udc_remove()