Home
last modified time | relevance | path

Searched refs:rsgt (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/i915/
Di915_scatterlist.c45 struct i915_refct_sgt *rsgt = in i915_refct_sgt_release() local
46 container_of(ref, typeof(*rsgt), kref); in i915_refct_sgt_release()
48 sg_free_table(&rsgt->table); in i915_refct_sgt_release()
49 kfree(rsgt); in i915_refct_sgt_release()
61 void i915_refct_sgt_init(struct i915_refct_sgt *rsgt, size_t size) in i915_refct_sgt_init() argument
63 __i915_refct_sgt_init(rsgt, size, &rsgt_ops); in i915_refct_sgt_init()
87 struct i915_refct_sgt *rsgt; in i915_rsgt_from_mm_node() local
93 rsgt = kmalloc(sizeof(*rsgt), GFP_KERNEL); in i915_rsgt_from_mm_node()
94 if (!rsgt) in i915_rsgt_from_mm_node()
97 i915_refct_sgt_init(rsgt, node->size << PAGE_SHIFT); in i915_rsgt_from_mm_node()
[all …]
Di915_scatterlist.h185 static inline void i915_refct_sgt_put(struct i915_refct_sgt *rsgt) in i915_refct_sgt_put() argument
187 if (rsgt) in i915_refct_sgt_put()
188 kref_put(&rsgt->kref, rsgt->ops->release); in i915_refct_sgt_put()
196 i915_refct_sgt_get(struct i915_refct_sgt *rsgt) in i915_refct_sgt_get() argument
198 kref_get(&rsgt->kref); in i915_refct_sgt_get()
199 return rsgt; in i915_refct_sgt_get()
210 static inline void __i915_refct_sgt_init(struct i915_refct_sgt *rsgt, in __i915_refct_sgt_init() argument
214 kref_init(&rsgt->kref); in __i915_refct_sgt_init()
215 rsgt->table.sgl = NULL; in __i915_refct_sgt_init()
216 rsgt->size = size; in __i915_refct_sgt_init()
[all …]
Di915_vma.c421 obj->mm.rsgt, i915_gem_object_is_readonly(obj), in i915_vma_resource_init_from_vma()
2097 &vma->obj->mm.rsgt->table != vma->resource->bi.pages) in __i915_vma_unbind_async()
2182 if (!obj->mm.rsgt) in i915_vma_unbind_async()
/Linux-v6.6/drivers/gpu/drm/i915/selftests/
Dmock_region.c18 i915_refct_sgt_put(obj->mm.rsgt); in mock_region_put_pages()
19 obj->mm.rsgt = NULL; in mock_region_put_pages()
35 obj->mm.rsgt = intel_region_ttm_resource_to_rsgt(obj->mm.region, in mock_region_get_pages()
38 if (IS_ERR(obj->mm.rsgt)) { in mock_region_get_pages()
39 err = PTR_ERR(obj->mm.rsgt); in mock_region_get_pages()
43 pages = &obj->mm.rsgt->table; in mock_region_get_pages()
/Linux-v6.6/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c589 struct i915_refct_sgt *rsgt; in i915_ttm_resource_get_st() local
591 rsgt = intel_region_ttm_resource_to_rsgt(obj->mm.region, in i915_ttm_resource_get_st()
594 if (IS_ERR(rsgt)) in i915_ttm_resource_get_st()
595 return rsgt; in i915_ttm_resource_get_st()
597 obj->ttm.cached_io_rsgt = rsgt; in i915_ttm_resource_get_st()
824 struct i915_refct_sgt *rsgt = in __i915_ttm_get_pages() local
827 if (IS_ERR(rsgt)) in __i915_ttm_get_pages()
828 return PTR_ERR(rsgt); in __i915_ttm_get_pages()
830 GEM_BUG_ON(obj->mm.rsgt); in __i915_ttm_get_pages()
831 obj->mm.rsgt = rsgt; in __i915_ttm_get_pages()
[all …]
Di915_gem_object_types.h652 struct i915_refct_sgt *rsgt; member