Lines Matching refs:hcd
23 struct usb_hcd *hcd; member
70 static int mv_ehci_reset(struct usb_hcd *hcd) in mv_ehci_reset() argument
72 struct device *dev = hcd->self.controller; in mv_ehci_reset()
81 hcd->has_tt = 1; in mv_ehci_reset()
83 retval = ehci_setup(hcd); in mv_ehci_reset()
135 struct usb_hcd *hcd; in mv_ehci_probe() local
150 hcd = usb_create_hcd(&mv_ehci_hc_driver, &pdev->dev, "mv ehci"); in mv_ehci_probe()
151 if (!hcd) in mv_ehci_probe()
162 ehci_mv->hcd = hcd; in mv_ehci_probe()
195 hcd->rsrc_start = r->start; in mv_ehci_probe()
196 hcd->rsrc_len = resource_size(r); in mv_ehci_probe()
197 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
199 hcd->irq = platform_get_irq(pdev, 0); in mv_ehci_probe()
200 if (!hcd->irq) { in mv_ehci_probe()
206 ehci = hcd_to_ehci(hcd); in mv_ehci_probe()
224 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self); in mv_ehci_probe()
237 retval = usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in mv_ehci_probe()
243 device_wakeup_enable(hcd->self.controller); in mv_ehci_probe()
251 " working in %s mode\n", hcd->regs, hcd->irq, in mv_ehci_probe()
262 usb_put_hcd(hcd); in mv_ehci_probe()
270 struct usb_hcd *hcd = ehci_mv->hcd; in mv_ehci_remove() local
272 if (hcd->rh_registered) in mv_ehci_remove()
273 usb_remove_hcd(hcd); in mv_ehci_remove()
285 usb_put_hcd(hcd); in mv_ehci_remove()
303 struct usb_hcd *hcd = ehci_mv->hcd; in mv_ehci_shutdown() local
305 if (!hcd->rh_registered) in mv_ehci_shutdown()
308 if (hcd->driver->shutdown) in mv_ehci_shutdown()
309 hcd->driver->shutdown(hcd); in mv_ehci_shutdown()