Lines Matching refs:pgd
71 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, p4d_t *p4d) in pgd_populate() argument
76 set_pgd(pgd, __pgd((pfn << _PAGE_PFN_SHIFT) | _PAGE_TABLE)); in pgd_populate()
80 static inline void pgd_populate_safe(struct mm_struct *mm, pgd_t *pgd, in pgd_populate_safe() argument
86 set_pgd_safe(pgd, in pgd_populate_safe()
153 static inline void sync_kernel_mappings(pgd_t *pgd) in sync_kernel_mappings() argument
155 memcpy(pgd + USER_PTRS_PER_PGD, in sync_kernel_mappings()
156 init_mm.pgd + USER_PTRS_PER_PGD, in sync_kernel_mappings()
162 pgd_t *pgd; in pgd_alloc() local
164 pgd = (pgd_t *)__get_free_page(GFP_KERNEL); in pgd_alloc()
165 if (likely(pgd != NULL)) { in pgd_alloc()
166 memset(pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
168 sync_kernel_mappings(pgd); in pgd_alloc()
170 return pgd; in pgd_alloc()