Lines Matching defs:res
137 struct resource *res;
143 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
147 if (res == NULL) {
152 if (!request_mem_region(res->start, resource_size(res), res->name)) {
165 i2c->reg_base = ioremap(res->start, resource_size(res));
170 i2c->io_base = res->start;
171 i2c->io_size = resource_size(res);
178 (unsigned long) res->start);
196 switch (res->flags & IORESOURCE_MEM_TYPE_MASK) {
254 release_mem_region(res->start, resource_size(res));