• Home
  • Raw
  • Download

Lines Matching refs:mem

14 					struct intel_memory_region *mem)  in i915_gem_object_init_memory_region()  argument
16 obj->mm.region = mem; in i915_gem_object_init_memory_region()
18 mutex_lock(&mem->objects.lock); in i915_gem_object_init_memory_region()
19 list_add(&obj->mm.region_link, &mem->objects.list); in i915_gem_object_init_memory_region()
20 mutex_unlock(&mem->objects.lock); in i915_gem_object_init_memory_region()
25 struct intel_memory_region *mem = obj->mm.region; in i915_gem_object_release_memory_region() local
27 mutex_lock(&mem->objects.lock); in i915_gem_object_release_memory_region()
29 mutex_unlock(&mem->objects.lock); in i915_gem_object_release_memory_region()
33 __i915_gem_object_create_region(struct intel_memory_region *mem, in __i915_gem_object_create_region() argument
56 if (!mem) in __i915_gem_object_create_region()
59 default_page_size = mem->min_page_size; in __i915_gem_object_create_region()
91 if (default_page_size < mem->min_page_size) in __i915_gem_object_create_region()
94 err = mem->ops->init_object(mem, obj, offset, size, page_size, flags); in __i915_gem_object_create_region()
107 i915_gem_object_create_region(struct intel_memory_region *mem, in i915_gem_object_create_region() argument
112 return __i915_gem_object_create_region(mem, I915_BO_INVALID_OFFSET, in i915_gem_object_create_region()
117 i915_gem_object_create_region_at(struct intel_memory_region *mem, in i915_gem_object_create_region_at() argument
124 if (GEM_WARN_ON(!IS_ALIGNED(size, mem->min_page_size)) || in i915_gem_object_create_region_at()
125 GEM_WARN_ON(!IS_ALIGNED(offset, mem->min_page_size))) in i915_gem_object_create_region_at()
128 if (range_overflows(offset, size, resource_size(&mem->region))) in i915_gem_object_create_region_at()
132 offset + size > mem->io_size && in i915_gem_object_create_region_at()
133 !i915_ggtt_has_aperture(to_gt(mem->i915)->ggtt)) in i915_gem_object_create_region_at()
136 return __i915_gem_object_create_region(mem, offset, size, 0, in i915_gem_object_create_region_at()