Lines Matching defs:cpu

83 static pgd_t *spgd_addr(struct lg_cpu *cpu, u32 i, unsigned long vaddr)  in spgd_addr()
97 static pmd_t *spmd_addr(struct lg_cpu *cpu, pgd_t spgd, unsigned long vaddr) in spmd_addr()
115 static pte_t *spte_addr(struct lg_cpu *cpu, pgd_t spgd, unsigned long vaddr) in spte_addr()
136 static unsigned long gpgd_addr(struct lg_cpu *cpu, unsigned long vaddr) in gpgd_addr()
152 static unsigned long gpte_addr(struct lg_cpu *cpu, in gpte_addr()
162 static unsigned long gpte_addr(struct lg_cpu *cpu, in gpte_addr()
206 static pte_t gpte_to_spte(struct lg_cpu *cpu, pte_t gpte, int write) in gpte_to_spte()
253 static bool gpte_in_iomem(struct lg_cpu *cpu, pte_t gpte) in gpte_in_iomem()
263 static bool check_gpte(struct lg_cpu *cpu, pte_t gpte) in check_gpte()
273 static bool check_gpgd(struct lg_cpu *cpu, pgd_t gpgd) in check_gpgd()
284 static bool check_gpmd(struct lg_cpu *cpu, pmd_t gpmd) in check_gpmd()
303 static pte_t *find_spte(struct lg_cpu *cpu, unsigned long vaddr, bool allocate, in find_spte()
393 bool demand_page(struct lg_cpu *cpu, unsigned long vaddr, int errcode, in demand_page()
551 static bool page_writable(struct lg_cpu *cpu, unsigned long vaddr) in page_writable()
578 void pin_page(struct lg_cpu *cpu, unsigned long vaddr) in pin_page()
668 void guest_pagetable_flush_user(struct lg_cpu *cpu) in guest_pagetable_flush_user()
676 bool __guest_pa(struct lg_cpu *cpu, unsigned long vaddr, unsigned long *paddr) in __guest_pa()
719 unsigned long guest_pa(struct lg_cpu *cpu, unsigned long vaddr) in guest_pa()
747 static unsigned int new_pgdir(struct lg_cpu *cpu, in new_pgdir()
794 static bool allocate_switcher_mapping(struct lg_cpu *cpu) in allocate_switcher_mapping()
850 void guest_pagetable_clear_all(struct lg_cpu *cpu) in guest_pagetable_clear_all()
867 void guest_new_pagetable(struct lg_cpu *cpu, unsigned long pgtable) in guest_new_pagetable()
932 static void __guest_set_pte(struct lg_cpu *cpu, int idx, in __guest_set_pte()
989 void guest_set_pte(struct lg_cpu *cpu, in guest_set_pte()
1075 struct lg_cpu *cpu = &lg->cpus[0]; in init_guest_pagetable() local
1096 void page_table_guest_data_init(struct lg_cpu *cpu) in page_table_guest_data_init()
1142 static void remove_switcher_percpu_map(struct lg_cpu *cpu, unsigned int i) in remove_switcher_percpu_map()
1167 void map_switcher_in_guest(struct lg_cpu *cpu, struct lguest_pages *pages) in map_switcher_in_guest()