Home
last modified time | relevance | path

Searched refs:hcd (Results 1 – 25 of 32) sorted by relevance

12

/u-boot/drivers/usb/isp1760/
A Disp1760-hcd.c43 return hcd->hcd_priv; in hcd_to_priv()
844 return priv_init(hcd); in isp1760_hc_setup()
1157 free_mem(hcd, qtd); in collect_qtds()
1261 if (!hcd) { in schedule_ptds()
1531 schedule_ptds(hcd); in handle_done_ptds()
1909 schedule_ptds(hcd); in isp1760_urb_enqueue()
2001 schedule_ptds(hcd); in isp1760_urb_dequeue()
2427 struct usb_hcd *hcd = &host->hcd; in isp1760_hcd_register() local
2430 priv->hcd = hcd; in isp1760_hcd_register()
2432 hcd->hcd_priv = priv; in isp1760_hcd_register()
[all …]
A Disp1760-core.c32 struct isp1760_hcd *hcd = &isp->hcd; in isp1760_init_core() local
101 struct isp1760_hcd *hcd = &isp->hcd; in isp1760_set_pullup() local
311 struct isp1760_hcd *hcd; in isp1760_register() local
318 hcd = &isp->hcd; in isp1760_register()
329 if (hcd->is_isp1763) { in isp1760_register()
338 if (IS_ERR(hcd->base)) in isp1760_register()
339 return PTR_ERR(hcd->base); in isp1760_register()
342 if (IS_ERR(hcd->regs)) in isp1760_register()
350 hcd->fields[i] = f; in isp1760_register()
353 if (hcd->is_isp1763) in isp1760_register()
[all …]
A Disp1760-uboot.c35 return usb_urb_submit_control(&host->hcd, &host->urb, &host->hep, udev, in isp1760_msg_submit_control()
45 return usb_urb_submit_bulk(&host->hcd, &host->urb, &host->hep, udev, in isp1760_msg_submit_bulk()
55 return usb_urb_submit_irq(&host->hcd, &host->urb, &host->hep, udev, in isp1760_msg_submit_irq()
62 struct isp1760_hcd *priv = host->hcd.hcd_priv; in isp1760_get_max_xfer_size()
A Disp1760-uboot.h19 struct usb_hcd hcd; member
A DMakefile2 isp1760-y := isp1760-core.o isp1760-if.o isp1760-uboot.o isp1760-hcd.o
A Disp1760-hcd.h47 struct usb_hcd *hcd; member
/u-boot/include/linux/usb/
A Dusb_urb_compat.h14 int (*urb_enqueue)(struct usb_hcd *hcd, struct urb *urb,
16 int (*urb_dequeue)(struct usb_hcd *hcd, struct urb *urb, int status);
17 int (*hub_control)(struct usb_hcd *hcd, struct usb_device *dev,
62 #define usb_hcd_link_urb_to_ep(hcd, urb) ({ \ argument
66 #define usb_hcd_unlink_urb_from_ep(hcd, urb) list_del_init(&urb->urb_list) argument
69 static inline void usb_hcd_giveback_urb(struct usb_hcd *hcd, in usb_hcd_giveback_urb() argument
78 static inline int usb_hcd_unmap_urb_for_dma(struct usb_hcd *hcd, in usb_hcd_unmap_urb_for_dma() argument
93 int usb_urb_submit_control(struct usb_hcd *hcd, struct urb *urb,
99 int usb_urb_submit_bulk(struct usb_hcd *hcd, struct urb *urb,
103 int usb_urb_submit_irq(struct usb_hcd *hcd, struct urb *urb,
[all …]
A Dxhci-fsl.h52 struct xhci_hccr *hcd; member
/u-boot/drivers/usb/common/
A Dusb_urb.c92 int usb_urb_submit(struct usb_hcd *hcd, struct urb *urb) in usb_urb_submit() argument
94 const struct usb_urb_ops *ops = hcd->urb_ops; in usb_urb_submit()
101 ret = ops->urb_enqueue(hcd, urb, 0); in usb_urb_submit()
111 ops->isr(0, hcd); in usb_urb_submit()
115 ops->urb_dequeue(hcd, urb, -ETIME); in usb_urb_submit()
126 const struct usb_urb_ops *ops = hcd->urb_ops; in usb_urb_submit_control()
135 return ops->hub_control(hcd, dev, pipe, buffer, len, in usb_urb_submit_control()
139 return usb_urb_submit(hcd, urb); in usb_urb_submit_control()
149 return usb_urb_submit(hcd, urb); in usb_urb_submit_bulk()
152 int usb_urb_submit_irq(struct usb_hcd *hcd, struct urb *urb, in usb_urb_submit_irq() argument
[all …]
/u-boot/drivers/usb/musb-new/
A Dmusb_host.h21 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() argument
23 return (struct musb *) (hcd->hcd_priv); in hcd_to_musb()
67 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf);
68 extern int musb_hub_control(struct usb_hcd *hcd,
87 int musb_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);
88 int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
A Dmusb_uboot.c67 static int submit_urb(struct usb_hcd *hcd, struct urb *urb) in submit_urb() argument
69 struct musb *host = hcd->hcd_priv; in submit_urb()
73 ret = musb_urb_enqueue(hcd, urb, 0); in submit_urb()
88 musb_urb_dequeue(hcd, urb, -ETIME); in submit_urb()
104 return submit_urb(&host->hcd, &host->urb); in _musb_submit_control_msg()
112 return submit_urb(&host->hcd, &host->urb); in _musb_submit_bulk_msg()
121 return submit_urb(&host->hcd, &host->urb); in _musb_submit_int_msg()
148 ret = musb_urb_enqueue(&host->hcd, &queue->urb, 0); in _musb_create_int_queue()
166 musb_urb_dequeue(&host->hcd, &queue->urb, -ETIME); in _musb_destroy_int_queue()
245 host->hcd.hcd_priv = host->host; in musb_lowlevel_init()
A Dmusb_uboot.h17 struct usb_hcd hcd; member
A Dmusb_host.c1919 struct usb_hcd *hcd, argument
1963 usb_hcd_unlink_urb_from_ep(hcd, urb);
2057 if (parent != hcd->self.root_hub) {
2114 usb_hcd_unlink_urb_from_ep(hcd, urb);
2189 struct usb_hcd *hcd, argument
2306 struct musb *musb = hcd_to_musb(hcd);
2313 struct musb *musb = hcd_to_musb(hcd);
2318 hcd->state = HC_STATE_RUNNING;
2325 musb_stop(hcd_to_musb(hcd));
2326 hcd->state = HC_STATE_HALT;
[all …]
A Dmusb_core.c390 hcd->self.is_b_host = 0; in musb_hnp_stop()
715 hcd->self.is_b_host = 1; in musb_stage0_irq()
723 hcd->self.is_b_host = 0; in musb_stage0_irq()
730 if (hcd->status_urb) in musb_stage0_irq()
731 usb_hcd_poll_rh_status(hcd); in musb_stage0_irq()
1840 struct usb_hcd *hcd; in allocate_instance() local
1843 if (!hcd) in allocate_instance()
1847 musb = hcd_to_musb(hcd); in allocate_instance()
1858 hcd->uses_new_polling = 1; in allocate_instance()
1859 hcd->has_tt = 1; in allocate_instance()
[all …]
/u-boot/drivers/usb/host/
A Dxhci-brcm.c36 struct xhci_hccr *hcd; in xhci_brcm_probe() local
44 hcd = dev_read_addr_ptr(dev); in xhci_brcm_probe()
45 if (!hcd) { in xhci_brcm_probe()
50 plat->hc_base = hcd; in xhci_brcm_probe()
51 len = HC_LENGTH(xhci_readl(&hcd->cr_capbase)); in xhci_brcm_probe()
66 ret = xhci_register(dev, hcd, hcor); in xhci_brcm_probe()
A Dxhci-mvebu.c29 struct xhci_hccr *hcd; member
49 ctx->hcd = (struct xhci_hccr *)plat->hcd_base; in xhci_usb_probe()
50 len = HC_LENGTH(xhci_readl(&ctx->hcd->cr_capbase)); in xhci_usb_probe()
51 hcor = (struct xhci_hcor *)((uintptr_t)ctx->hcd + len); in xhci_usb_probe()
65 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
A Dehci-npcm.c17 struct ehci_hccr *hcd; member
84 priv->hcd = (struct ehci_hccr *)dev_read_addr_ptr(dev); in npcm_ehci_probe()
85 debug("USB HCD @0x%p\n", priv->hcd); in npcm_ehci_probe()
86 hcor = (struct ehci_hcor *)((uintptr_t)priv->hcd + in npcm_ehci_probe()
87 HC_LENGTH(ehci_readl(&priv->hcd->cr_capbase))); in npcm_ehci_probe()
89 return ehci_register(dev, priv->hcd, hcor, NULL, 0, type); in npcm_ehci_probe()
A Dxhci-rcar.c44 struct xhci_hccr *hcd; member
50 void __iomem *regs = (void __iomem *)ctx->hcd; in xhci_rcar_download_fw()
96 ctx->hcd = (struct xhci_hccr *)plat->hcd_base; in xhci_rcar_probe()
97 len = HC_LENGTH(xhci_readl(&ctx->hcd->cr_capbase)); in xhci_rcar_probe()
98 hcor = (struct xhci_hcor *)((uintptr_t)ctx->hcd + len); in xhci_rcar_probe()
107 ret = xhci_register(dev, ctx->hcd, hcor); in xhci_rcar_probe()
A Dxhci-exynos5.c52 struct xhci_hccr *hcd; member
214 ctx->hcd = (struct xhci_hccr *)plat->hcd_base; in xhci_usb_probe()
216 ctx->dwc3_reg = (struct dwc3 *)((char *)(ctx->hcd) + DWC3_REG_OFFSET); in xhci_usb_probe()
217 hcor = (struct xhci_hcor *)((uint32_t)ctx->hcd + in xhci_usb_probe()
218 HC_LENGTH(xhci_readl(&ctx->hcd->cr_capbase))); in xhci_usb_probe()
230 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe()
A Dxhci-mtk.c75 struct xhci_hccr *hcd; member
96 void __iomem *mac = (void __iomem *)mtk->hcd; in xhci_mtk_set_frame_interval()
206 mtk->hcd = devfdt_remap_addr_name(dev, "mac"); in xhci_mtk_ofdata_get()
207 if (!mtk->hcd) { in xhci_mtk_ofdata_get()
218 dev_info(dev, "hcd: 0x%p, ippc: 0x%p\n", mtk->hcd, mtk->ippc); in xhci_mtk_ofdata_get()
328 hcor = (struct xhci_hcor *)((uintptr_t)mtk->hcd + in xhci_mtk_probe()
329 HC_LENGTH(xhci_readl(&mtk->hcd->cr_capbase))); in xhci_mtk_probe()
331 return xhci_register(dev, mtk->hcd, hcor); in xhci_mtk_probe()
A Dehci-exynos.c44 struct ehci_hccr *hcd; member
222 ctx->hcd = (struct ehci_hccr *)plat->hcd_base; in ehci_usb_probe()
230 hcor = (struct ehci_hcor *)((uint32_t)ctx->hcd + in ehci_usb_probe()
231 HC_LENGTH(ehci_readl(&ctx->hcd->cr_capbase))); in ehci_usb_probe()
233 return ehci_register(dev, ctx->hcd, hcor, NULL, 0, USB_INIT_HOST); in ehci_usb_probe()
A Dxhci-omap.c57 ctx->hcd = (struct xhci_hccr *)OMAP_XHCI_BASE; in xhci_hcd_init()
58 ctx->dwc3_reg = (struct dwc3 *)((char *)(ctx->hcd) + DWC3_REG_OFFSET); in xhci_hcd_init()
A DMakefile16 obj-$(CONFIG_USB_OHCI_NEW) += ohci-hcd.o
19 obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
26 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
A Dxhci-fsl.c122 priv->ctx.hcd = (struct xhci_hccr *)priv->hcd_base; in xhci_fsl_probe()
134 hccr = (struct xhci_hccr *)(priv->ctx.hcd); in xhci_fsl_probe()
/u-boot/drivers/usb/mtu3/
A Dmtu3_plat.c280 hcor = (struct xhci_hcor *)((uintptr_t)u3h->hcd + in mtu3_host_probe()
281 HC_LENGTH(xhci_readl(&u3h->hcd->cr_capbase))); in mtu3_host_probe()
283 return xhci_register(dev, u3h->hcd, hcor); in mtu3_host_probe()

Completed in 54 milliseconds

12