Lines Matching refs:pte_list
899 unsigned long *pte_list) in pte_list_add() argument
904 if (!*pte_list) { in pte_list_add()
906 *pte_list = (unsigned long)spte; in pte_list_add()
907 } else if (!(*pte_list & 1)) { in pte_list_add()
910 desc->sptes[0] = (u64 *)*pte_list; in pte_list_add()
912 *pte_list = (unsigned long)desc | 1; in pte_list_add()
916 desc = (struct pte_list_desc *)(*pte_list & ~1ul); in pte_list_add()
933 pte_list_desc_remove_entry(unsigned long *pte_list, struct pte_list_desc *desc, in pte_list_desc_remove_entry() argument
945 *pte_list = (unsigned long)desc->sptes[0]; in pte_list_desc_remove_entry()
950 *pte_list = (unsigned long)desc->more | 1; in pte_list_desc_remove_entry()
954 static void pte_list_remove(u64 *spte, unsigned long *pte_list) in pte_list_remove() argument
960 if (!*pte_list) { in pte_list_remove()
963 } else if (!(*pte_list & 1)) { in pte_list_remove()
965 if ((u64 *)*pte_list != spte) { in pte_list_remove()
969 *pte_list = 0; in pte_list_remove()
972 desc = (struct pte_list_desc *)(*pte_list & ~1ul); in pte_list_remove()
977 pte_list_desc_remove_entry(pte_list, in pte_list_remove()
991 static void pte_list_walk(unsigned long *pte_list, pte_list_walk_fn fn) in pte_list_walk() argument
996 if (!*pte_list) in pte_list_walk()
999 if (!(*pte_list & 1)) in pte_list_walk()
1000 return fn((u64 *)*pte_list); in pte_list_walk()
1002 desc = (struct pte_list_desc *)(*pte_list & ~1ul); in pte_list_walk()