Lines Matching refs: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
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()
125 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_sh_probe()
130 device_wakeup_enable(hcd->self.controller); in ehci_hcd_sh_probe()
132 priv->hcd = hcd; in ehci_hcd_sh_probe()
142 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
152 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
154 usb_remove_hcd(hcd); in ehci_hcd_sh_remove()
155 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
164 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
166 if (hcd->driver->shutdown) in ehci_hcd_sh_shutdown()
167 hcd->driver->shutdown(hcd); in ehci_hcd_sh_shutdown()