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()
98 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in ehci_hcd_sh_probe()
99 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe()
100 ret = PTR_ERR(hcd->regs); in ehci_hcd_sh_probe()
103 hcd->rsrc_start = res->start; in ehci_hcd_sh_probe()
104 hcd->rsrc_len = resource_size(res); in ehci_hcd_sh_probe()
129 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_sh_probe()
131 dev_err(&pdev->dev, "Failed to add hcd"); in ehci_hcd_sh_probe()
134 device_wakeup_enable(hcd->self.controller); in ehci_hcd_sh_probe()
136 priv->hcd = hcd; in ehci_hcd_sh_probe()
147 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
157 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
159 usb_remove_hcd(hcd); in ehci_hcd_sh_remove()
160 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
169 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
171 if (hcd->driver->shutdown) in ehci_hcd_sh_shutdown()
172 hcd->driver->shutdown(hcd); in ehci_hcd_sh_shutdown()