Lines Matching full:xhci
17 #include "../host/xhci.h"
18 #include "../host/xhci-plat.h"
35 struct platform_device *xhci; in __cdns_host_init() local
41 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in __cdns_host_init()
42 if (!xhci) { in __cdns_host_init()
43 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns_host_init()
47 xhci->dev.parent = cdns->dev; in __cdns_host_init()
48 cdns->host_dev = xhci; in __cdns_host_init()
50 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns_host_init()
53 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns_host_init()
67 ret = platform_device_add_data(xhci, cdns->xhci_plat_data, in __cdns_host_init()
72 ret = platform_device_add(xhci); in __cdns_host_init()
74 dev_err(cdns->dev, "failed to register xHCI device\n"); in __cdns_host_init()
78 /* Glue needs to access xHCI region register for Power management */ in __cdns_host_init()
79 hcd = platform_get_drvdata(xhci); in __cdns_host_init()
88 platform_device_put(xhci); in __cdns_host_init()
94 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_suspend_quirk() local
101 value = readl(&xhci->op_regs->command); in xhci_cdns3_suspend_quirk()
103 writel(value, &xhci->op_regs->command); in xhci_cdns3_suspend_quirk()