Lines Matching refs:gma
471 static unsigned long gma_to_ggtt_pte_index(unsigned long gma) in gma_to_ggtt_pte_index() argument
473 unsigned long x = (gma >> I915_GTT_PAGE_SHIFT); in gma_to_ggtt_pte_index()
475 trace_gma_index(__func__, gma, x); in gma_to_ggtt_pte_index()
480 static unsigned long prefix##_gma_to_##ename##_index(unsigned long gma) \
483 trace_gma_index(__func__, gma, x); \
487 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pte, (gma >> 12 & 0x1ff));
488 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pde, (gma >> 21 & 0x1ff));
489 DEFINE_PPGTT_GMA_TO_INDEX(gen8, l3_pdp, (gma >> 30 & 0x3));
490 DEFINE_PPGTT_GMA_TO_INDEX(gen8, l4_pdp, (gma >> 30 & 0x1ff));
491 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pml4, (gma >> 39 & 0x1ff));
2026 unsigned long intel_vgpu_gma_to_gpa(struct intel_vgpu_mm *mm, unsigned long gma) in intel_vgpu_gma_to_gpa() argument
2042 if (!vgpu_gmadr_is_valid(vgpu, gma)) in intel_vgpu_gma_to_gpa()
2046 gma_ops->gma_to_ggtt_pte_index(gma)); in intel_vgpu_gma_to_gpa()
2049 + (gma & ~I915_GTT_PAGE_MASK); in intel_vgpu_gma_to_gpa()
2051 trace_gma_translate(vgpu->id, "ggtt", 0, 0, gma, gpa); in intel_vgpu_gma_to_gpa()
2057 gma_index[0] = gma_ops->gma_to_pml4_index(gma); in intel_vgpu_gma_to_gpa()
2058 gma_index[1] = gma_ops->gma_to_l4_pdp_index(gma); in intel_vgpu_gma_to_gpa()
2059 gma_index[2] = gma_ops->gma_to_pde_index(gma); in intel_vgpu_gma_to_gpa()
2060 gma_index[3] = gma_ops->gma_to_pte_index(gma); in intel_vgpu_gma_to_gpa()
2065 gma_ops->gma_to_l3_pdp_index(gma)); in intel_vgpu_gma_to_gpa()
2067 gma_index[0] = gma_ops->gma_to_pde_index(gma); in intel_vgpu_gma_to_gpa()
2068 gma_index[1] = gma_ops->gma_to_pte_index(gma); in intel_vgpu_gma_to_gpa()
2083 gvt_dbg_core("GMA 0x%lx is not present\n", gma); in intel_vgpu_gma_to_gpa()
2089 (gma & ~I915_GTT_PAGE_MASK); in intel_vgpu_gma_to_gpa()
2091 mm->ppgtt_mm.root_entry_type, gma, gpa); in intel_vgpu_gma_to_gpa()
2096 gvt_vgpu_err("invalid mm type: %d gma %lx\n", mm->type, gma); in intel_vgpu_gma_to_gpa()
2163 unsigned long gma, gfn; in emulate_ggtt_mmio_write() local
2171 gma = g_gtt_index << I915_GTT_PAGE_SHIFT; in emulate_ggtt_mmio_write()
2174 if (!vgpu_gmadr_is_valid(vgpu, gma)) in emulate_ggtt_mmio_write()