Lines Matching refs:vma_res

127 bool i915_vma_resource_hold(struct i915_vma_resource *vma_res,
130 void i915_vma_resource_unhold(struct i915_vma_resource *vma_res,
135 void i915_vma_resource_free(struct i915_vma_resource *vma_res);
137 struct dma_fence *i915_vma_resource_unbind(struct i915_vma_resource *vma_res,
140 void __i915_vma_resource_init(struct i915_vma_resource *vma_res);
149 *i915_vma_resource_get(struct i915_vma_resource *vma_res) in i915_vma_resource_get() argument
151 dma_fence_get(&vma_res->unbind_fence); in i915_vma_resource_get()
152 return vma_res; in i915_vma_resource_get()
159 static inline void i915_vma_resource_put(struct i915_vma_resource *vma_res) in i915_vma_resource_put() argument
161 dma_fence_put(&vma_res->unbind_fence); in i915_vma_resource_put()
186 static inline void i915_vma_resource_init(struct i915_vma_resource *vma_res, in i915_vma_resource_init() argument
200 __i915_vma_resource_init(vma_res); in i915_vma_resource_init()
201 vma_res->vm = vm; in i915_vma_resource_init()
202 vma_res->bi.pages = pages; in i915_vma_resource_init()
203 vma_res->bi.page_sizes = *page_sizes; in i915_vma_resource_init()
205 vma_res->bi.pages_rsgt = i915_refct_sgt_get(pages_rsgt); in i915_vma_resource_init()
206 vma_res->bi.readonly = readonly; in i915_vma_resource_init()
207 vma_res->bi.lmem = lmem; in i915_vma_resource_init()
209 vma_res->mr = mr; in i915_vma_resource_init()
211 vma_res->ops = ops; in i915_vma_resource_init()
212 vma_res->private = private; in i915_vma_resource_init()
213 vma_res->start = start; in i915_vma_resource_init()
214 vma_res->node_size = node_size; in i915_vma_resource_init()
215 vma_res->vma_size = size; in i915_vma_resource_init()
218 static inline void i915_vma_resource_fini(struct i915_vma_resource *vma_res) in i915_vma_resource_fini() argument
220 GEM_BUG_ON(refcount_read(&vma_res->hold_count) != 1); in i915_vma_resource_fini()
221 if (vma_res->bi.pages_rsgt) in i915_vma_resource_fini()
222 i915_refct_sgt_put(vma_res->bi.pages_rsgt); in i915_vma_resource_fini()
223 i915_sw_fence_fini(&vma_res->chain); in i915_vma_resource_fini()