Lines Matching refs:rsgt
45 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()
98 st = &rsgt->table; in i915_rsgt_from_mm_node()
102 i915_refct_sgt_put(rsgt); in i915_rsgt_from_mm_node()
108 i915_refct_sgt_put(rsgt); in i915_rsgt_from_mm_node()
146 return rsgt; in i915_rsgt_from_mm_node()
173 struct i915_refct_sgt *rsgt; in i915_rsgt_from_buddy_resource() local
181 rsgt = kmalloc(sizeof(*rsgt), GFP_KERNEL); in i915_rsgt_from_buddy_resource()
182 if (!rsgt) in i915_rsgt_from_buddy_resource()
185 i915_refct_sgt_init(rsgt, size); in i915_rsgt_from_buddy_resource()
186 st = &rsgt->table; in i915_rsgt_from_buddy_resource()
189 i915_refct_sgt_put(rsgt); in i915_rsgt_from_buddy_resource()
194 i915_refct_sgt_put(rsgt); in i915_rsgt_from_buddy_resource()
237 return rsgt; in i915_rsgt_from_buddy_resource()