Lines Matching defs:res
156 struct resource *res;
164 res = kzalloc(sizeof(struct resource), GFP_KERNEL);
165 if (!res)
168 res->name = owner;
169 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX,
174 kfree(res);
178 pr_debug("atari_stram_alloc: returning %pR\n", res);
179 return atari_stram_to_virt(res->start);
187 struct resource *res;
190 res = lookup_resource(&stram_pool, start);
191 if (!res) {
197 size = resource_size(res);
199 release_resource(res);
200 kfree(res);