Lines Matching full:dwc3
3 * dwc3-pci.c - PCI Specific glue layer
60 * @dwc3: child dwc3 platform_device
67 struct platform_device *dwc3; member
240 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() local
243 ret = pm_runtime_get_sync(&dwc3->dev); in dwc3_pci_resume_work()
245 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
249 pm_runtime_mark_last_busy(&dwc3->dev); in dwc3_pci_resume_work()
250 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
273 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_pci_probe()
274 if (!dwc->dwc3) in dwc3_pci_probe()
288 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_pci_probe()
290 dev_err(dev, "couldn't add resources to dwc3 device\n"); in dwc3_pci_probe()
295 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe()
296 ACPI_COMPANION_SET(&dwc->dwc3->dev, ACPI_COMPANION(dev)); in dwc3_pci_probe()
298 ret = device_add_software_node(&dwc->dwc3->dev, (void *)id->driver_data); in dwc3_pci_probe()
306 ret = platform_device_add(dwc->dwc3); in dwc3_pci_probe()
308 dev_err(dev, "failed to register dwc3 device\n"); in dwc3_pci_probe()
321 device_remove_software_node(&dwc->dwc3->dev); in dwc3_pci_probe()
322 platform_device_put(dwc->dwc3); in dwc3_pci_probe()
338 device_remove_software_node(&dwc->dwc3->dev); in dwc3_pci_remove()
339 platform_device_unregister(dwc->dwc3); in dwc3_pci_remove()
500 .name = "dwc3-pci",