Lines Matching refs:res
157 struct resource *res; in atari_stram_alloc() local
165 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in atari_stram_alloc()
166 if (!res) in atari_stram_alloc()
169 res->name = owner; in atari_stram_alloc()
170 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc()
175 kfree(res); in atari_stram_alloc()
179 pr_debug("atari_stram_alloc: returning %pR\n", res); in atari_stram_alloc()
180 return atari_stram_to_virt(res->start); in atari_stram_alloc()
188 struct resource *res; in atari_stram_free() local
191 res = lookup_resource(&stram_pool, start); in atari_stram_free()
192 if (!res) { in atari_stram_free()
198 size = resource_size(res); in atari_stram_free()
200 release_resource(res); in atari_stram_free()
201 kfree(res); in atari_stram_free()