/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-fsl.c | 39 struct ehci_hccr *hccr, struct ehci_hcor *hcor); 42 struct ehci_hccr *hccr, struct ehci_hcor *hcor); 80 if (ehci_fsl_init(priv, ehci, priv->ehci.hccr, priv->ehci.hcor) < 0) in ehci_fsl_init_after_reset() 95 struct ehci_hcor *hcor; in ehci_fsl_probe() local 108 hcor = (struct ehci_hcor *) in ehci_fsl_probe() 113 if (ehci_fsl_init(priv, ehci, hccr, hcor) < 0) in ehci_fsl_probe() 117 (void *)hccr, (void *)hcor, in ehci_fsl_probe() 120 return ehci_register(dev, hccr, hcor, &fsl_ehci_ops, 0, USB_INIT_HOST); in ehci_fsl_probe() 149 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 168 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init() [all …]
|
H A D | ehci-pci.c | 28 struct ehci_hcor *hcor; in ehci_pci_init() local 38 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_init() 42 (ulong)hccr, (ulong)hcor, in ehci_pci_init() 46 *ret_hcor = hcor; in ehci_pci_init() 72 struct ehci_hcor *hcor; in ehci_pci_legacy_init() local 77 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_legacy_init() 81 (u32)hccr, (u32)hcor, in ehci_pci_legacy_init() 85 *ret_hcor = hcor; in ehci_pci_legacy_init() 130 struct ehci_hcor *hcor; in ehci_pci_probe() local 133 ret = ehci_pci_init(dev, &hccr, &hcor); in ehci_pci_probe() [all …]
|
H A D | xhci-pci.c | 18 struct xhci_hcor *hcor; in xhci_pci_init() local 23 hcor = (struct xhci_hcor *)((uintptr_t) hccr + in xhci_pci_init() 27 hccr, hcor, (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_pci_init() 30 *ret_hcor = hcor; in xhci_pci_init() 41 struct xhci_hcor *hcor; in xhci_pci_probe() local 43 xhci_pci_init(dev, &hccr, &hcor); in xhci_pci_probe() 45 return xhci_register(dev, hccr, hcor); in xhci_pci_probe()
|
H A D | xhci.c | 166 static int xhci_start(struct xhci_hcor *hcor) in xhci_start() argument 172 temp = xhci_readl(&hcor->or_usbcmd); in xhci_start() 174 xhci_writel(&hcor->or_usbcmd, temp); in xhci_start() 180 ret = handshake(&hcor->or_usbsts, STS_HALT, 0, XHCI_MAX_HALT_USEC); in xhci_start() 194 static int xhci_reset(struct xhci_hcor *hcor) in xhci_reset() argument 201 debug("// Halt the HC: %p\n", hcor); in xhci_reset() 202 state = xhci_readl(&hcor->or_usbsts) & STS_HALT; in xhci_reset() 204 cmd = xhci_readl(&hcor->or_usbcmd); in xhci_reset() 206 xhci_writel(&hcor->or_usbcmd, cmd); in xhci_reset() 209 ret = handshake(&hcor->or_usbsts, in xhci_reset() [all …]
|
H A D | ehci-hcd.c | 131 reg_ptr = (uint32_t *)((u8 *)&ctrl->hcor->or_usbcmd + USBMODE); in ehci_set_usbmode() 159 return (uint32_t *)&ctrl->hcor->or_portsc[port]; in ehci_get_portsc_register() 183 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_reset() 185 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_reset() 186 ret = handshake((uint32_t *)&ctrl->hcor->or_usbcmd, in ehci_reset() 197 cmd = ehci_readl(&ctrl->hcor->or_txfilltuning); in ehci_reset() 200 ehci_writel(&ctrl->hcor->or_txfilltuning, cmd); in ehci_reset() 212 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_shutdown() 217 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown() 218 ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0, in ehci_shutdown() [all …]
|
H A D | ehci-atmel.c | 20 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 30 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 83 struct ehci_hcor *hcor; in ehci_atmel_probe() local 103 hcor = (struct ehci_hcor *) in ehci_atmel_probe() 107 (u32)hccr, (u32)hcor, in ehci_atmel_probe() 110 return ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST); in ehci_atmel_probe()
|
H A D | ehci-faraday.c | 41 ret = (void __iomem *)((ulong)ctrl->hcor - 0x10); in faraday_ehci_get_port_speed() 75 return (uint32_t *)((uint8_t *)ctrl->hcor + 0x20); in faraday_ehci_get_portsc_register() 92 struct ehci_hcor *hcor; in ehci_hcd_init() local 101 hcor = (struct ehci_hcor *)®s->usb.hcor; in ehci_hcd_init() 130 *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 | 105 struct ehci_hcor *hcor; in ehci_mvebu_probe() local 129 hcor = (struct ehci_hcor *) in ehci_mvebu_probe() 133 (uintptr_t)hccr, (uintptr_t)hcor, in ehci_mvebu_probe() 136 return ehci_register(dev, hccr, hcor, &marvell_ehci_ops, 0, in ehci_mvebu_probe() 207 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 212 *hcor = (struct ehci_hcor *)((uint32_t) *hccr in ehci_hcd_init() 216 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
H A D | ehci-mxs.c | 90 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 130 *hcor = (struct ehci_hcor *)(usb_base + HC_LENGTH(cap_base)); in ehci_hcd_init() 140 struct ehci_hcor *hcor; in ehci_hcd_stop() local 154 hcor = (struct ehci_hcor *)(usb_base + HC_LENGTH(cap_base)); in ehci_hcd_stop() 156 tmp = ehci_readl(&hcor->or_usbcmd); in ehci_hcd_stop() 158 ehci_writel(&hcor->or_usbcmd, tmp); in ehci_hcd_stop()
|
H A D | ehci-aspeed.c | 38 struct ehci_hcor *hcor; in ehci_aspeed_probe() local 61 hcor = (struct ehci_hcor *) in ehci_aspeed_probe() 65 (u32)hccr, (u32)hcor, in ehci_aspeed_probe() 68 return ehci_register(dev, hccr, hcor, &aspeed_ehci_ops, 0, USB_INIT_HOST); in ehci_aspeed_probe()
|
H A D | ehci-armada100.c | 25 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() 35 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
H A D | ehci-vct.c | 11 int vct_ehci_hcd_init(u32 *hccr, u32 *hcor); 18 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 32 *hcor = (struct ehci_hcor *)vct_hcor; in ehci_hcd_init()
|
H A D | ehci-spear.c | 37 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 54 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init() 58 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
|
H A D | xhci-omap.c | 51 int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor) in xhci_hcd_init() argument 74 *hcor = (struct xhci_hcor *)((uint32_t) *hccr in xhci_hcd_init() 78 (uint32_t)*hccr, (uint32_t)*hcor, in xhci_hcd_init()
|
H A D | xhci-mvebu.c | 44 struct xhci_hcor *hcor; in xhci_usb_probe() local 50 hcor = (struct xhci_hcor *)((uintptr_t)ctx->hcd + len); in xhci_usb_probe() 64 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
|
H A D | ehci-zynq.c | 40 struct ehci_hcor *hcor; in ehci_zynq_probe() local 47 hcor = (struct ehci_hcor *)((uint32_t) hccr + in ehci_zynq_probe() 72 return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); in ehci_zynq_probe()
|
H A D | xhci-zynqmp.c | 98 struct xhci_hcor *hcor; in xhci_usb_probe() local 110 hcor = (struct xhci_hcor *)((ulong)ctx->hcd + in xhci_usb_probe() 113 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
|
H A D | ehci-msm.c | 54 struct ehci_hcor *hcor; in ehci_usb_probe() local 58 hcor = (struct ehci_hcor *)((phys_addr_t)hccr + in ehci_usb_probe() 69 return ehci_register(dev, hccr, hcor, &msm_ehci_ops, 0, in ehci_usb_probe()
|
H A D | ehci-vf.c | 158 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 174 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 317 struct ehci_hcor *hcor; in ehci_usb_probe() local 336 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe() 339 return ehci_register(dev, hccr, hcor, &vf_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
|
H A D | xhci-dwc3.c | 116 struct xhci_hcor *hcor; in xhci_dwc3_probe() local 124 hcor = (struct xhci_hcor *)((uintptr_t)hccr + in xhci_dwc3_probe() 142 return xhci_register(dev, hccr, hcor); in xhci_dwc3_probe()
|
H A D | xhci-rcar.c | 77 struct xhci_hcor *hcor; in xhci_rcar_probe() local 94 hcor = (struct xhci_hcor *)((uintptr_t)ctx->hcd + len); in xhci_rcar_probe() 103 ret = xhci_register(dev, ctx->hcd, hcor); in xhci_rcar_probe()
|
H A D | ehci-mx6.c | 340 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument 361 if (hccr && hcor) { in ehci_hcd_init() 363 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init() 512 struct ehci_hcor *hcor; in ehci_usb_probe() local 550 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe() 553 return ehci_register(dev, hccr, hcor, &mx6_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
|
H A D | xhci-rockchip.c | 122 struct xhci_hcor *hcor; in xhci_usb_probe() local 127 hcor = (struct xhci_hcor *)((uint64_t)ctx->hcd + in xhci_usb_probe() 144 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
|
H A D | xhci-mem.c | 350 struct xhci_hcor *hcor = ctrl->hcor; in xhci_scratchpad_alloc() local 375 page_size = xhci_readl(&hcor->or_pagesize) & 0xffff; in xhci_scratchpad_alloc() 503 struct xhci_hcor *hcor) in xhci_mem_init() argument 522 xhci_writeq(&hcor->or_dcbaap, val_64); in xhci_mem_init() 529 val_64 = xhci_readq(&hcor->or_crcr); in xhci_mem_init() 533 xhci_writeq(&hcor->or_crcr, val_64); in xhci_mem_init() 600 xhci_writel(&hcor->or_dnctrl, 0x0); in xhci_mem_init()
|