Lines Matching defs:dwc
39 struct dwc3_haps *dwc;
52 dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL);
53 if (!dwc)
56 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO);
57 if (!dwc->dwc3)
71 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res));
77 dwc->pci = pci;
78 dwc->dwc3->dev.parent = dev;
80 ret = platform_device_add_properties(dwc->dwc3, initial_properties);
84 ret = platform_device_add(dwc->dwc3);
90 pci_set_drvdata(pci, dwc);
94 platform_device_put(dwc->dwc3);
100 struct dwc3_haps *dwc = pci_get_drvdata(pci);
102 platform_device_unregister(dwc->dwc3);