Lines Matching refs:vma_res

466 				     struct i915_vma_resource *vma_res,  in gen8_ggtt_insert_entries()  argument
483 gte += (vma_res->start - vma_res->guard) / I915_GTT_PAGE_SIZE; in gen8_ggtt_insert_entries()
484 end = gte + vma_res->guard / I915_GTT_PAGE_SIZE; in gen8_ggtt_insert_entries()
487 end += (vma_res->node_size + vma_res->guard) / I915_GTT_PAGE_SIZE; in gen8_ggtt_insert_entries()
489 for_each_sgt_daddr(addr, iter, vma_res->bi.pages) in gen8_ggtt_insert_entries()
505 struct i915_vma_resource *vma_res, in __gen8_ggtt_insert_entries_bind() argument
514 start = (vma_res->start - vma_res->guard) / I915_GTT_PAGE_SIZE; in __gen8_ggtt_insert_entries_bind()
515 end = start + vma_res->guard / I915_GTT_PAGE_SIZE; in __gen8_ggtt_insert_entries_bind()
520 end += (vma_res->node_size + vma_res->guard) / I915_GTT_PAGE_SIZE; in __gen8_ggtt_insert_entries_bind()
521 if (!gen8_ggtt_bind_ptes(ggtt, start, vma_res->bi.pages, in __gen8_ggtt_insert_entries_bind()
522 vma_res->node_size / I915_GTT_PAGE_SIZE, pte_encode)) in __gen8_ggtt_insert_entries_bind()
525 start += vma_res->node_size / I915_GTT_PAGE_SIZE; in __gen8_ggtt_insert_entries_bind()
536 struct i915_vma_resource *vma_res, in gen8_ggtt_insert_entries_bind() argument
542 __gen8_ggtt_insert_entries_bind(vm, vma_res, pat_index, flags)) in gen8_ggtt_insert_entries_bind()
545 gen8_ggtt_insert_entries(vm, vma_res, pat_index, flags); in gen8_ggtt_insert_entries_bind()
612 struct i915_vma_resource *vma_res, in gen6_ggtt_insert_entries() argument
623 gte += (vma_res->start - vma_res->guard) / I915_GTT_PAGE_SIZE; in gen6_ggtt_insert_entries()
625 end = gte + vma_res->guard / I915_GTT_PAGE_SIZE; in gen6_ggtt_insert_entries()
628 end += (vma_res->node_size + vma_res->guard) / I915_GTT_PAGE_SIZE; in gen6_ggtt_insert_entries()
629 for_each_sgt_daddr(addr, iter, vma_res->bi.pages) in gen6_ggtt_insert_entries()
692 struct i915_vma_resource *vma_res; member
701 gen8_ggtt_insert_entries(arg->vm, arg->vma_res, in bxt_vtd_ggtt_insert_entries__cb()
709 struct i915_vma_resource *vma_res, in bxt_vtd_ggtt_insert_entries__BKL() argument
713 struct insert_entries arg = { vm, vma_res, pat_index, flags }; in bxt_vtd_ggtt_insert_entries__BKL()
741 struct i915_vma_resource *vma_res, in intel_ggtt_bind_vma() argument
747 if (vma_res->bound_flags & (~flags & I915_VMA_BIND_MASK)) in intel_ggtt_bind_vma()
750 vma_res->bound_flags |= flags; in intel_ggtt_bind_vma()
754 if (vma_res->bi.readonly) in intel_ggtt_bind_vma()
756 if (vma_res->bi.lmem) in intel_ggtt_bind_vma()
759 vm->insert_entries(vm, vma_res, pat_index, pte_flags); in intel_ggtt_bind_vma()
760 vma_res->page_sizes_gtt = I915_GTT_PAGE_SIZE; in intel_ggtt_bind_vma()
764 struct i915_vma_resource *vma_res) in intel_ggtt_unbind_vma() argument
766 vm->clear_range(vm, vma_res->start, vma_res->vma_size); in intel_ggtt_unbind_vma()
918 struct i915_vma_resource *vma_res, in aliasing_gtt_bind_vma() argument
926 if (vma_res->bi.readonly) in aliasing_gtt_bind_vma()
931 stash, vma_res, pat_index, flags); in aliasing_gtt_bind_vma()
934 vm->insert_entries(vm, vma_res, pat_index, pte_flags); in aliasing_gtt_bind_vma()
936 vma_res->bound_flags |= flags; in aliasing_gtt_bind_vma()
940 struct i915_vma_resource *vma_res) in aliasing_gtt_unbind_vma() argument
942 if (vma_res->bound_flags & I915_VMA_GLOBAL_BIND) in aliasing_gtt_unbind_vma()
943 vm->clear_range(vm, vma_res->start, vma_res->vma_size); in aliasing_gtt_unbind_vma()
945 if (vma_res->bound_flags & I915_VMA_LOCAL_BIND) in aliasing_gtt_unbind_vma()
946 ppgtt_unbind_vma(&i915_vm_to_ggtt(vm)->alias->vm, vma_res); in aliasing_gtt_unbind_vma()