Lines Matching full:cdns
18 static int __cdns3_host_init(struct cdns3 *cdns) in __cdns3_host_init() argument
24 cdns3_drd_host_on(cdns); in __cdns3_host_init()
28 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns3_host_init()
32 xhci->dev.parent = cdns->dev; in __cdns3_host_init()
33 cdns->host_dev = xhci; in __cdns3_host_init()
35 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns3_host_init()
38 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns3_host_init()
44 dev_err(cdns->dev, "failed to register xHCI device\n"); in __cdns3_host_init()
51 cdns->xhci_regs = hcd->regs; in __cdns3_host_init()
59 static void cdns3_host_exit(struct cdns3 *cdns) in cdns3_host_exit() argument
61 platform_device_unregister(cdns->host_dev); in cdns3_host_exit()
62 cdns->host_dev = NULL; in cdns3_host_exit()
63 cdns3_drd_host_off(cdns); in cdns3_host_exit()
66 int cdns3_host_init(struct cdns3 *cdns) in cdns3_host_init() argument
70 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_host_init()
79 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()