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()
90 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
95 ret = xhci_priv_init_quirk(hcd); in xhci_plat_setup()
99 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
102 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
104 xhci_priv_plat_start(hcd); in xhci_plat_start()
105 return xhci_run(hcd); in xhci_plat_start()
153 struct usb_hcd *hcd, *usb3_hcd; in xhci_plat_probe() local
179 hcd = __usb_create_hcd(driver, sysdev, &pdev->dev, in xhci_plat_probe()
181 if (!hcd) { in xhci_plat_probe()
186 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in xhci_plat_probe()
187 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
188 ret = PTR_ERR(hcd->regs); in xhci_plat_probe()
192 hcd->rsrc_start = res->start; in xhci_plat_probe()
193 hcd->rsrc_len = resource_size(res); in xhci_plat_probe()
195 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
234 priv = hcd_to_xhci_priv(hcd); in xhci_plat_probe()
241 xhci->main_hcd = hcd; in xhci_plat_probe()
262 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe()
263 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
264 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
267 hcd->usb_phy = NULL; in xhci_plat_probe()
269 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
274 hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); in xhci_plat_probe()
277 hcd->skip_phy_initialization = 1; in xhci_plat_probe()
282 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_plat_probe()
288 dev_name(&pdev->dev), hcd); in xhci_plat_probe()
294 xhci->shared_hcd->tpl_support = hcd->tpl_support; in xhci_plat_probe()
323 usb_remove_hcd(hcd); in xhci_plat_probe()
326 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
338 usb_put_hcd(hcd); in xhci_plat_probe()
391 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local
392 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove()
405 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
407 usb_remove_hcd(hcd); in xhci_plat_remove()
415 usb_put_hcd(hcd); in xhci_plat_remove()
427 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local
428 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend()
434 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()
464 ret = xhci_priv_resume_quirk(hcd); in xhci_plat_resume()
481 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_suspend() local
482 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_suspend()
485 ret = xhci_priv_suspend_quirk(hcd); in xhci_plat_runtime_suspend()
494 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_runtime_resume() local
495 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_resume()