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