Lines Matching refs:pgd
23 pgd_t *pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, in pgd_alloc() local
25 pgd_t *actual_pgd = pgd; in pgd_alloc()
27 if (likely(pgd != NULL)) { in pgd_alloc()
28 memset(pgd, 0, PAGE_SIZE<<PGD_ALLOC_ORDER); in pgd_alloc()
37 + (__u32)(__pa((unsigned long)pgd) >> PxD_VALUE_SHIFT)); in pgd_alloc()
40 __pgd_val_set(*pgd, PxD_FLAG_ATTACHED); in pgd_alloc()
46 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() argument
49 pgd -= PTRS_PER_PGD; in pgd_free()
51 free_pages((unsigned long)pgd, PGD_ALLOC_ORDER); in pgd_free()
58 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() argument
60 __pgd_val_set(*pgd, (PxD_FLAG_PRESENT | PxD_FLAG_VALID) + in pgd_populate()