Lines Matching defs:hcd

35 #include <linux/usb/hcd.h>
59 static int ehci_platform_reset(struct usb_hcd *hcd)
61 struct platform_device *pdev = to_platform_device(hcd->self.controller);
63 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
69 retval = pdata->pre_setup(hcd);
74 ehci->caps = hcd->regs + pdata->caps_offset;
75 retval = ehci_setup(hcd);
91 struct usb_hcd *hcd = platform_get_drvdata(dev);
92 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
112 struct usb_hcd *hcd = platform_get_drvdata(dev);
113 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
136 * @ehci: the ehci hcd pointer
160 * @ehci: the ehci hcd pointer
170 struct usb_hcd *hcd = ehci_to_hcd(ehci);
172 companion_dev = usb_of_get_companion_dev(hcd->self.controller);
241 struct usb_hcd *hcd;
269 hcd = usb_create_hcd(&ehci_platform_hc_driver, &dev->dev,
271 if (!hcd)
274 platform_set_drvdata(dev, hcd);
276 priv = hcd_to_ehci_priv(hcd);
277 ehci = hcd_to_ehci(hcd);
295 hcd->has_tt = 1;
333 hcd->has_tt = 1;
361 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem);
362 if (IS_ERR(hcd->regs)) {
363 err = PTR_ERR(hcd->regs);
366 hcd->rsrc_start = res_mem->start;
367 hcd->rsrc_len = resource_size(res_mem);
369 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
373 device_wakeup_enable(hcd->self.controller);
374 device_enable_async_suspend(hcd->self.controller);
375 platform_set_drvdata(dev, hcd);
394 usb_put_hcd(hcd);
401 struct usb_hcd *hcd = platform_get_drvdata(dev);
403 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
409 usb_remove_hcd(hcd);
419 usb_put_hcd(hcd);
429 struct usb_hcd *hcd = dev_get_drvdata(dev);
432 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
439 ret = ehci_suspend(hcd, do_wakeup);
451 struct usb_hcd *hcd = dev_get_drvdata(dev);
454 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd);
463 companion_dev = usb_of_get_companion_dev(hcd->self.controller);
465 device_pm_wait_for_dev(hcd->self.controller, companion_dev);
469 ehci_resume(hcd, priv->reset_on_resume);