Lines Matching defs:res
137 struct resource res[OMAP_MMC_NR_RES];
144 memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource));
145 res[0].start = base;
146 res[0].end = base + size - 1;
147 res[0].flags = IORESOURCE_MEM;
148 res[1].start = res[1].end = irq;
149 res[1].flags = IORESOURCE_IRQ;
150 res[2].start = rx_req;
151 res[2].name = "rx";
152 res[2].flags = IORESOURCE_DMA;
153 res[3].start = tx_req;
154 res[3].name = "tx";
155 res[3].flags = IORESOURCE_DMA;
164 ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));