Lines Matching defs:hcd
14 struct usb_hcd *hcd;
17 static int ehci_sh_reset(struct usb_hcd *hcd)
19 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
21 ehci->caps = hcd->regs;
23 return ehci_setup(hcd);
78 struct usb_hcd *hcd;
90 /* initialize hcd */
91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev,
93 if (!hcd) {
99 hcd->regs = devm_ioremap_resource(&pdev->dev, res);
100 if (IS_ERR(hcd->regs)) {
101 ret = PTR_ERR(hcd->regs);
104 hcd->rsrc_start = res->start;
105 hcd->rsrc_len = resource_size(res);
126 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
128 dev_err(&pdev->dev, "Failed to add hcd");
131 device_wakeup_enable(hcd->self.controller);
133 priv->hcd = hcd;
143 usb_put_hcd(hcd);
153 struct usb_hcd *hcd = priv->hcd;
155 usb_remove_hcd(hcd);
156 usb_put_hcd(hcd);
167 struct usb_hcd *hcd = priv->hcd;
169 if (hcd->driver->shutdown)
170 hcd->driver->shutdown(hcd);