Lines Matching defs:res
127 struct resource res[OMAP_MMC_NR_RES];
134 memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource));
135 res[0].start = base;
136 res[0].end = base + size - 1;
137 res[0].flags = IORESOURCE_MEM;
138 res[1].start = res[1].end = irq;
139 res[1].flags = IORESOURCE_IRQ;
140 res[2].start = rx_req;
141 res[2].name = "rx";
142 res[2].flags = IORESOURCE_DMA;
143 res[3].start = tx_req;
144 res[3].name = "tx";
145 res[3].flags = IORESOURCE_DMA;
152 ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));