Lines Matching refs:hcd
15 struct usb_hcd *hcd; member
18 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
20 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
22 ehci->caps = hcd->regs; in ehci_sh_reset()
24 return ehci_setup(hcd); in ehci_sh_reset()
80 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
95 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
97 if (!hcd) { in ehci_hcd_sh_probe()
103 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
104 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe()
105 ret = PTR_ERR(hcd->regs); in ehci_hcd_sh_probe()
108 hcd->rsrc_start = res->start; in ehci_hcd_sh_probe()
109 hcd->rsrc_len = resource_size(res); in ehci_hcd_sh_probe()
133 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_sh_probe()
138 device_wakeup_enable(hcd->self.controller); in ehci_hcd_sh_probe()
140 priv->hcd = hcd; in ehci_hcd_sh_probe()
150 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
160 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
162 usb_remove_hcd(hcd); in ehci_hcd_sh_remove()
163 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
174 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
176 if (hcd->driver->shutdown) in ehci_hcd_sh_shutdown()
177 hcd->driver->shutdown(hcd); in ehci_hcd_sh_shutdown()