• Home
  • Raw
  • Download

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_plat_setup(struct usb_hcd *hcd) in xhci_priv_plat_setup() argument
49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_setup()
54 return priv->plat_setup(hcd); in xhci_priv_plat_setup()
57 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument
59 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk()
64 return priv->init_quirk(hcd); in xhci_priv_init_quirk()
67 static int xhci_priv_suspend_quirk(struct usb_hcd *hcd) in xhci_priv_suspend_quirk() argument
69 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_suspend_quirk()
74 return priv->suspend_quirk(hcd); in xhci_priv_suspend_quirk()
77 static int xhci_priv_resume_quirk(struct usb_hcd *hcd) in xhci_priv_resume_quirk() argument
79 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_resume_quirk()
84 return priv->resume_quirk(hcd); in xhci_priv_resume_quirk()
100 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
105 ret = xhci_priv_init_quirk(hcd); in xhci_plat_setup()
109 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
112 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
114 xhci_priv_plat_start(hcd); in xhci_plat_start()
115 return xhci_run(hcd); in xhci_plat_start()
194 struct usb_hcd *hcd; in xhci_plat_probe() local
248 hcd = __usb_create_hcd(driver, sysdev, &pdev->dev, in xhci_plat_probe()
250 if (!hcd) { in xhci_plat_probe()
255 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in xhci_plat_probe()
256 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
257 ret = PTR_ERR(hcd->regs); in xhci_plat_probe()
261 hcd->rsrc_start = res->start; in xhci_plat_probe()
262 hcd->rsrc_len = resource_size(res); in xhci_plat_probe()
264 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
296 priv = hcd_to_xhci_priv(hcd); in xhci_plat_probe()
303 xhci->main_hcd = hcd; in xhci_plat_probe()
305 dev_name(&pdev->dev), hcd); in xhci_plat_probe()
330 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe()
331 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
332 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
335 hcd->usb_phy = NULL; in xhci_plat_probe()
337 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
342 hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); in xhci_plat_probe()
343 xhci->shared_hcd->tpl_support = hcd->tpl_support; in xhci_plat_probe()
346 ret = xhci_priv_plat_setup(hcd); in xhci_plat_probe()
352 hcd->skip_phy_initialization = 1; in xhci_plat_probe()
357 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_plat_probe()
381 usb_remove_hcd(hcd); in xhci_plat_probe()
384 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
396 usb_put_hcd(hcd); in xhci_plat_probe()
407 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local
408 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove()
418 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
420 usb_remove_hcd(hcd); in xhci_plat_remove()
425 usb_put_hcd(hcd); in xhci_plat_remove()
436 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local
437 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend()
443 ret = xhci_priv_suspend_quirk(hcd); in xhci_plat_suspend()
455 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume() local
456 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume()
459 ret = xhci_priv_resume_quirk(hcd); in xhci_plat_resume()
476 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_suspend() local
477 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_suspend()
480 ret = xhci_priv_suspend_quirk(hcd); in xhci_plat_runtime_suspend()
489 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_resume() local
490 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_resume()