Lines Matching refs:hcd

30 static int xhci_plat_setup(struct usb_hcd *hcd);
31 static int xhci_plat_start(struct usb_hcd *hcd);
39 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() argument
41 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_start()
44 priv->plat_start(hcd); in xhci_priv_plat_start()
47 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument
49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk()
54 return priv->init_quirk(hcd); in xhci_priv_init_quirk()
57 static int xhci_priv_suspend_quirk(struct usb_hcd *hcd) in xhci_priv_suspend_quirk() argument
59 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_suspend_quirk()
64 return priv->suspend_quirk(hcd); in xhci_priv_suspend_quirk()
67 static int xhci_priv_resume_quirk(struct usb_hcd *hcd) in xhci_priv_resume_quirk() argument
69 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_resume_quirk()
74 return priv->resume_quirk(hcd); in xhci_priv_resume_quirk()
85 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
90 ret = xhci_priv_init_quirk(hcd); in xhci_plat_setup()
94 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
97 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
99 xhci_priv_plat_start(hcd); in xhci_plat_start()
100 return xhci_run(hcd); in xhci_plat_start()
151 struct usb_hcd *hcd, *usb3_hcd; in xhci_plat_probe() local
177 hcd = __usb_create_hcd(driver, sysdev, &pdev->dev, in xhci_plat_probe()
179 if (!hcd) { in xhci_plat_probe()
184 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in xhci_plat_probe()
185 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
186 ret = PTR_ERR(hcd->regs); in xhci_plat_probe()
190 hcd->rsrc_start = res->start; in xhci_plat_probe()
191 hcd->rsrc_len = resource_size(res); in xhci_plat_probe()
193 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
232 priv = hcd_to_xhci_priv(hcd); in xhci_plat_probe()
239 xhci->main_hcd = hcd; in xhci_plat_probe()
278 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe()
279 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
280 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
283 hcd->usb_phy = NULL; in xhci_plat_probe()
285 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
291 hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); in xhci_plat_probe()
294 hcd->skip_phy_initialization = 1; in xhci_plat_probe()
299 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_plat_probe()
305 dev_name(&pdev->dev), hcd); in xhci_plat_probe()
324 xhci->shared_hcd->tpl_support = hcd->tpl_support; in xhci_plat_probe()
353 usb_remove_hcd(hcd); in xhci_plat_probe()
356 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
368 usb_put_hcd(hcd); in xhci_plat_probe()
419 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local
420 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove()
433 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
435 usb_remove_hcd(hcd); in xhci_plat_remove()
443 usb_put_hcd(hcd); in xhci_plat_remove()
453 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local
454 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend()
460 ret = xhci_priv_suspend_quirk(hcd); in xhci_plat_suspend()
481 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume_common() local
482 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume_common()
497 ret = xhci_priv_resume_quirk(hcd); in xhci_plat_resume_common()
532 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_suspend() local
533 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_suspend()
536 ret = xhci_priv_suspend_quirk(hcd); in xhci_plat_runtime_suspend()
545 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_resume() local
546 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_resume()