Home
last modified time | relevance | path

Searched refs:hcor (Results 1 – 25 of 47) sorted by relevance

12

/external/u-boot/drivers/usb/host/
Dehci-fsl.c40 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
117 hcor = (struct ehci_hcor *) in ehci_fsl_probe()
122 if (ehci_fsl_init(priv, ehci, hccr, hcor) < 0) in ehci_fsl_probe()
126 (void *)hccr, (void *)hcor, in ehci_fsl_probe()
129 return ehci_register(dev, hccr, hcor, &fsl_ehci_ops, 0, USB_INIT_HOST); in ehci_fsl_probe()
158 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
177 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init()
[all …]
Dehci-pci.c28 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 …]
Dxhci-pci.c18 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()
Dxhci.c167 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 …]
Dehci-hcd.c132 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 …]
Dehci-atmel.c20 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()
Dehci-faraday.c41 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 *)&regs->usb.hcor; in ehci_hcd_init()
130 *ret_hcor = hcor; in ehci_hcd_init()
Dxhci-fsl.c115 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()
Dehci-marvell.c105 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()
Dehci-mxs.c90 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()
Dehci-armada100.c25 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()
Dehci-vct.c11 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()
Dehci-spear.c37 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()
Dxhci-omap.c51 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()
Dxhci-mvebu.c44 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()
Dehci-zynq.c40 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()
Dehci-mx5.c234 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
253 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
311 struct ehci_hcor *hcor; in ehci_usb_probe() local
341 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe()
351 return ehci_register(dev, hccr, hcor, &mx5_ehci_ops, 0, in ehci_usb_probe()
Dehci-msm.c54 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()
Dehci-vf.c158 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()
Dxhci-rcar.c77 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()
Dxhci-rockchip.c122 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()
Dxhci-dwc3.c116 struct xhci_hcor *hcor; in xhci_dwc3_probe() local
126 hcor = (struct xhci_hcor *)((uintptr_t)hccr + in xhci_dwc3_probe()
165 return xhci_register(dev, hccr, hcor); in xhci_dwc3_probe()
Dxhci-mem.c351 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()
Dehci-mx6.c368 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
389 if (hccr && hcor) { in ehci_hcd_init()
391 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
577 struct ehci_hcor *hcor; in ehci_usb_probe() local
615 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe()
618 return ehci_register(dev, hccr, hcor, &mx6_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
/external/u-boot/drivers/usb/cdns3/
Dhost.c21 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()

12