Lines Matching refs:hcd
33 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
39 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_suspend() local
42 return ehci_suspend(hcd, do_wakeup); in ehci_spear_drv_suspend()
47 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_resume() local
49 ehci_resume(hcd, false); in ehci_spear_drv_resume()
58 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
90 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ehci_hcd_drv_probe()
91 if (!hcd) { in spear_ehci_hcd_drv_probe()
97 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ehci_hcd_drv_probe()
98 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe()
99 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe()
102 hcd->rsrc_start = res->start; in spear_ehci_hcd_drv_probe()
103 hcd->rsrc_len = resource_size(res); in spear_ehci_hcd_drv_probe()
105 sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_probe()
109 hcd_to_ehci(hcd)->caps = hcd->regs; in spear_ehci_hcd_drv_probe()
112 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in spear_ehci_hcd_drv_probe()
116 device_wakeup_enable(hcd->self.controller); in spear_ehci_hcd_drv_probe()
122 usb_put_hcd(hcd); in spear_ehci_hcd_drv_probe()
131 struct usb_hcd *hcd = platform_get_drvdata(pdev); in spear_ehci_hcd_drv_remove() local
132 struct spear_ehci *sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_remove()
134 usb_remove_hcd(hcd); in spear_ehci_hcd_drv_remove()
138 usb_put_hcd(hcd); in spear_ehci_hcd_drv_remove()