Lines Matching refs:p4d

311 static int modify_pud_table(p4d_t *p4d, unsigned long addr, unsigned long end,  in modify_pud_table()  argument
322 pud = pud_offset(p4d, addr); in modify_pud_table()
365 static void try_free_pud_table(p4d_t *p4d, unsigned long start) in try_free_pud_table() argument
379 pud = pud_offset(p4d, start); in try_free_pud_table()
384 vmem_free_pages(p4d_deref(*p4d), CRST_ALLOC_ORDER); in try_free_pud_table()
385 p4d_clear(p4d); in try_free_pud_table()
393 p4d_t *p4d; in modify_p4d_table() local
396 p4d = p4d_offset(pgd, addr); in modify_p4d_table()
397 for (; addr < end; addr = next, p4d++) { in modify_p4d_table()
400 if (p4d_none(*p4d)) in modify_p4d_table()
402 } else if (p4d_none(*p4d)) { in modify_p4d_table()
406 p4d_populate(&init_mm, p4d, pud); in modify_p4d_table()
408 ret = modify_pud_table(p4d, addr, next, add, direct); in modify_p4d_table()
412 try_free_pud_table(p4d, addr & P4D_MASK); in modify_p4d_table()
422 p4d_t *p4d; in try_free_p4d_table() local
433 p4d = p4d_offset(pgd, start); in try_free_p4d_table()
434 for (i = 0; i < PTRS_PER_P4D; i++, p4d++) { in try_free_p4d_table()
435 if (!p4d_none(*p4d)) in try_free_p4d_table()
448 p4d_t *p4d; in modify_pagetable() local
460 p4d = vmem_crst_alloc(_REGION2_ENTRY_EMPTY); in modify_pagetable()
461 if (!p4d) in modify_pagetable()
463 pgd_populate(&init_mm, pgd, p4d); in modify_pagetable()
574 p4d_t *p4d; in vmem_get_alloc_pte() local
583 p4d = vmem_crst_alloc(_REGION2_ENTRY_EMPTY); in vmem_get_alloc_pte()
584 if (!p4d) in vmem_get_alloc_pte()
586 pgd_populate(&init_mm, pgd, p4d); in vmem_get_alloc_pte()
588 p4d = p4d_offset(pgd, addr); in vmem_get_alloc_pte()
589 if (p4d_none(*p4d)) { in vmem_get_alloc_pte()
595 p4d_populate(&init_mm, p4d, pud); in vmem_get_alloc_pte()
597 pud = pud_offset(p4d, addr); in vmem_get_alloc_pte()