Lines Matching refs:ppgtt_mm

557 	entry->type = mm->ppgtt_mm.root_entry_type;  in _ppgtt_get_root_entry()
558 pte_ops->get_entry(guest ? mm->ppgtt_mm.guest_pdps : in _ppgtt_get_root_entry()
559 mm->ppgtt_mm.shadow_pdps, in _ppgtt_get_root_entry()
582 pte_ops->set_entry(guest ? mm->ppgtt_mm.guest_pdps : in _ppgtt_set_root_entry()
583 mm->ppgtt_mm.shadow_pdps, in _ppgtt_set_root_entry()
1762 if (!mm->ppgtt_mm.shadowed) in invalidate_ppgtt_mm()
1765 for (index = 0; index < ARRAY_SIZE(mm->ppgtt_mm.shadow_pdps); index++) { in invalidate_ppgtt_mm()
1779 mm->ppgtt_mm.shadowed = false; in invalidate_ppgtt_mm()
1793 if (mm->ppgtt_mm.shadowed) in shadow_ppgtt_mm()
1799 mm->ppgtt_mm.shadowed = true; in shadow_ppgtt_mm()
1801 for (index = 0; index < ARRAY_SIZE(mm->ppgtt_mm.guest_pdps); index++) { in shadow_ppgtt_mm()
1875 mm->ppgtt_mm.root_entry_type = root_entry_type; in intel_vgpu_create_ppgtt_mm()
1877 INIT_LIST_HEAD(&mm->ppgtt_mm.list); in intel_vgpu_create_ppgtt_mm()
1878 INIT_LIST_HEAD(&mm->ppgtt_mm.lru_list); in intel_vgpu_create_ppgtt_mm()
1879 INIT_LIST_HEAD(&mm->ppgtt_mm.link); in intel_vgpu_create_ppgtt_mm()
1882 mm->ppgtt_mm.guest_pdps[0] = pdps[0]; in intel_vgpu_create_ppgtt_mm()
1884 memcpy(mm->ppgtt_mm.guest_pdps, pdps, in intel_vgpu_create_ppgtt_mm()
1885 sizeof(mm->ppgtt_mm.guest_pdps)); in intel_vgpu_create_ppgtt_mm()
1894 list_add_tail(&mm->ppgtt_mm.list, &vgpu->gtt.ppgtt_mm_list_head); in intel_vgpu_create_ppgtt_mm()
1897 list_add_tail(&mm->ppgtt_mm.lru_list, &gvt->gtt.ppgtt_mm_lru_list_head); in intel_vgpu_create_ppgtt_mm()
1956 list_del(&mm->ppgtt_mm.list); in _intel_vgpu_mm_release()
1959 list_del(&mm->ppgtt_mm.lru_list); in _intel_vgpu_mm_release()
2006 list_move_tail(&mm->ppgtt_mm.lru_list, in intel_vgpu_pin_mm()
2022 mm = container_of(pos, struct intel_vgpu_mm, ppgtt_mm.lru_list); in reclaim_one_ppgtt_mm()
2027 list_del_init(&mm->ppgtt_mm.lru_list); in reclaim_one_ppgtt_mm()
2095 switch (mm->ppgtt_mm.root_entry_type) { in intel_vgpu_gma_to_gpa()
2133 mm->ppgtt_mm.root_entry_type, gma, gpa); in intel_vgpu_gma_to_gpa()
2492 mm = container_of(pos, struct intel_vgpu_mm, ppgtt_mm.list); in intel_vgpu_destroy_all_ppgtt_mm()
2608 mm = container_of(pos, struct intel_vgpu_mm, ppgtt_mm.list); in intel_vgpu_find_ppgtt_mm()
2610 switch (mm->ppgtt_mm.root_entry_type) { in intel_vgpu_find_ppgtt_mm()
2612 if (pdps[0] == mm->ppgtt_mm.guest_pdps[0]) in intel_vgpu_find_ppgtt_mm()
2616 if (!memcmp(pdps, mm->ppgtt_mm.guest_pdps, in intel_vgpu_find_ppgtt_mm()
2617 sizeof(mm->ppgtt_mm.guest_pdps))) in intel_vgpu_find_ppgtt_mm()
2765 mm = container_of(pos, struct intel_vgpu_mm, ppgtt_mm.list); in intel_vgpu_invalidate_ppgtt()
2768 list_del_init(&mm->ppgtt_mm.lru_list); in intel_vgpu_invalidate_ppgtt()
2770 if (mm->ppgtt_mm.shadowed) in intel_vgpu_invalidate_ppgtt()