Lines Matching defs:res
177 struct resource *res;
181 res = platform_get_resource(dev, IORESOURCE_MEM, 1);
183 if (res)
184 release_mem_region(res->start, resource_size(res));
186 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
188 release_mem_region(res->start, resource_size(res));
206 static void __iomem *request_and_remap(struct resource *res, size_t size,
211 if (!request_mem_region(res->start, resource_size(res), name)) {
216 ptr = ioremap(res->start, size);
218 release_mem_region(res->start, resource_size(res));