Lines Matching refs:p4d

304 static int modify_pud_table(p4d_t *p4d, unsigned long addr, unsigned long end,  in modify_pud_table()  argument
315 pud = pud_offset(p4d, addr); in modify_pud_table()
358 static void try_free_pud_table(p4d_t *p4d, unsigned long start) in try_free_pud_table() argument
363 pud = pud_offset(p4d, start); in try_free_pud_table()
368 vmem_free_pages(p4d_deref(*p4d), CRST_ALLOC_ORDER); in try_free_pud_table()
369 p4d_clear(p4d); in try_free_pud_table()
377 p4d_t *p4d; in modify_p4d_table() local
380 p4d = p4d_offset(pgd, addr); in modify_p4d_table()
381 for (; addr < end; addr = next, p4d++) { in modify_p4d_table()
384 if (p4d_none(*p4d)) in modify_p4d_table()
386 } else if (p4d_none(*p4d)) { in modify_p4d_table()
390 p4d_populate(&init_mm, p4d, pud); in modify_p4d_table()
392 ret = modify_pud_table(p4d, addr, next, add, direct); in modify_p4d_table()
396 try_free_pud_table(p4d, addr & P4D_MASK); in modify_p4d_table()
405 p4d_t *p4d; in try_free_p4d_table() local
408 p4d = p4d_offset(pgd, start); in try_free_p4d_table()
409 for (i = 0; i < PTRS_PER_P4D; i++, p4d++) { in try_free_p4d_table()
410 if (!p4d_none(*p4d)) in try_free_p4d_table()
423 p4d_t *p4d; in modify_pagetable() local
438 p4d = vmem_crst_alloc(_REGION2_ENTRY_EMPTY); in modify_pagetable()
439 if (!p4d) in modify_pagetable()
441 pgd_populate(&init_mm, pgd, p4d); in modify_pagetable()
554 p4d_t *p4d; in vmem_get_alloc_pte() local
563 p4d = vmem_crst_alloc(_REGION2_ENTRY_EMPTY); in vmem_get_alloc_pte()
564 if (!p4d) in vmem_get_alloc_pte()
566 pgd_populate(&init_mm, pgd, p4d); in vmem_get_alloc_pte()
568 p4d = p4d_offset(pgd, addr); in vmem_get_alloc_pte()
569 if (p4d_none(*p4d)) { in vmem_get_alloc_pte()
575 p4d_populate(&init_mm, p4d, pud); in vmem_get_alloc_pte()
577 pud = pud_offset(p4d, addr); in vmem_get_alloc_pte()