Lines Matching defs:res
54 struct resource res[2];
83 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
85 res[0].start = pci_resource_start(pci, 0);
86 res[0].end = pci_resource_end(pci, 0);
87 res[0].name = "dwc2";
88 res[0].flags = IORESOURCE_MEM;
90 res[1].start = pci->irq;
91 res[1].name = "dwc2";
92 res[1].flags = IORESOURCE_IRQ;
94 ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res));