Lines Matching refs:hcd

66 static int mv_ehci_reset(struct usb_hcd *hcd)  in mv_ehci_reset()  argument
68 struct device *dev = hcd->self.controller; in mv_ehci_reset()
69 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_reset()
77 hcd->has_tt = 1; in mv_ehci_reset()
79 retval = ehci_setup(hcd); in mv_ehci_reset()
96 struct usb_hcd *hcd; in mv_ehci_probe() local
106 hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, "mv ehci"); in mv_ehci_probe()
107 if (!hcd) in mv_ehci_probe()
110 platform_set_drvdata(pdev, hcd); in mv_ehci_probe()
111 ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_probe()
155 hcd->rsrc_start = r->start; in mv_ehci_probe()
156 hcd->rsrc_len = resource_size(r); in mv_ehci_probe()
157 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
159 hcd->irq = platform_get_irq(pdev, 0); in mv_ehci_probe()
160 if (!hcd->irq) { in mv_ehci_probe()
166 ehci = hcd_to_ehci(hcd); in mv_ehci_probe()
183 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self); in mv_ehci_probe()
196 retval = usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in mv_ehci_probe()
202 device_wakeup_enable(hcd->self.controller); in mv_ehci_probe()
207 " working in %s mode\n", hcd->regs, hcd->irq, in mv_ehci_probe()
218 usb_put_hcd(hcd); in mv_ehci_probe()
225 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_remove() local
226 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_remove()
228 if (hcd->rh_registered) in mv_ehci_remove()
229 usb_remove_hcd(hcd); in mv_ehci_remove()
241 usb_put_hcd(hcd); in mv_ehci_remove()
258 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_shutdown() local
260 if (!hcd->rh_registered) in mv_ehci_shutdown()
263 if (hcd->driver->shutdown) in mv_ehci_shutdown()
264 hcd->driver->shutdown(hcd); in mv_ehci_shutdown()