Lines Matching refs: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) {
98 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
99 if (IS_ERR(hcd->regs)) {
100 ret = PTR_ERR(hcd->regs);
103 hcd->rsrc_start = res->start;
104 hcd->rsrc_len = resource_size(res);
125 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
127 dev_err(&pdev->dev, "Failed to add hcd");
130 device_wakeup_enable(hcd->self.controller);
132 priv->hcd = hcd;
142 usb_put_hcd(hcd);
152 struct usb_hcd *hcd = priv->hcd;
154 usb_remove_hcd(hcd);
155 usb_put_hcd(hcd);
164 struct usb_hcd *hcd = priv->hcd;
166 if (hcd->driver->shutdown)
167 hcd->driver->shutdown(hcd);