Lines Matching refs:vma_res

312 	struct i915_vma_resource *vma_res;  member
322 struct i915_vma_resource *vma_res = vw->vma_res; in __vma_bind() local
333 vma_res->ops->bind_vma(vma_res->vm, &vw->stash, in __vma_bind()
334 vma_res, vw->cache_level, vw->flags); in __vma_bind()
345 if (vw->vma_res) in __vma_release()
346 i915_vma_resource_put(vw->vma_res); in __vma_release()
411 i915_vma_resource_init_from_vma(struct i915_vma_resource *vma_res, in i915_vma_resource_init_from_vma() argument
416 i915_vma_resource_init(vma_res, vma->vm, vma->pages, &vma->page_sizes, in i915_vma_resource_init_from_vma()
440 struct i915_vma_resource *vma_res) in i915_vma_bind() argument
453 i915_vma_resource_free(vma_res); in i915_vma_bind()
458 i915_vma_resource_free(vma_res); in i915_vma_bind()
470 i915_vma_resource_free(vma_res); in i915_vma_bind()
490 i915_vma_resource_free(vma_res); in i915_vma_bind()
494 if (vma->resource || !vma_res) { in i915_vma_bind()
497 i915_vma_resource_free(vma_res); in i915_vma_bind()
499 i915_vma_resource_init_from_vma(vma_res, vma); in i915_vma_bind()
500 vma->resource = vma_res; in i915_vma_bind()
506 work->vma_res = i915_vma_resource_get(vma->resource); in i915_vma_bind()
1367 struct i915_vma_resource *vma_res = NULL; in i915_vma_pin_ww() local
1425 vma_res = i915_vma_resource_alloc(); in i915_vma_pin_ww()
1426 if (IS_ERR(vma_res)) { in i915_vma_pin_ww()
1427 err = PTR_ERR(vma_res); in i915_vma_pin_ww()
1493 flags, work, vma_res); in i915_vma_pin_ww()
1494 vma_res = NULL; in i915_vma_pin_ww()
1520 i915_vma_resource_free(vma_res); in i915_vma_pin_ww()
1910 struct i915_vma_resource *vma_res = vma->resource; in __i915_vma_evict() local
1950 vma_res->needs_wakeref = i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND) && in __i915_vma_evict()
1952 vma_res->skip_pte_rewrite = !kref_read(&vma->vm->ref) || in __i915_vma_evict()
1957 unbind_fence = i915_vma_resource_unbind(vma_res, in __i915_vma_evict()
1960 unbind_fence = i915_vma_resource_unbind(vma_res, NULL); in __i915_vma_evict()