Lines Matching refs:hcd
20 #include <linux/usb/hcd.h>
30 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv)
37 struct usb_hcd *hcd = NULL;
65 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev));
66 if (!hcd) {
71 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
72 if (IS_ERR(hcd->regs)) {
73 retval = PTR_ERR(hcd->regs);
77 hcd->rsrc_start = res->start;
78 hcd->rsrc_len = resource_size(res);
80 sohci_p = to_spear_ohci(hcd);
85 retval = usb_add_hcd(hcd, irq, 0);
87 device_wakeup_enable(hcd->self.controller);
93 usb_put_hcd(hcd);
102 struct usb_hcd *hcd = platform_get_drvdata(pdev);
103 struct spear_ohci *sohci_p = to_spear_ohci(hcd);
105 usb_remove_hcd(hcd);
109 usb_put_hcd(hcd);
116 struct usb_hcd *hcd = platform_get_drvdata(pdev);
117 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
118 struct spear_ohci *sohci_p = to_spear_ohci(hcd);
126 ret = ohci_suspend(hcd, do_wakeup);
137 struct usb_hcd *hcd = platform_get_drvdata(dev);
138 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
139 struct spear_ohci *sohci_p = to_spear_ohci(hcd);
146 ohci_resume(hcd, false);