Lines Matching defs:res
256 struct resource *res;
261 res = kzalloc(sizeof(struct resource) * 2, GFP_KERNEL);
262 if (!res) {
267 res[0].flags = IORESOURCE_MEM;
268 res[0].name = "Footbridge non-prefetch";
269 res[1].flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
270 res[1].name = "Footbridge prefetch";
272 allocate_resource(&iomem_resource, &res[1], 0x20000000,
274 allocate_resource(&iomem_resource, &res[0], 0x40000000,
278 sys->resource[1] = &res[0];
279 sys->resource[2] = &res[1];