Lines Matching refs:hcd

35 #include <linux/usb/hcd.h>
56 static int ehci_platform_reset(struct usb_hcd *hcd)
58 struct platform_device *pdev = to_platform_device(hcd->self.controller);
60 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
66 retval = pdata->pre_setup(hcd);
71 ehci->caps = hcd->regs + pdata->caps_offset;
72 retval = ehci_setup(hcd);
88 struct usb_hcd *hcd = platform_get_drvdata(dev);
89 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
109 struct usb_hcd *hcd = platform_get_drvdata(dev);
110 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
133 * @ehci: the ehci hcd pointer
157 * @ehci: the ehci hcd pointer
167 struct usb_hcd *hcd = ehci_to_hcd(ehci);
169 companion_dev = usb_of_get_companion_dev(hcd->self.controller);
238 struct usb_hcd *hcd;
266 hcd = usb_create_hcd(&ehci_platform_hc_driver, &dev->dev,
268 if (!hcd)
271 platform_set_drvdata(dev, hcd);
273 priv = hcd_to_ehci_priv(hcd);
274 ehci = hcd_to_ehci(hcd);
295 hcd->has_tt = 1;
333 hcd->has_tt = 1;
362 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem);
363 if (IS_ERR(hcd->regs)) {
364 err = PTR_ERR(hcd->regs);
367 hcd->rsrc_start = res_mem->start;
368 hcd->rsrc_len = resource_size(res_mem);
370 hcd->tpl_support = of_usb_host_tpl_support(dev->dev.of_node);
372 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
376 device_wakeup_enable(hcd->self.controller);
377 device_enable_async_suspend(hcd->self.controller);
378 platform_set_drvdata(dev, hcd);
397 usb_put_hcd(hcd);
404 struct usb_hcd *hcd = platform_get_drvdata(dev);
406 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
412 usb_remove_hcd(hcd);
422 usb_put_hcd(hcd);
430 struct usb_hcd *hcd = dev_get_drvdata(dev);
433 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
440 ret = ehci_suspend(hcd, do_wakeup);
452 struct usb_hcd *hcd = dev_get_drvdata(dev);
455 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
464 companion_dev = usb_of_get_companion_dev(hcd->self.controller);
466 device_pm_wait_for_dev(hcd->self.controller, companion_dev);
470 ehci_resume(hcd, priv->reset_on_resume);