Lines Matching refs:gma

478 static unsigned long gma_to_ggtt_pte_index(unsigned long gma)  in gma_to_ggtt_pte_index()  argument
480 unsigned long x = (gma >> I915_GTT_PAGE_SHIFT); in gma_to_ggtt_pte_index()
482 trace_gma_index(__func__, gma, x); in gma_to_ggtt_pte_index()
487 static unsigned long prefix##_gma_to_##ename##_index(unsigned long gma) \
490 trace_gma_index(__func__, gma, x); \
494 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pte, (gma >> 12 & 0x1ff));
495 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pde, (gma >> 21 & 0x1ff));
496 DEFINE_PPGTT_GMA_TO_INDEX(gen8, l3_pdp, (gma >> 30 & 0x3));
497 DEFINE_PPGTT_GMA_TO_INDEX(gen8, l4_pdp, (gma >> 30 & 0x1ff));
498 DEFINE_PPGTT_GMA_TO_INDEX(gen8, pml4, (gma >> 39 & 0x1ff));
2069 unsigned long intel_vgpu_gma_to_gpa(struct intel_vgpu_mm *mm, unsigned long gma) in intel_vgpu_gma_to_gpa() argument
2085 if (!vgpu_gmadr_is_valid(vgpu, gma)) in intel_vgpu_gma_to_gpa()
2089 gma_ops->gma_to_ggtt_pte_index(gma)); in intel_vgpu_gma_to_gpa()
2092 + (gma & ~I915_GTT_PAGE_MASK); in intel_vgpu_gma_to_gpa()
2094 trace_gma_translate(vgpu->id, "ggtt", 0, 0, gma, gpa); in intel_vgpu_gma_to_gpa()
2100 gma_index[0] = gma_ops->gma_to_pml4_index(gma); in intel_vgpu_gma_to_gpa()
2101 gma_index[1] = gma_ops->gma_to_l4_pdp_index(gma); in intel_vgpu_gma_to_gpa()
2102 gma_index[2] = gma_ops->gma_to_pde_index(gma); in intel_vgpu_gma_to_gpa()
2103 gma_index[3] = gma_ops->gma_to_pte_index(gma); in intel_vgpu_gma_to_gpa()
2108 gma_ops->gma_to_l3_pdp_index(gma)); in intel_vgpu_gma_to_gpa()
2110 gma_index[0] = gma_ops->gma_to_pde_index(gma); in intel_vgpu_gma_to_gpa()
2111 gma_index[1] = gma_ops->gma_to_pte_index(gma); in intel_vgpu_gma_to_gpa()
2126 gvt_dbg_core("GMA 0x%lx is not present\n", gma); in intel_vgpu_gma_to_gpa()
2132 (gma & ~I915_GTT_PAGE_MASK); in intel_vgpu_gma_to_gpa()
2134 mm->ppgtt_mm.root_entry_type, gma, gpa); in intel_vgpu_gma_to_gpa()
2139 gvt_vgpu_err("invalid mm type: %d gma %lx\n", mm->type, gma); in intel_vgpu_gma_to_gpa()
2149 unsigned long gma; in emulate_ggtt_mmio_read() local
2155 gma = index << I915_GTT_PAGE_SHIFT; in emulate_ggtt_mmio_read()
2157 gma, 1 << I915_GTT_PAGE_SHIFT)) { in emulate_ggtt_mmio_read()
2158 gvt_dbg_mm("read invalid ggtt at 0x%lx\n", gma); in emulate_ggtt_mmio_read()
2214 unsigned long gma, gfn; in emulate_ggtt_mmio_write() local
2225 gma = g_gtt_index << I915_GTT_PAGE_SHIFT; in emulate_ggtt_mmio_write()
2228 if (!vgpu_gmadr_is_valid(vgpu, gma)) in emulate_ggtt_mmio_write()