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()
757 pte_t *pte = find_spte(cpu, switcher_addr + i * PAGE_SIZE, true, in allocate_switcher_mapping() local
759 if (!pte) in allocate_switcher_mapping()
768 if (i == 0 && !(pte_flags(*pte) & _PAGE_PRESENT)) { in allocate_switcher_mapping()
772 set_pte(pte, in allocate_switcher_mapping()
1102 pte_t *pte; in remove_switcher_percpu_map() local
1105 pte = find_spte(cpu, base, false, 0, 0); in remove_switcher_percpu_map()
1106 release_pte(*pte); in remove_switcher_percpu_map()
1107 set_pte(pte, __pte(0)); in remove_switcher_percpu_map()
1109 pte = find_spte(cpu, base + PAGE_SIZE, false, 0, 0); in remove_switcher_percpu_map()
1110 release_pte(*pte); in remove_switcher_percpu_map()
1111 set_pte(pte, __pte(0)); in remove_switcher_percpu_map()
1128 pte_t *pte; in map_switcher_in_guest() local
1165 pte = find_spte(cpu, base, false, 0, 0); in map_switcher_in_guest()
1168 set_pte(pte, mk_pte(regs_page, __pgprot(__PAGE_KERNEL & ~_PAGE_GLOBAL))); in map_switcher_in_guest()
1175 pte = find_spte(cpu, base + PAGE_SIZE, false, 0, 0); in map_switcher_in_guest()
1179 set_pte(pte, mk_pte(percpu_switcher_page, in map_switcher_in_guest()