Lines Matching full:i915

63 int shmem_sg_alloc_table(struct drm_i915_private *i915, struct sg_table *st,  in shmem_sg_alloc_table()  argument
121 i915_gem_shrink(NULL, i915, 2 * page_count, NULL, *s++); in shmem_sg_alloc_table()
207 struct drm_i915_private *i915 = to_i915(obj->base.dev); in shmem_get_pages() local
210 unsigned int max_segment = i915_sg_segment_size(i915->drm.dev); in shmem_get_pages()
227 ret = shmem_sg_alloc_table(i915, st, obj->base.size, mem, mapping, in shmem_get_pages()
246 dev_warn(i915->drm.dev, in shmem_get_pages()
350 struct drm_i915_private *i915 = to_i915(obj->base.dev); in __i915_gem_object_release_shmem() local
371 if (!HAS_LLC(i915) && !IS_DGFX(i915)) in __i915_gem_object_release_shmem()
486 static int __create_shmem(struct drm_i915_private *i915, in __create_shmem() argument
493 drm_gem_private_object_init(&i915->drm, obj, size); in __create_shmem()
509 if (i915->mm.gemfs) in __create_shmem()
510 filp = shmem_file_setup_with_mnt(i915->mm.gemfs, "i915", size, in __create_shmem()
513 filp = shmem_file_setup("i915", size, flags); in __create_shmem()
536 struct drm_i915_private *i915 = mem->i915; in shmem_object_init() local
542 ret = __create_shmem(i915, &obj->base, size); in shmem_object_init()
547 if (IS_I965GM(i915) || IS_I965G(i915)) { in shmem_object_init()
569 if (HAS_LLC(i915) || (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70))) in shmem_object_init()
594 i915_gem_object_create_shmem(struct drm_i915_private *i915, in i915_gem_object_create_shmem() argument
597 return i915_gem_object_create_region(i915->mm.regions[INTEL_REGION_SMEM], in i915_gem_object_create_shmem()
603 i915_gem_object_create_shmem_from_data(struct drm_i915_private *i915, in i915_gem_object_create_shmem_from_data() argument
611 GEM_WARN_ON(IS_DGFX(i915)); in i915_gem_object_create_shmem_from_data()
612 obj = i915_gem_object_create_shmem(i915, round_up(size, PAGE_SIZE)); in i915_gem_object_create_shmem_from_data()
638 i915_gemfs_init(mem->i915); in init_shmem()
646 i915_gemfs_fini(mem->i915); in release_shmem()
656 struct intel_memory_region *i915_gem_shmem_setup(struct drm_i915_private *i915, in i915_gem_shmem_setup() argument
659 return intel_memory_region_create(i915, 0, in i915_gem_shmem_setup()