Lines Matching defs:res
45 struct resource res[2];
64 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
66 res[0].start = pci_resource_start(pci, 0);
67 res[0].end = pci_resource_end(pci, 0);
68 res[0].name = "dwc_usb3";
69 res[0].flags = IORESOURCE_MEM;
71 res[1].start = pci->irq;
72 res[1].name = "dwc_usb3";
73 res[1].flags = IORESOURCE_IRQ;
75 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res));