Lines Matching refs:usb_regs
148 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eprx_stall_change()
155 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eprx_stall_change()
165 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eptx_stall_change()
172 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eptx_stall_change()
193 clrsetbits_be16(&udc->usb_regs->usb_usep[epnum], in qe_eprx_nack()
197 clrbits16(&udc->usb_regs->usb_usbmr, in qe_eprx_nack()
210 clrsetbits_be16(&udc->usb_regs->usb_usep[ep->epnum], in qe_eprx_normal()
214 out_be16(&udc->usb_regs->usb_usber, in qe_eprx_normal()
216 setbits16(&udc->usb_regs->usb_usbmr, in qe_eprx_normal()
258 out_8(&udc->usb_regs->usb_uscom, in qe_ep_flushtxfifo()
274 out_8(&udc->usb_regs->usb_uscom, in qe_ep_filltxfifo()
317 tmpusep = in_be16(&udc->usb_regs->usb_usep[pipe_num]); in qe_ep_reset()
334 out_be16(&udc->usb_regs->usb_usep[pipe_num], tmpusep); in qe_ep_reset()
506 out_be16(&udc->usb_regs->usb_usep[pipe_num], usep); in qe_ep_register_init()
693 setbits8(&udc->usb_regs->usb_usmod, USB_MODE_EN); in qe_usb_enable()
698 clrbits8(&udc->usb_regs->usb_usmod, USB_MODE_EN); in qe_usb_disable()
776 if (in_be16(&udc->usb_regs->usb_usber) & USB_E_BSY_MASK) in ep_recycle_rxbds()
777 out_be16(&udc->usb_regs->usb_usber, USB_E_BSY_MASK); in ep_recycle_rxbds()
1080 saveusbmr = in_be16(&udc->usb_regs->usb_usbmr); in qe_ep_tx()
1081 out_be16(&udc->usb_regs->usb_usbmr, in qe_ep_tx()
1120 out_be16(&udc->usb_regs->usb_usbmr, saveusbmr); in qe_ep_tx()
1130 out_be16(&udc->usb_regs->usb_usbmr, saveusbmr); in qe_ep_tx()
1973 usep = in_be16(&udc->usb_regs->usb_usep[pipe]); in ch9getstatus()
2128 usbs = in_8(&udc->usb_regs->usb_usbs); in idle_irq()
2146 out_8(&udc->usb_regs->usb_usadr, 0); in reset_irq()
2179 && (in_8(&udc->usb_regs->usb_usadr) == 0)) in tx_irq()
2180 out_8(&udc->usb_regs->usb_usadr, udc->device_address); in tx_irq()
2233 irq_src = in_be16(&udc->usb_regs->usb_usber) & in qe_udc_irq()
2234 in_be16(&udc->usb_regs->usb_usbmr); in qe_udc_irq()
2236 out_be16(&udc->usb_regs->usb_usber, irq_src); in qe_udc_irq()
2299 out_be16(&udc->usb_regs->usb_usber, 0xffff); in fsl_qe_start()
2300 out_be16(&udc->usb_regs->usb_usbmr, USB_E_DEFAULT_DEVICE); in fsl_qe_start()
2394 qe_usbregs = udc->usb_regs; in qe_udc_reg_init()
2499 udc->usb_regs = of_iomap(np, 0); in qe_udc_probe()
2500 if (!udc->usb_regs) { in qe_udc_probe()
2617 iounmap(udc->usb_regs); in qe_udc_probe()
2682 iounmap(udc->usb_regs); in qe_udc_remove()