Lines Matching refs:base_pud
102 pud_t *pudp, *base_pud; in kasan_populate_pud() local
113 base_pud = pt_ops.get_pud_virt(pfn_to_phys(_pgd_pfn(*pgd))); in kasan_populate_pud()
115 base_pud = memblock_alloc(PTRS_PER_PUD * sizeof(pud_t), PAGE_SIZE); in kasan_populate_pud()
116 memcpy(base_pud, (void *)kasan_early_shadow_pud, in kasan_populate_pud()
119 base_pud = (pud_t *)pgd_page_vaddr(*pgd); in kasan_populate_pud()
120 if (base_pud == lm_alias(kasan_early_shadow_pud)) { in kasan_populate_pud()
121 base_pud = memblock_alloc(PTRS_PER_PUD * sizeof(pud_t), PAGE_SIZE); in kasan_populate_pud()
122 memcpy(base_pud, (void *)kasan_early_shadow_pud, in kasan_populate_pud()
127 pudp = base_pud + pud_index(vaddr); in kasan_populate_pud()
156 set_pgd(pgd, pfn_pgd(PFN_DOWN(__pa(base_pud)), PAGE_TABLE)); in kasan_populate_pud()
346 pud_t *pudp, *base_pud; in kasan_shallow_populate_pud() local
350 base_pud = (pud_t *)pgd_page_vaddr(*pgdp); in kasan_shallow_populate_pud()
351 pudp = base_pud + pud_index(vaddr); in kasan_shallow_populate_pud()
376 pud_t *base_pud; in kasan_shallow_populate_p4d() local
389 base_pud = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in kasan_shallow_populate_p4d()
390 set_p4d(p4dp, pfn_p4d(PFN_DOWN(__pa(base_pud)), PAGE_TABLE)); in kasan_shallow_populate_p4d()
395 memcpy(base_pud, (void *)kasan_early_shadow_pud, PAGE_SIZE); in kasan_shallow_populate_p4d()