Lines Matching refs:hcd
18 struct usb_hcd *hcd; member
21 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
23 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
25 ehci->caps = hcd->regs; in ehci_sh_reset()
27 return ehci_setup(hcd); in ehci_sh_reset()
83 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
101 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
103 if (!hcd) { in ehci_hcd_sh_probe()
109 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
110 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe()
111 ret = PTR_ERR(hcd->regs); in ehci_hcd_sh_probe()
114 hcd->rsrc_start = res->start; in ehci_hcd_sh_probe()
115 hcd->rsrc_len = resource_size(res); in ehci_hcd_sh_probe()
139 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_sh_probe()
144 device_wakeup_enable(hcd->self.controller); in ehci_hcd_sh_probe()
146 priv->hcd = hcd; in ehci_hcd_sh_probe()
156 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
166 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
168 usb_remove_hcd(hcd); in ehci_hcd_sh_remove()
169 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
180 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
182 if (hcd->driver->shutdown) in ehci_hcd_sh_shutdown()
183 hcd->driver->shutdown(hcd); in ehci_hcd_sh_shutdown()