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