Home
last modified time | relevance | path

Searched refs:hccr (Results 1 – 25 of 49) sorted by relevance

12

/external/u-boot/drivers/usb/host/
Dehci-pci.c26 struct ehci_hccr *hccr; in ehci_pci_init() local
30 hccr = (struct ehci_hccr *)dm_pci_map_bar(dev, in ehci_pci_init()
32 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_init()
33 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_pci_init()
36 (ulong)hccr, (ulong)hcor, in ehci_pci_init()
37 (u32)HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_pci_init()
39 *ret_hccr = hccr; in ehci_pci_init()
63 struct ehci_hccr *hccr; in ehci_pci_legacy_init() local
67 hccr = (struct ehci_hccr *)pci_map_bar(pdev, in ehci_pci_legacy_init()
69 hcor = (struct ehci_hcor *)((uintptr_t) hccr + in ehci_pci_legacy_init()
[all …]
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()
94 struct ehci_hccr *hccr; in ehci_fsl_probe() local
106 hccr = (struct ehci_hccr *)(&ehci->caplength); in ehci_fsl_probe()
108 ((void *)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_fsl_probe()
110 if (ehci_fsl_init(priv, ehci, hccr, hcor) < 0) in ehci_fsl_probe()
114 (void *)hccr, (void *)hcor, in ehci_fsl_probe()
115 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_fsl_probe()
117 return ehci_register(dev, hccr, hcor, &fsl_ehci_ops, 0, USB_INIT_HOST); in ehci_fsl_probe()
[all …]
Dxhci-pci.c17 struct xhci_hccr *hccr; in xhci_pci_init() local
21 hccr = (struct xhci_hccr *)dm_pci_map_bar(dev, in xhci_pci_init()
23 hcor = (struct xhci_hcor *)((uintptr_t) hccr + in xhci_pci_init()
24 HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_pci_init()
27 hccr, hcor, (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_pci_init()
29 *ret_hccr = hccr; in xhci_pci_init()
40 struct xhci_hccr *hccr; 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()
Dehci-atmel.c20 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
29 *hccr = (struct ehci_hccr *)ATMEL_BASE_EHCI; in ehci_hcd_init()
30 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
31 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
82 struct ehci_hccr *hccr; in ehci_atmel_probe() local
102 hccr = (struct ehci_hccr *)hcd_base; in ehci_atmel_probe()
104 ((u32)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_atmel_probe()
107 (u32)hccr, (u32)hcor, in ehci_atmel_probe()
108 (u32)HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_atmel_probe()
110 return ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST); in ehci_atmel_probe()
Dxhci-fsl.c114 struct xhci_hccr *hccr; in xhci_fsl_probe() local
139 hccr = (struct xhci_hccr *)(priv->ctx.hcd); in xhci_fsl_probe()
140 hcor = (struct xhci_hcor *)((uintptr_t) hccr in xhci_fsl_probe()
141 + HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_fsl_probe()
144 (uintptr_t)hccr, (uintptr_t)hcor, in xhci_fsl_probe()
145 (uintptr_t)HC_LENGTH(xhci_readl(&hccr->cr_capbase))); 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
198 *hccr = (struct xhci_hccr *)ctx->hcd; in xhci_hcd_init()
199 *hcor = (struct xhci_hcor *)((uintptr_t) *hccr in xhci_hcd_init()
[all …]
Dehci-marvell.c104 struct ehci_hccr *hccr; in ehci_mvebu_probe() local
128 hccr = (struct ehci_hccr *)(priv->hcd_base + 0x100); in ehci_mvebu_probe()
130 ((uintptr_t)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_mvebu_probe()
133 (uintptr_t)hccr, (uintptr_t)hcor, in ehci_mvebu_probe()
134 (uintptr_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase))); 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
211 *hccr = (struct ehci_hccr *)(MVUSB_BASE(index) + 0x100); in ehci_hcd_init()
212 *hcor = (struct ehci_hcor *)((uint32_t) *hccr in ehci_hcd_init()
213 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
[all …]
Dehci-armada100.c25 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
30 *hccr = (struct ehci_hccr *)(ARMD1_USB_HOST_BASE + 0x100); in ehci_hcd_init()
31 *hcor = (struct ehci_hcor *)((uint32_t) *hccr in ehci_hcd_init()
32 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
35 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
36 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
Dehci-spear.c37 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
53 *hccr = (struct ehci_hccr *)(ehci + 0x100); in ehci_hcd_init()
54 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init()
55 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
58 (uint32_t)*hccr, (uint32_t)*hcor, in ehci_hcd_init()
59 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); 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
73 *hccr = (struct xhci_hccr *)(OMAP_XHCI_BASE); in xhci_hcd_init()
74 *hcor = (struct xhci_hcor *)((uint32_t) *hccr in xhci_hcd_init()
75 + HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase))); in xhci_hcd_init()
78 (uint32_t)*hccr, (uint32_t)*hcor, in xhci_hcd_init()
79 (uint32_t)HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase))); in xhci_hcd_init()
Dehci-zynq.c39 struct ehci_hccr *hccr; in ehci_zynq_probe() local
46 hccr = (struct ehci_hccr *)((uint32_t)&priv->ehci->caplength); in ehci_zynq_probe()
47 hcor = (struct ehci_hcor *)((uint32_t) hccr + in ehci_zynq_probe()
48 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_zynq_probe()
72 return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); in ehci_zynq_probe()
Dehci-vf.c158 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
173 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
174 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
175 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
316 struct ehci_hccr *hccr; in ehci_usb_probe() local
335 hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_usb_probe()
336 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe()
337 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_usb_probe()
339 return ehci_register(dev, hccr, hcor, &vf_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
Dehci-mxs.c90 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
127 *hccr = (struct ehci_hccr *)usb_base; in ehci_hcd_init()
129 cap_base = ehci_readl(&(*hccr)->cr_capbase); in ehci_hcd_init()
139 struct ehci_hccr *hccr; in ehci_hcd_stop() local
152 hccr = (struct ehci_hccr *)usb_base; in ehci_hcd_stop()
153 cap_base = ehci_readl(&hccr->cr_capbase); in ehci_hcd_stop()
Dehci-mx6.c340 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
361 if (hccr && hcor) { in ehci_hcd_init()
362 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
363 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
364 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
509 struct ehci_hccr *hccr; in ehci_usb_probe() local
544 hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_usb_probe()
545 hcor = (struct ehci_hcor *)((uint32_t)hccr + in ehci_usb_probe()
546 HC_LENGTH(ehci_readl(&(hccr)->cr_capbase))); in ehci_usb_probe()
548 return ehci_register(dev, hccr, hcor, &mx6_ehci_ops, 0, priv->init_type); in ehci_usb_probe()
Dehci-msm.c97 struct ehci_hccr *hccr; in ehci_usb_probe() local
101 hccr = (struct ehci_hccr *)((phys_addr_t)&ehci->caplength); in ehci_usb_probe()
102 hcor = (struct ehci_hcor *)((phys_addr_t)hccr + in ehci_usb_probe()
103 HC_LENGTH(ehci_readl(&(hccr)->cr_capbase))); in ehci_usb_probe()
109 return ehci_register(dev, hccr, hcor, &msm_ehci_ops, 0, USB_INIT_HOST); in ehci_usb_probe()
Dxhci-dwc3.c201 struct xhci_hccr *hccr; in xhci_dwc3_probe() local
206 hccr = (struct xhci_hccr *)((uintptr_t)dev_read_addr(dev)); in xhci_dwc3_probe()
207 hcor = (struct xhci_hcor *)((uintptr_t)hccr + in xhci_dwc3_probe()
208 HC_LENGTH(xhci_readl(&(hccr)->cr_capbase))); in xhci_dwc3_probe()
214 dwc3_reg = (struct dwc3 *)((char *)(hccr) + DWC3_REG_OFFSET); in xhci_dwc3_probe()
225 return xhci_register(dev, hccr, hcor); in xhci_dwc3_probe()
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
31 *hccr = (struct ehci_hccr *)vct_hccr; in ehci_hcd_init()
Dxhci.c891 struct xhci_hccr *hccr = ctrl->hccr; in xhci_submit_root() local
893 int max_ports = HCS_MAX_PORTS(xhci_readl(&hccr->cr_hcsparams1)); in xhci_submit_root()
1192 struct xhci_hccr *hccr; in xhci_lowlevel_init() local
1198 hccr = ctrl->hccr; in xhci_lowlevel_init()
1204 val = (xhci_readl(&hccr->cr_hcsparams1) & HCS_SLOTS_MASK); in xhci_lowlevel_init()
1210 if (xhci_mem_init(ctrl, hccr, hcor) < 0) in xhci_lowlevel_init()
1213 reg = xhci_readl(&hccr->cr_hcsparams1); in xhci_lowlevel_init()
1219 reg = xhci_readl(&hccr->cr_hccparams); in xhci_lowlevel_init()
1238 reg = HC_VERSION(xhci_readl(&hccr->cr_capbase)); in xhci_lowlevel_init()
1294 struct xhci_hccr *hccr; in usb_lowlevel_init() local
[all …]
Dehci-sunxi.c49 struct ehci_hccr *hccr = (struct ehci_hccr *)devfdt_get_addr(dev); in ehci_usb_probe() local
92 reg_mask = ((uintptr_t)hccr - SUNXI_USB1_BASE) / BASE_DIST; in ehci_usb_probe()
104 hcor = (struct ehci_hcor *)((uintptr_t)hccr + in ehci_usb_probe()
105 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_usb_probe()
107 return ehci_register(dev, hccr, hcor, NULL, 0, plat->init_type); in ehci_usb_probe()
Dxhci-mem.c349 struct xhci_hccr *hccr = ctrl->hccr; in xhci_scratchpad_alloc() local
357 num_sp = HCS_MAX_SCRATCHPAD(xhci_readl(&hccr->cr_hcsparams2)); in xhci_scratchpad_alloc()
424 CTX_SIZE(readl(&ctrl->hccr->cr_hccparams)); in xhci_alloc_container_ctx()
426 ctx->size += CTX_SIZE(readl(&ctrl->hccr->cr_hccparams)); in xhci_alloc_container_ctx()
499 int xhci_mem_init(struct xhci_ctrl *ctrl, struct xhci_hccr *hccr, in xhci_mem_init() argument
533 val = xhci_readl(&hccr->cr_dboff); in xhci_mem_init()
535 ctrl->dba = (struct xhci_doorbell_array *)((char *)hccr + val); in xhci_mem_init()
538 val = xhci_readl(&hccr->cr_rtsoff); in xhci_mem_init()
540 ctrl->run_regs = (struct xhci_run_regs *)((char *)hccr + val); in xhci_mem_init()
629 (ctx->bytes + CTX_SIZE(readl(&ctrl->hccr->cr_hccparams))); in xhci_get_slot_ctx()
[all …]
Dehci-generic.c82 struct ehci_hccr *hccr; in ehci_usb_probe() local
152 hccr = map_physmem(dev_read_addr(dev), 0x100, MAP_NOCACHE); in ehci_usb_probe()
153 hcor = (struct ehci_hcor *)((uintptr_t)hccr + in ehci_usb_probe()
154 HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_usb_probe()
156 err = ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST); in ehci_usb_probe()
Dehci-faraday.c91 struct ehci_hccr *hccr; in ehci_hcd_init() local
100 hccr = (struct ehci_hccr *)&regs->usb.hccr; in ehci_hcd_init()
129 *ret_hccr = hccr; in ehci_hcd_init()
Dehci-rmobile.c62 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
123 *hccr = (struct ehci_hccr *)((uint32_t)&rehci->hciversion); in ehci_hcd_init()
124 cap_base = ehci_readl(&(*hccr)->cr_capbase); in ehci_hcd_init()
125 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + HC_LENGTH(cap_base)); in ehci_hcd_init()
Dehci-mxc.c211 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
226 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
227 *hcor = (struct ehci_hcor *)((uint32_t) *hccr + in ehci_hcd_init()
228 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
Dehci-mx5.c231 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
249 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
250 *hcor = (struct ehci_hcor *)((uint32_t)*hccr + in ehci_hcd_init()
251 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
/external/u-boot/board/htkw/mcx/
Dmcx.c43 struct ehci_hccr **hccr, struct ehci_hcor **hcor) in ehci_hcd_init() argument
45 return omap_ehci_hcd_init(index, &usbhs_bdata, hccr, hcor); in ehci_hcd_init()

12