Lines Matching defs:res
98 struct resource res[2];
127 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
129 res[0].start = pci_resource_start(pci, 0);
130 res[0].end = pci_resource_end(pci, 0);
131 res[0].name = "dwc2";
132 res[0].flags = IORESOURCE_MEM;
134 res[1].start = pci->irq;
135 res[1].name = "dwc2";
136 res[1].flags = IORESOURCE_IRQ;
138 ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res));