Lines Matching full:xhci
17 #include "../host/xhci.h"
18 #include "../host/xhci-plat.h"
33 struct platform_device *xhci; in __cdns3_host_init() local
39 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in __cdns3_host_init()
40 if (!xhci) { in __cdns3_host_init()
41 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns3_host_init()
45 xhci->dev.parent = cdns->dev; in __cdns3_host_init()
46 cdns->host_dev = xhci; in __cdns3_host_init()
48 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns3_host_init()
51 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns3_host_init()
65 ret = platform_device_add_data(xhci, cdns->xhci_plat_data, in __cdns3_host_init()
70 ret = platform_device_add(xhci); in __cdns3_host_init()
72 dev_err(cdns->dev, "failed to register xHCI device\n"); in __cdns3_host_init()
76 /* Glue needs to access xHCI region register for Power management */ in __cdns3_host_init()
77 hcd = platform_get_drvdata(xhci); in __cdns3_host_init()
86 platform_device_put(xhci); in __cdns3_host_init()
92 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_suspend_quirk() local
99 value = readl(&xhci->op_regs->command); in xhci_cdns3_suspend_quirk()
101 writel(value, &xhci->op_regs->command); in xhci_cdns3_suspend_quirk()