Lines Matching refs:pte
242 static void release_pte(pte_t pte) in release_pte() argument
248 if (pte_flags(pte) & _PAGE_PRESENT) in release_pte()
249 put_page(pte_page(pte)); in release_pte()
799 pte_t *pte = find_spte(cpu, switcher_addr + i * PAGE_SIZE, true, in allocate_switcher_mapping() local
801 if (!pte) in allocate_switcher_mapping()
810 if (i == 0 && !(pte_flags(*pte) & _PAGE_PRESENT)) { in allocate_switcher_mapping()
814 set_pte(pte, in allocate_switcher_mapping()
1145 pte_t *pte; in remove_switcher_percpu_map() local
1148 pte = find_spte(cpu, base, false, 0, 0); in remove_switcher_percpu_map()
1149 release_pte(*pte); in remove_switcher_percpu_map()
1150 set_pte(pte, __pte(0)); in remove_switcher_percpu_map()
1152 pte = find_spte(cpu, base + PAGE_SIZE, false, 0, 0); in remove_switcher_percpu_map()
1153 release_pte(*pte); in remove_switcher_percpu_map()
1154 set_pte(pte, __pte(0)); in remove_switcher_percpu_map()
1171 pte_t *pte; in map_switcher_in_guest() local
1208 pte = find_spte(cpu, base, false, 0, 0); in map_switcher_in_guest()
1211 set_pte(pte, mk_pte(regs_page, __pgprot(__PAGE_KERNEL & ~_PAGE_GLOBAL))); in map_switcher_in_guest()
1218 pte = find_spte(cpu, base + PAGE_SIZE, false, 0, 0); in map_switcher_in_guest()
1222 set_pte(pte, mk_pte(percpu_switcher_page, in map_switcher_in_guest()