Lines Matching full:hcd
14 struct usb_hcd *hcd; member
17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
19 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
21 ehci->caps = hcd->regs; in ehci_sh_reset()
23 return ehci_setup(hcd); in ehci_sh_reset()
78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
90 /* initialize hcd */ in ehci_hcd_sh_probe()
91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
93 if (!hcd) { in ehci_hcd_sh_probe()
99 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
100 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe()
101 ret = PTR_ERR(hcd->regs); in ehci_hcd_sh_probe()
104 hcd->rsrc_start = res->start; in ehci_hcd_sh_probe()
105 hcd->rsrc_len = resource_size(res); in ehci_hcd_sh_probe()
126 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_sh_probe()
128 dev_err(&pdev->dev, "Failed to add hcd"); in ehci_hcd_sh_probe()
131 device_wakeup_enable(hcd->self.controller); in ehci_hcd_sh_probe()
133 priv->hcd = hcd; in ehci_hcd_sh_probe()
143 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
153 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
155 usb_remove_hcd(hcd); in ehci_hcd_sh_remove()
156 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
167 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
169 if (hcd->driver->shutdown) in ehci_hcd_sh_shutdown()
170 hcd->driver->shutdown(hcd); in ehci_hcd_sh_shutdown()