Lines Matching refs:pgd
26 pgd_t *pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, in pgd_alloc() local
28 pgd_t *actual_pgd = pgd; in pgd_alloc()
30 if (likely(pgd != NULL)) { in pgd_alloc()
31 memset(pgd, 0, PAGE_SIZE<<PGD_ALLOC_ORDER); in pgd_alloc()
40 + (__u32)(__pa((unsigned long)pgd) >> PxD_VALUE_SHIFT)); in pgd_alloc()
43 __pgd_val_set(*pgd, PxD_FLAG_ATTACHED); in pgd_alloc()
50 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() argument
53 pgd -= PTRS_PER_PGD; in pgd_free()
55 free_pages((unsigned long)pgd, PGD_ALLOC_ORDER); in pgd_free()
62 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() argument
64 __pgd_val_set(*pgd, (PxD_FLAG_PRESENT | PxD_FLAG_VALID) + in pgd_populate()