Lines Matching refs:vma_res
504 struct i915_vma_resource *vma_res, in xehp_ppgtt_insert_huge() argument
511 u64 start = vma_res->start; in xehp_ppgtt_insert_huge()
512 u64 end = start + vma_res->vma_size; in xehp_ppgtt_insert_huge()
531 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in xehp_ppgtt_insert_huge()
544 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K) { in xehp_ppgtt_insert_huge()
607 vma_res->page_sizes_gtt |= page_size; in xehp_ppgtt_insert_huge()
612 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert_huge() argument
619 u64 start = vma_res->start; in gen8_ppgtt_insert_huge()
634 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
651 vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
701 !iter->sg && IS_ALIGNED(vma_res->start + in gen8_ppgtt_insert_huge()
702 vma_res->node_size, in gen8_ppgtt_insert_huge()
731 vma_res->page_sizes_gtt |= page_size; in gen8_ppgtt_insert_huge()
736 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert() argument
741 struct sgt_dma iter = sgt_dma(vma_res); in gen8_ppgtt_insert()
743 if (vma_res->bi.page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
745 xehp_ppgtt_insert_huge(vm, vma_res, &iter, pat_index, flags); in gen8_ppgtt_insert()
747 gen8_ppgtt_insert_huge(vm, vma_res, &iter, pat_index, flags); in gen8_ppgtt_insert()
749 u64 idx = vma_res->start >> GEN8_PTE_SHIFT; in gen8_ppgtt_insert()
759 vma_res->page_sizes_gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()