| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ehci-fsl.c | 40 struct ehci_hccr *hccr, struct ehci_hcor *hcor); 43 struct ehci_hccr *hccr, struct ehci_hcor *hcor); 85 if (ehci_fsl_init(priv, ehci, priv->ehci.hccr, priv->ehci.hcor) < 0) in ehci_fsl_init_after_reset() 100 struct ehci_hcor *hcor; in ehci_fsl_probe() local 116 hcor = (struct ehci_hcor *) in ehci_fsl_probe() 119 if (ehci_fsl_init(priv, ehci, hccr, hcor) < 0) in ehci_fsl_probe() 123 (void *)hccr, (void *)hcor, in ehci_fsl_probe() 126 return ehci_register(dev, hccr, hcor, &fsl_ehci_ops, 0, USB_INIT_HOST); in ehci_fsl_probe() 155 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 172 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init() [all …]
|
| H A D | ehci-pci.c | 29 struct ehci_hcor *hcor; in ehci_pci_init() local 39 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_init() 43 (ulong)hccr, (ulong)hcor, in ehci_pci_init() 47 *ret_hcor = hcor; in ehci_pci_init() 73 struct ehci_hcor *hcor; in ehci_pci_legacy_init() local 78 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_legacy_init() 82 (u32)hccr, (u32)hcor, in ehci_pci_legacy_init() 86 *ret_hcor = hcor; in ehci_pci_legacy_init() 131 struct ehci_hcor *hcor; in ehci_pci_probe() local 134 ret = ehci_pci_init(dev, &hccr, &hcor); in ehci_pci_probe() [all …]
|
| H A D | xhci-keystone.c | 39 struct xhci_hcor *hcor; member 93 struct xhci_hcor *hcor; in xhci_hcd_init() local 135 hcor = (struct xhci_hcor *)((uint32_t)hcd + in xhci_hcd_init() 139 (u32)hcd, (u32)hcor, in xhci_hcd_init() 145 keystone.hcor = hcor; in xhci_hcd_init() 148 *ret_hcor = hcor; in xhci_hcd_init() 156 struct xhci_hcor *hcor; in keystone_xhci_phy_suspend() local 163 hcor = keystone.hcor; in keystone_xhci_phy_suspend() 205 portsc_1 = (uint32_t *)(&hcor->portregs[0].or_portsc); in keystone_xhci_phy_suspend() 206 portsc_2 = (uint32_t *)(&hcor->portregs[1].or_portsc); in keystone_xhci_phy_suspend()
|
| H A D | xhci.c | 167 static int xhci_start(struct xhci_hcor *hcor) in xhci_start() argument 173 temp = xhci_readl(&hcor->or_usbcmd); in xhci_start() 175 xhci_writel(&hcor->or_usbcmd, temp); in xhci_start() 181 ret = handshake(&hcor->or_usbsts, STS_HALT, 0, XHCI_MAX_HALT_USEC); in xhci_start() 195 static int xhci_reset(struct xhci_hcor *hcor) in xhci_reset() argument 202 debug("// Halt the HC: %p\n", hcor); in xhci_reset() 203 state = xhci_readl(&hcor->or_usbsts) & STS_HALT; in xhci_reset() 205 cmd = xhci_readl(&hcor->or_usbcmd); in xhci_reset() 207 xhci_writel(&hcor->or_usbcmd, cmd); in xhci_reset() 210 ret = handshake(&hcor->or_usbsts, in xhci_reset() [all …]
|
| H A D | xhci-pci.c | 19 struct xhci_hcor *hcor; in xhci_pci_init() local 24 hcor = (struct xhci_hcor *)((uintptr_t) hccr + in xhci_pci_init() 28 hccr, hcor, (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_pci_init() 31 *ret_hcor = hcor; in xhci_pci_init() 42 struct xhci_hcor *hcor; in xhci_pci_probe() local 44 xhci_pci_init(dev, &hccr, &hcor); in xhci_pci_probe() 46 return xhci_register(dev, hccr, hcor); in xhci_pci_probe()
|
| H A D | ehci-hcd.c | 132 reg_ptr = (uint32_t *)((u8 *)&ctrl->hcor->or_usbcmd + USBMODE); in ehci_set_usbmode() 160 return (uint32_t *)&ctrl->hcor->or_portsc[port]; in ehci_get_portsc_register() 184 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_reset() 186 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_reset() 187 ret = handshake((uint32_t *)&ctrl->hcor->or_usbcmd, in ehci_reset() 198 cmd = ehci_readl(&ctrl->hcor->or_txfilltuning); in ehci_reset() 201 ehci_writel(&ctrl->hcor->or_txfilltuning, cmd); in ehci_reset() 213 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_shutdown() 218 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown() 219 ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0, in ehci_shutdown() [all …]
|
| H A D | ehci-atmel.c | 21 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 31 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 84 struct ehci_hcor *hcor; in ehci_atmel_probe() local 104 hcor = (struct ehci_hcor *) in ehci_atmel_probe() 108 (u32)hccr, (u32)hcor, in ehci_atmel_probe() 111 return ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST); in ehci_atmel_probe()
|
| H A D | ehci-faraday.c | 42 ret = (void __iomem *)((ulong)ctrl->hcor - 0x10); in faraday_ehci_get_port_speed() 76 return (uint32_t *)((uint8_t *)ctrl->hcor + 0x20); in faraday_ehci_get_portsc_register() 93 struct ehci_hcor *hcor; in ehci_hcd_init() local 102 hcor = (struct ehci_hcor *)®s->usb.hcor; in ehci_hcd_init() 131 *ret_hcor = hcor; in ehci_hcd_init()
|
| H A D | xhci-fsl.c | 115 struct xhci_hcor *hcor; in xhci_fsl_probe() local 140 hcor = (struct xhci_hcor *)((uintptr_t) hccr in xhci_fsl_probe() 144 (uintptr_t)hccr, (uintptr_t)hcor, in xhci_fsl_probe() 147 return xhci_register(dev, hccr, hcor); in xhci_fsl_probe() 176 int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor) in xhci_hcd_init() argument 199 *hcor = (struct xhci_hcor *)((uintptr_t) *hccr in xhci_hcd_init() 203 (uintptr_t)*hccr, (uintptr_t)*hcor, in xhci_hcd_init()
|
| H A D | ehci-marvell.c | 106 struct ehci_hcor *hcor; in ehci_mvebu_probe() local 130 hcor = (struct ehci_hcor *) in ehci_mvebu_probe() 134 (uintptr_t)hccr, (uintptr_t)hcor, in ehci_mvebu_probe() 137 return ehci_register(dev, hccr, hcor, &marvell_ehci_ops, 0, in ehci_mvebu_probe() 208 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 213 *hcor = (struct ehci_hcor *)((uint32_t) *hccr in ehci_hcd_init() 217 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
| H A D | ehci-mxs.c | 91 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 131 *hcor = (struct ehci_hcor *)(usb_base + HC_LENGTH(cap_base)); in ehci_hcd_init() 141 struct ehci_hcor *hcor; in ehci_hcd_stop() local 155 hcor = (struct ehci_hcor *)(usb_base + HC_LENGTH(cap_base)); in ehci_hcd_stop() 157 tmp = ehci_readl(&hcor->or_usbcmd); in ehci_hcd_stop() 159 ehci_writel(&hcor->or_usbcmd, tmp); in ehci_hcd_stop()
|
| H A D | ehci-vct.c | 12 int vct_ehci_hcd_init(u32 *hccr, u32 *hcor); 19 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 33 *hcor = (struct ehci_hcor *)vct_hcor; in ehci_hcd_init()
|
| H A D | ehci-armada100.c | 26 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 32 *hcor = (struct ehci_hcor *)((uint32_t) *hccr in ehci_hcd_init() 36 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
| H A D | ehci-spear.c | 38 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 55 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init() 59 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
| H A D | xhci-omap.c | 54 int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor) in xhci_hcd_init() argument 77 *hcor = (struct xhci_hcor *)((uint32_t) *hccr in xhci_hcd_init() 81 (uint32_t)*hccr, (uint32_t)*hcor, in xhci_hcd_init()
|
| H A D | xhci-mvebu.c | 47 struct xhci_hcor *hcor; in xhci_usb_probe() local 53 hcor = (struct xhci_hcor *)((uintptr_t)ctx->hcd + len); in xhci_usb_probe() 67 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
|
| H A D | ehci-zynq.c | 41 struct ehci_hcor *hcor; in ehci_zynq_probe() local 48 hcor = (struct ehci_hcor *)((uint32_t) hccr + in ehci_zynq_probe() 73 return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); in ehci_zynq_probe()
|
| H A D | ehci-mx5.c | 235 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 254 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 312 struct ehci_hcor *hcor; in ehci_usb_probe() local 342 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe() 352 return ehci_register(dev, hccr, hcor, &mx5_ehci_ops, 0, in ehci_usb_probe()
|
| H A D | ehci-sunxi.c | 40 struct ehci_hcor *hcor; in ehci_usb_probe() local 70 hcor = (struct ehci_hcor *)((uintptr_t)hccr + in ehci_usb_probe() 73 return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); in ehci_usb_probe()
|
| H A D | ehci-vf.c | 159 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 175 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 318 struct ehci_hcor *hcor; in ehci_usb_probe() local 337 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe() 340 return ehci_register(dev, hccr, hcor, &vf_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
|
| H A D | xhci-zynqmp.c | 101 struct xhci_hcor *hcor; in xhci_usb_probe() local 113 hcor = (struct xhci_hcor *)((ulong)ctx->hcd + in xhci_usb_probe() 116 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
|
| H A D | ehci-msm.c | 97 struct ehci_hcor *hcor; in ehci_usb_probe() local 101 hcor = (struct ehci_hcor *)((phys_addr_t)hccr + in ehci_usb_probe() 108 return ehci_register(dev, hccr, hcor, &msm_ehci_ops, 0, USB_INIT_HOST); in ehci_usb_probe()
|
| H A D | xhci-mem.c | 351 struct xhci_hcor *hcor = ctrl->hcor; in xhci_scratchpad_alloc() local 376 page_size = xhci_readl(&hcor->or_pagesize) & 0xffff; in xhci_scratchpad_alloc() 504 struct xhci_hcor *hcor) in xhci_mem_init() argument 523 xhci_writeq(&hcor->or_dcbaap, val_64); in xhci_mem_init() 530 val_64 = xhci_readq(&hcor->or_crcr); in xhci_mem_init() 534 xhci_writeq(&hcor->or_crcr, val_64); in xhci_mem_init() 601 xhci_writel(&hcor->or_dnctrl, 0x0); in xhci_mem_init()
|
| H A D | ehci-mx6.c | 369 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 390 if (hccr && hcor) { in ehci_hcd_init() 392 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 578 struct ehci_hcor *hcor; in ehci_usb_probe() local 616 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe() 619 return ehci_register(dev, hccr, hcor, &mx6_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/cdns3/ |
| H A D | host.c | 21 struct xhci_hcor *hcor; in __cdns3_host_init() local 27 hcor = (struct xhci_hcor *)(cdns->xhci_regs + in __cdns3_host_init() 30 return xhci_register(cdns->dev, hccr, hcor); in __cdns3_host_init()
|