Lines Matching refs:pgd
124 pgd_t __pti_set_user_pgtbl(pgd_t *pgdp, pgd_t pgd) in __pti_set_user_pgtbl() argument
136 return pgd; in __pti_set_user_pgtbl()
142 kernel_to_user_pgdp(pgdp)->pgd = pgd.pgd; in __pti_set_user_pgtbl()
157 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl()
159 pgd.pgd |= _PAGE_NX; in __pti_set_user_pgtbl()
162 return pgd; in __pti_set_user_pgtbl()
173 pgd_t *pgd = kernel_to_user_pgdp(pgd_offset_k(address)); in pti_user_pagetable_walk_p4d() local
181 if (pgd_none(*pgd)) { in pti_user_pagetable_walk_p4d()
186 set_pgd(pgd, __pgd(_KERNPG_TABLE | __pa(new_p4d_page))); in pti_user_pagetable_walk_p4d()
188 BUILD_BUG_ON(pgd_large(*pgd) != 0); in pti_user_pagetable_walk_p4d()
190 return p4d_offset(pgd, address); in pti_user_pagetable_walk_p4d()
315 pgd_t *pgd; in pti_clone_pgtable() local
323 pgd = pgd_offset_k(addr); in pti_clone_pgtable()
324 if (WARN_ON(pgd_none(*pgd))) in pti_clone_pgtable()
326 p4d = p4d_offset(pgd, addr); in pti_clone_pgtable()