Home
last modified time | relevance | path

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

123

/openbmc/u-boot/drivers/usb/host/
H A Dehci-fsl.c39 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 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 …]
H A 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()
H A Dxhci.c166 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 Dehci-hcd.c131 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 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dehci-aspeed.c38 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 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dxhci-zynqmp.c98 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 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()
H A 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()
H A Dxhci-dwc3.c116 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 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()
H A Dehci-mx6.c340 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 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()
H A Dxhci-mem.c350 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()

123