Lines Matching refs:cdns
17 static int __cdns3_host_init(struct cdns3 *cdns) in __cdns3_host_init() argument
22 cdns3_drd_switch_host(cdns, 1); in __cdns3_host_init()
26 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns3_host_init()
30 xhci->dev.parent = cdns->dev; in __cdns3_host_init()
31 cdns->host_dev = xhci; in __cdns3_host_init()
33 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns3_host_init()
36 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns3_host_init()
42 dev_err(cdns->dev, "failed to register xHCI device\n"); in __cdns3_host_init()
52 static void cdns3_host_exit(struct cdns3 *cdns) in cdns3_host_exit() argument
54 platform_device_unregister(cdns->host_dev); in cdns3_host_exit()
55 cdns->host_dev = NULL; in cdns3_host_exit()
56 cdns3_drd_switch_host(cdns, 0); in cdns3_host_exit()
59 int cdns3_host_init(struct cdns3 *cdns) in cdns3_host_init() argument
63 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_host_init()
72 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()