Lines Matching refs:res
152 struct resource *res; in atari_stram_alloc() local
160 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in atari_stram_alloc()
161 if (!res) in atari_stram_alloc()
164 res->name = owner; in atari_stram_alloc()
165 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc()
170 kfree(res); in atari_stram_alloc()
174 pr_debug("atari_stram_alloc: returning %pR\n", res); in atari_stram_alloc()
175 return atari_stram_to_virt(res->start); in atari_stram_alloc()
183 struct resource *res; in atari_stram_free() local
186 res = lookup_resource(&stram_pool, start); in atari_stram_free()
187 if (!res) { in atari_stram_free()
193 size = resource_size(res); in atari_stram_free()
195 release_resource(res); in atari_stram_free()
196 kfree(res); in atari_stram_free()