Lines Matching full:mem

25 	struct intel_memory_region *mem = obj->mm.region;  in i915_gem_object_get_pages_buddy()  local
40 if (sg_alloc_table(st, size >> ilog2(mem->mm.chunk_size), GFP_KERNEL)) { in i915_gem_object_get_pages_buddy()
49 ret = __intel_memory_region_get_pages_buddy(mem, size, flags, blocks); in i915_gem_object_get_pages_buddy()
64 i915_buddy_block_size(&mem->mm, block)); in i915_gem_object_get_pages_buddy()
76 sg_dma_address(sg) = mem->region.start + offset; in i915_gem_object_get_pages_buddy()
105 struct intel_memory_region *mem, in i915_gem_object_init_memory_region() argument
109 obj->mm.region = intel_memory_region_get(mem); in i915_gem_object_init_memory_region()
112 if (obj->base.size <= mem->min_page_size) in i915_gem_object_init_memory_region()
115 mutex_lock(&mem->objects.lock); in i915_gem_object_init_memory_region()
118 list_add(&obj->mm.region_link, &mem->objects.purgeable); in i915_gem_object_init_memory_region()
120 list_add(&obj->mm.region_link, &mem->objects.list); in i915_gem_object_init_memory_region()
122 mutex_unlock(&mem->objects.lock); in i915_gem_object_init_memory_region()
127 struct intel_memory_region *mem = obj->mm.region; in i915_gem_object_release_memory_region() local
129 mutex_lock(&mem->objects.lock); in i915_gem_object_release_memory_region()
131 mutex_unlock(&mem->objects.lock); in i915_gem_object_release_memory_region()
133 intel_memory_region_put(mem); in i915_gem_object_release_memory_region()
137 i915_gem_object_create_region(struct intel_memory_region *mem, in i915_gem_object_create_region() argument
145 * resource for the mem->region. We might need to revisit this in the in i915_gem_object_create_region()
151 if (!mem) in i915_gem_object_create_region()
154 size = round_up(size, mem->min_page_size); in i915_gem_object_create_region()
172 obj = mem->ops->create_object(mem, size, flags); in i915_gem_object_create_region()