Lines Matching refs:vma_res
348 struct i915_vma_resource *vma_res; member
358 struct i915_vma_resource *vma_res = vw->vma_res; in __vma_bind() local
369 vma_res->ops->bind_vma(vma_res->vm, &vw->stash, in __vma_bind()
370 vma_res, vw->pat_index, vw->flags); in __vma_bind()
381 if (vw->vma_res) in __vma_release()
382 i915_vma_resource_put(vw->vma_res); in __vma_release()
447 i915_vma_resource_init_from_vma(struct i915_vma_resource *vma_res, in i915_vma_resource_init_from_vma() argument
452 i915_vma_resource_init(vma_res, vma->vm, vma->pages, &vma->page_sizes, in i915_vma_resource_init_from_vma()
476 struct i915_vma_resource *vma_res) in i915_vma_bind() argument
489 i915_vma_resource_free(vma_res); in i915_vma_bind()
494 i915_vma_resource_free(vma_res); in i915_vma_bind()
506 i915_vma_resource_free(vma_res); in i915_vma_bind()
526 i915_vma_resource_free(vma_res); in i915_vma_bind()
530 if (vma->resource || !vma_res) { in i915_vma_bind()
533 i915_vma_resource_free(vma_res); in i915_vma_bind()
535 i915_vma_resource_init_from_vma(vma_res, vma); in i915_vma_bind()
536 vma->resource = vma_res; in i915_vma_bind()
542 work->vma_res = i915_vma_resource_get(vma->resource); in i915_vma_bind()
1437 struct i915_vma_resource *vma_res = NULL; in i915_vma_pin_ww() local
1501 vma_res = i915_vma_resource_alloc(); in i915_vma_pin_ww()
1502 if (IS_ERR(vma_res)) { in i915_vma_pin_ww()
1503 err = PTR_ERR(vma_res); in i915_vma_pin_ww()
1569 flags, work, vma_res); in i915_vma_pin_ww()
1570 vma_res = NULL; in i915_vma_pin_ww()
1596 i915_vma_resource_free(vma_res); in i915_vma_pin_ww()
2013 struct i915_vma_resource *vma_res = vma->resource; in __i915_vma_evict() local
2053 vma_res->needs_wakeref = i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND) && in __i915_vma_evict()
2055 vma_res->skip_pte_rewrite = !kref_read(&vma->vm->ref) || in __i915_vma_evict()
2060 unbind_fence = i915_vma_resource_unbind(vma_res, in __i915_vma_evict()
2063 unbind_fence = i915_vma_resource_unbind(vma_res, NULL); in __i915_vma_evict()