Lines Matching refs:vma_res

141 bool i915_vma_resource_hold(struct i915_vma_resource *vma_res,
144 void i915_vma_resource_unhold(struct i915_vma_resource *vma_res,
149 void i915_vma_resource_free(struct i915_vma_resource *vma_res);
151 struct dma_fence *i915_vma_resource_unbind(struct i915_vma_resource *vma_res,
154 void __i915_vma_resource_init(struct i915_vma_resource *vma_res);
163 *i915_vma_resource_get(struct i915_vma_resource *vma_res) in i915_vma_resource_get() argument
165 dma_fence_get(&vma_res->unbind_fence); in i915_vma_resource_get()
166 return vma_res; in i915_vma_resource_get()
173 static inline void i915_vma_resource_put(struct i915_vma_resource *vma_res) in i915_vma_resource_put() argument
175 dma_fence_put(&vma_res->unbind_fence); in i915_vma_resource_put()
201 static inline void i915_vma_resource_init(struct i915_vma_resource *vma_res, in i915_vma_resource_init() argument
216 __i915_vma_resource_init(vma_res); in i915_vma_resource_init()
217 vma_res->vm = vm; in i915_vma_resource_init()
218 vma_res->bi.pages = pages; in i915_vma_resource_init()
219 vma_res->bi.page_sizes = *page_sizes; in i915_vma_resource_init()
221 vma_res->bi.pages_rsgt = i915_refct_sgt_get(pages_rsgt); in i915_vma_resource_init()
222 vma_res->bi.readonly = readonly; in i915_vma_resource_init()
223 vma_res->bi.lmem = lmem; in i915_vma_resource_init()
225 vma_res->mr = mr; in i915_vma_resource_init()
227 vma_res->ops = ops; in i915_vma_resource_init()
228 vma_res->private = private; in i915_vma_resource_init()
229 vma_res->start = start; in i915_vma_resource_init()
230 vma_res->node_size = node_size; in i915_vma_resource_init()
231 vma_res->vma_size = size; in i915_vma_resource_init()
232 vma_res->guard = guard; in i915_vma_resource_init()
235 static inline void i915_vma_resource_fini(struct i915_vma_resource *vma_res) in i915_vma_resource_fini() argument
237 GEM_BUG_ON(refcount_read(&vma_res->hold_count) != 1); in i915_vma_resource_fini()
238 if (vma_res->bi.pages_rsgt) in i915_vma_resource_fini()
239 i915_refct_sgt_put(vma_res->bi.pages_rsgt); in i915_vma_resource_fini()
240 i915_sw_fence_fini(&vma_res->chain); in i915_vma_resource_fini()