Lines Matching defs:hcd
12 #include <linux/usb/hcd.h>
48 * The fix is to Intercept the echi-hcd request to complete RESUME and
53 struct usb_hcd *hcd,
60 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
87 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
93 static int ehci_brcm_reset(struct usb_hcd *hcd)
95 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
100 ehci->caps = (void __iomem *)hcd->regs;
102 ehci->regs = (void __iomem *)(hcd->regs + len);
116 return ehci_setup(hcd);
131 struct usb_hcd *hcd;
146 /* initialize hcd */
147 hcd = usb_create_hcd(&ehci_brcm_hc_driver, dev, dev_name(dev));
148 if (!hcd)
151 platform_set_drvdata(pdev, hcd);
152 priv = hcd_to_ehci_priv(hcd);
164 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res_mem);
165 if (IS_ERR(hcd->regs)) {
166 err = PTR_ERR(hcd->regs);
169 hcd->rsrc_start = res_mem->start;
170 hcd->rsrc_len = resource_size(res_mem);
171 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
175 device_wakeup_enable(hcd->self.controller);
176 device_enable_async_suspend(hcd->self.controller);
183 usb_put_hcd(hcd);
190 struct usb_hcd *hcd = platform_get_drvdata(dev);
191 struct brcm_priv *priv = hcd_to_ehci_priv(hcd);
193 usb_remove_hcd(hcd);
195 usb_put_hcd(hcd);
202 struct usb_hcd *hcd = dev_get_drvdata(dev);
203 struct brcm_priv *priv = hcd_to_ehci_priv(hcd);
206 ret = ehci_suspend(hcd, do_wakeup);
215 struct usb_hcd *hcd = dev_get_drvdata(dev);
216 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
217 struct brcm_priv *priv = hcd_to_ehci_priv(hcd);
232 ehci_resume(hcd, false);