Lines Matching refs:vma_res
471 struct i915_vma_resource *vma_res, in xehpsdv_ppgtt_insert_huge() argument
478 u64 start = vma_res->start; in xehpsdv_ppgtt_insert_huge()
496 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in xehpsdv_ppgtt_insert_huge()
554 vma_res->page_sizes_gtt |= page_size; in xehpsdv_ppgtt_insert_huge()
559 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert_huge() argument
566 u64 start = vma_res->start; in gen8_ppgtt_insert_huge()
581 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
598 vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
648 !iter->sg && IS_ALIGNED(vma_res->start + in gen8_ppgtt_insert_huge()
649 vma_res->node_size, in gen8_ppgtt_insert_huge()
678 vma_res->page_sizes_gtt |= page_size; in gen8_ppgtt_insert_huge()
683 struct i915_vma_resource *vma_res, in gen8_ppgtt_insert() argument
688 struct sgt_dma iter = sgt_dma(vma_res); in gen8_ppgtt_insert()
690 if (vma_res->bi.page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
692 xehpsdv_ppgtt_insert_huge(vm, vma_res, &iter, cache_level, flags); in gen8_ppgtt_insert()
694 gen8_ppgtt_insert_huge(vm, vma_res, &iter, cache_level, flags); in gen8_ppgtt_insert()
696 u64 idx = vma_res->start >> GEN8_PTE_SHIFT; in gen8_ppgtt_insert()
706 vma_res->page_sizes_gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()