Lines Matching full:dwc3
3 * dwc3-pci.c - PCI Specific glue layer
56 * @dwc3: child dwc3 platform_device
63 struct platform_device *dwc3; member
209 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() local
212 ret = pm_runtime_get_sync(&dwc3->dev); in dwc3_pci_resume_work()
214 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
218 pm_runtime_mark_last_busy(&dwc3->dev); in dwc3_pci_resume_work()
219 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
243 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_pci_probe()
244 if (!dwc->dwc3) in dwc3_pci_probe()
258 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_pci_probe()
260 dev_err(dev, "couldn't add resources to dwc3 device\n"); in dwc3_pci_probe()
265 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe()
266 ACPI_COMPANION_SET(&dwc->dwc3->dev, ACPI_COMPANION(dev)); in dwc3_pci_probe()
268 ret = platform_device_add_properties(dwc->dwc3, p); in dwc3_pci_probe()
276 ret = platform_device_add(dwc->dwc3); in dwc3_pci_probe()
278 dev_err(dev, "failed to register dwc3 device\n"); in dwc3_pci_probe()
291 platform_device_put(dwc->dwc3); in dwc3_pci_probe()
307 platform_device_unregister(dwc->dwc3); in dwc3_pci_remove()
455 .name = "dwc3-pci",