Home
last modified time | relevance | path

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

/linux-5.19.10/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.h178 static inline void i915_refct_sgt_put(struct i915_refct_sgt *rsgt) in i915_refct_sgt_put() argument
180 if (rsgt) in i915_refct_sgt_put()
181 kref_put(&rsgt->kref, rsgt->ops->release); in i915_refct_sgt_put()
189 i915_refct_sgt_get(struct i915_refct_sgt *rsgt) in i915_refct_sgt_get() argument
191 kref_get(&rsgt->kref); in i915_refct_sgt_get()
192 return rsgt; in i915_refct_sgt_get()
203 static inline void __i915_refct_sgt_init(struct i915_refct_sgt *rsgt, in __i915_refct_sgt_init() argument
207 kref_init(&rsgt->kref); in __i915_refct_sgt_init()
208 rsgt->table.sgl = NULL; in __i915_refct_sgt_init()
209 rsgt->size = size; in __i915_refct_sgt_init()
[all …]
Di915_vma.c409 obj->mm.rsgt, i915_gem_object_is_readonly(obj), in i915_vma_resource_init_from_vma()
2014 &vma->obj->mm.rsgt->table != vma->resource->bi.pages) in __i915_vma_unbind_async()
2099 if (!obj->mm.rsgt) in i915_vma_unbind_async()
/linux-5.19.10/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-5.19.10/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c639 struct i915_refct_sgt *rsgt; in i915_ttm_resource_get_st() local
641 rsgt = intel_region_ttm_resource_to_rsgt(obj->mm.region, in i915_ttm_resource_get_st()
644 if (IS_ERR(rsgt)) in i915_ttm_resource_get_st()
645 return rsgt; in i915_ttm_resource_get_st()
647 obj->ttm.cached_io_rsgt = rsgt; in i915_ttm_resource_get_st()
798 struct i915_refct_sgt *rsgt = in __i915_ttm_get_pages() local
801 if (IS_ERR(rsgt)) in __i915_ttm_get_pages()
802 return PTR_ERR(rsgt); in __i915_ttm_get_pages()
804 GEM_BUG_ON(obj->mm.rsgt); in __i915_ttm_get_pages()
805 obj->mm.rsgt = rsgt; in __i915_ttm_get_pages()
[all …]
Di915_gem_object_types.h573 struct i915_refct_sgt *rsgt; member