Home
last modified time | relevance | path

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

/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.h186 static inline void i915_refct_sgt_put(struct i915_refct_sgt *rsgt) in i915_refct_sgt_put() argument
188 if (rsgt) in i915_refct_sgt_put()
189 kref_put(&rsgt->kref, rsgt->ops->release); in i915_refct_sgt_put()
197 i915_refct_sgt_get(struct i915_refct_sgt *rsgt) in i915_refct_sgt_get() argument
199 kref_get(&rsgt->kref); in i915_refct_sgt_get()
200 return rsgt; in i915_refct_sgt_get()
211 static inline void __i915_refct_sgt_init(struct i915_refct_sgt *rsgt, in __i915_refct_sgt_init() argument
215 kref_init(&rsgt->kref); in __i915_refct_sgt_init()
216 rsgt->table.sgl = NULL; in __i915_refct_sgt_init()
217 rsgt->size = size; in __i915_refct_sgt_init()
[all …]
Di915_vma.c417 obj->mm.rsgt, i915_gem_object_is_readonly(obj), in i915_vma_resource_init_from_vma()
2029 &vma->obj->mm.rsgt->table != vma->resource->bi.pages) in __i915_vma_unbind_async()
2114 if (!obj->mm.rsgt) in i915_vma_unbind_async()
/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()
/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c582 struct i915_refct_sgt *rsgt; in i915_ttm_resource_get_st() local
584 rsgt = intel_region_ttm_resource_to_rsgt(obj->mm.region, in i915_ttm_resource_get_st()
587 if (IS_ERR(rsgt)) in i915_ttm_resource_get_st()
588 return rsgt; in i915_ttm_resource_get_st()
590 obj->ttm.cached_io_rsgt = rsgt; in i915_ttm_resource_get_st()
769 struct i915_refct_sgt *rsgt = in __i915_ttm_get_pages() local
772 if (IS_ERR(rsgt)) in __i915_ttm_get_pages()
773 return PTR_ERR(rsgt); in __i915_ttm_get_pages()
775 GEM_BUG_ON(obj->mm.rsgt); in __i915_ttm_get_pages()
776 obj->mm.rsgt = rsgt; in __i915_ttm_get_pages()
[all …]
Di915_gem_object_types.h598 struct i915_refct_sgt *rsgt; member