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()
70 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in mv_ehci_reset()
79 hcd->has_tt = 1; in mv_ehci_reset()
81 retval = ehci_setup(hcd); in mv_ehci_reset()
106 struct usb_hcd *hcd; in mv_ehci_probe() local
117 hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, dev_name(&pdev->dev)); in mv_ehci_probe()
118 if (!hcd) in mv_ehci_probe()
121 platform_set_drvdata(pdev, hcd); in mv_ehci_probe()
122 ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_probe()
164 hcd->rsrc_start = r->start; in mv_ehci_probe()
165 hcd->rsrc_len = resource_size(r); in mv_ehci_probe()
166 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
171 hcd->irq = retval; in mv_ehci_probe()
173 ehci = hcd_to_ehci(hcd); in mv_ehci_probe()
190 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self); in mv_ehci_probe()
203 retval = usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in mv_ehci_probe()
209 device_wakeup_enable(hcd->self.controller); in mv_ehci_probe()
222 " working in %s mode\n", hcd->regs, hcd->irq, in mv_ehci_probe()
233 usb_put_hcd(hcd); in mv_ehci_probe()
240 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_remove() local
241 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_remove()
243 if (hcd->rh_registered) in mv_ehci_remove()
244 usb_remove_hcd(hcd); in mv_ehci_remove()
256 usb_put_hcd(hcd); in mv_ehci_remove()
271 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_shutdown() local
273 if (!hcd->rh_registered) in mv_ehci_shutdown()
276 if (hcd->driver->shutdown) in mv_ehci_shutdown()
277 hcd->driver->shutdown(hcd); in mv_ehci_shutdown()