Lines Matching full:hcd

18 #include <linux/usb/hcd.h>
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()
163 hcd->rsrc_start = r->start; in mv_ehci_probe()
164 hcd->rsrc_len = resource_size(r); in mv_ehci_probe()
165 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
170 hcd->irq = retval; in mv_ehci_probe()
172 ehci = hcd_to_ehci(hcd); in mv_ehci_probe()
189 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self); in mv_ehci_probe()
202 retval = usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in mv_ehci_probe()
205 "failed to add hcd with err %d\n", retval); in mv_ehci_probe()
208 device_wakeup_enable(hcd->self.controller); in mv_ehci_probe()
221 " working in %s mode\n", hcd->regs, hcd->irq, in mv_ehci_probe()
232 usb_put_hcd(hcd); in mv_ehci_probe()
239 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_remove() local
240 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_remove()
242 if (hcd->rh_registered) in mv_ehci_remove()
243 usb_remove_hcd(hcd); in mv_ehci_remove()
255 usb_put_hcd(hcd); in mv_ehci_remove()
266 struct usb_hcd *hcd = platform_get_drvdata(pdev); in mv_ehci_shutdown() local
268 if (!hcd->rh_registered) in mv_ehci_shutdown()
271 if (hcd->driver->shutdown) in mv_ehci_shutdown()
272 hcd->driver->shutdown(hcd); in mv_ehci_shutdown()