Lines Matching full:dwc3
3 * dwc3-pci.c - PCI Specific glue layer
58 * @dwc3: child dwc3 platform_device
65 struct platform_device *dwc3; member
226 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() local
229 ret = pm_runtime_get_sync(&dwc3->dev); in dwc3_pci_resume_work()
231 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
235 pm_runtime_mark_last_busy(&dwc3->dev); in dwc3_pci_resume_work()
236 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
259 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_pci_probe()
260 if (!dwc->dwc3) in dwc3_pci_probe()
274 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_pci_probe()
276 dev_err(dev, "couldn't add resources to dwc3 device\n"); in dwc3_pci_probe()
281 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe()
282 ACPI_COMPANION_SET(&dwc->dwc3->dev, ACPI_COMPANION(dev)); in dwc3_pci_probe()
284 ret = device_add_software_node(&dwc->dwc3->dev, (void *)id->driver_data); in dwc3_pci_probe()
292 ret = platform_device_add(dwc->dwc3); in dwc3_pci_probe()
294 dev_err(dev, "failed to register dwc3 device\n"); in dwc3_pci_probe()
307 device_remove_software_node(&dwc->dwc3->dev); in dwc3_pci_probe()
308 platform_device_put(dwc->dwc3); in dwc3_pci_probe()
324 device_remove_software_node(&dwc->dwc3->dev); in dwc3_pci_remove()
325 platform_device_unregister(dwc->dwc3); in dwc3_pci_remove()
479 .name = "dwc3-pci",