Lines Matching defs:dwc
15 static int dwc3_host_get_irq(struct dwc3 *dwc)
17 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev);
45 int dwc3_host_init(struct dwc3 *dwc)
51 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev);
54 irq = dwc3_host_get_irq(dwc);
67 dwc->xhci_resources[1].start = irq;
68 dwc->xhci_resources[1].end = irq;
69 dwc->xhci_resources[1].flags = res->flags;
70 dwc->xhci_resources[1].name = res->name;
74 dev_err(dwc->dev, "couldn't allocate xHCI device\n");
78 xhci->dev.parent = dwc->dev;
79 ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev));
81 dwc->xhci = xhci;
83 ret = platform_device_add_resources(xhci, dwc->xhci_resources,
86 dev_err(dwc->dev, "couldn't add resources to xHCI device\n");
92 if (dwc->usb3_lpm_capable)
95 if (dwc->usb2_lpm_disable)
113 dev_err(dwc->dev, "failed to add properties to xHCI\n");
120 dev_err(dwc->dev, "failed to register xHCI device\n");
130 void dwc3_host_exit(struct dwc3 *dwc)
132 platform_device_unregister(dwc->xhci);
133 dwc->xhci = NULL;