Lines Matching refs:dwc
14 static int dwc3_host_get_irq(struct dwc3 *dwc) in dwc3_host_get_irq() argument
16 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev); in dwc3_host_get_irq()
44 int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
50 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev); in dwc3_host_init()
53 irq = dwc3_host_get_irq(dwc); in dwc3_host_init()
66 dwc->xhci_resources[1].start = irq; in dwc3_host_init()
67 dwc->xhci_resources[1].end = irq; in dwc3_host_init()
68 dwc->xhci_resources[1].flags = res->flags; in dwc3_host_init()
69 dwc->xhci_resources[1].name = res->name; in dwc3_host_init()
73 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
77 xhci->dev.parent = dwc->dev; in dwc3_host_init()
79 dwc->xhci = xhci; in dwc3_host_init()
81 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
84 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
90 if (dwc->usb3_lpm_capable) in dwc3_host_init()
93 if (dwc->usb2_lpm_disable) in dwc3_host_init()
105 if (dwc->revision <= DWC3_REVISION_300A) in dwc3_host_init()
111 dev_err(dwc->dev, "failed to add properties to xHCI\n"); in dwc3_host_init()
118 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
128 void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
130 platform_device_unregister(dwc->xhci); in dwc3_host_exit()