Lines Matching refs:hcd
31 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
37 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_suspend() local
40 return ehci_suspend(hcd, do_wakeup); in ehci_spear_drv_suspend()
45 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_resume() local
47 ehci_resume(hcd, false); in ehci_spear_drv_resume()
56 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
88 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ehci_hcd_drv_probe()
89 if (!hcd) { in spear_ehci_hcd_drv_probe()
95 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ehci_hcd_drv_probe()
96 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe()
97 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe()
100 hcd->rsrc_start = res->start; in spear_ehci_hcd_drv_probe()
101 hcd->rsrc_len = resource_size(res); in spear_ehci_hcd_drv_probe()
103 sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_probe()
107 hcd_to_ehci(hcd)->caps = hcd->regs; in spear_ehci_hcd_drv_probe()
110 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in spear_ehci_hcd_drv_probe()
114 device_wakeup_enable(hcd->self.controller); in spear_ehci_hcd_drv_probe()
120 usb_put_hcd(hcd); in spear_ehci_hcd_drv_probe()
129 struct usb_hcd *hcd = platform_get_drvdata(pdev); in spear_ehci_hcd_drv_remove() local
130 struct spear_ehci *sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_remove()
132 usb_remove_hcd(hcd); in spear_ehci_hcd_drv_remove()
136 usb_put_hcd(hcd); in spear_ehci_hcd_drv_remove()