Lines Matching full:hcd
3 * OHCI HCD (Host Controller Driver) for USB.
20 #include <linux/usb/hcd.h>
31 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
38 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
66 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe()
67 if (!hcd) { in spear_ohci_hcd_drv_probe()
73 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ohci_hcd_drv_probe()
74 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
75 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
79 hcd->rsrc_start = pdev->resource[0].start; in spear_ohci_hcd_drv_probe()
80 hcd->rsrc_len = resource_size(res); in spear_ohci_hcd_drv_probe()
82 sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_probe()
87 retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), 0); in spear_ohci_hcd_drv_probe()
89 device_wakeup_enable(hcd->self.controller); in spear_ohci_hcd_drv_probe()
95 usb_put_hcd(hcd); in spear_ohci_hcd_drv_probe()
104 struct usb_hcd *hcd = platform_get_drvdata(pdev); in spear_ohci_hcd_drv_remove() local
105 struct spear_ohci *sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_remove()
107 usb_remove_hcd(hcd); in spear_ohci_hcd_drv_remove()
111 usb_put_hcd(hcd); in spear_ohci_hcd_drv_remove()
119 struct usb_hcd *hcd = platform_get_drvdata(pdev); in spear_ohci_hcd_drv_suspend() local
120 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_suspend()
121 struct spear_ohci *sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_suspend()
129 ret = ohci_suspend(hcd, do_wakeup); in spear_ohci_hcd_drv_suspend()
140 struct usb_hcd *hcd = platform_get_drvdata(dev); in spear_ohci_hcd_drv_resume() local
141 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_resume()
142 struct spear_ohci *sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_resume()
149 ohci_resume(hcd, false); in spear_ohci_hcd_drv_resume()