Lines Matching refs:rsgt
186 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()
218 rsgt->ops = ops; in __i915_refct_sgt_init()
221 void i915_refct_sgt_init(struct i915_refct_sgt *rsgt, size_t size);