Lines Matching refs:phys_addr

31 	phys_addr_t phys_addr;  in kasan_populate_pte()  local
43 phys_addr = memblock_phys_alloc(PAGE_SIZE, PAGE_SIZE); in kasan_populate_pte()
44 set_pte(ptep, pfn_pte(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pte()
45 memset(__va(phys_addr), KASAN_SHADOW_INIT, PAGE_SIZE); in kasan_populate_pte()
52 phys_addr_t phys_addr; in kasan_populate_pmd() local
68 phys_addr = memblock_phys_alloc(PMD_SIZE, PMD_SIZE); in kasan_populate_pmd()
69 if (phys_addr) { in kasan_populate_pmd()
70 set_pmd(pmdp, pfn_pmd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pmd()
71 memset(__va(phys_addr), KASAN_SHADOW_INIT, PMD_SIZE); in kasan_populate_pmd()
83 phys_addr_t phys_addr; in kasan_populate_pud() local
99 phys_addr = memblock_phys_alloc(PUD_SIZE, PUD_SIZE); in kasan_populate_pud()
100 if (phys_addr) { in kasan_populate_pud()
101 set_pud(pudp, pfn_pud(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pud()
102 memset(__va(phys_addr), KASAN_SHADOW_INIT, PUD_SIZE); in kasan_populate_pud()
114 phys_addr_t phys_addr; in kasan_populate_p4d() local
130 phys_addr = memblock_phys_alloc(P4D_SIZE, P4D_SIZE); in kasan_populate_p4d()
131 if (phys_addr) { in kasan_populate_p4d()
132 set_p4d(p4dp, pfn_p4d(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_p4d()
133 memset(__va(phys_addr), KASAN_SHADOW_INIT, P4D_SIZE); in kasan_populate_p4d()
145 phys_addr_t phys_addr; in kasan_populate_pgd() local
153 phys_addr = memblock_phys_alloc(PGDIR_SIZE, PGDIR_SIZE); in kasan_populate_pgd()
154 if (phys_addr) { in kasan_populate_pgd()
155 set_pgd(pgdp, pfn_pgd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pgd()
156 memset(__va(phys_addr), KASAN_SHADOW_INIT, PGDIR_SIZE); in kasan_populate_pgd()
239 phys_addr_t phys_addr; in kasan_early_populate_pud() local
254 phys_addr = __pa((uintptr_t)kasan_early_shadow_pmd); in kasan_early_populate_pud()
255 set_pud(pudp, pfn_pud(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_early_populate_pud()
268 phys_addr_t phys_addr; in kasan_early_populate_p4d() local
292 phys_addr = __pa((uintptr_t)kasan_early_shadow_pud); in kasan_early_populate_p4d()
293 set_p4d(p4dp, pfn_p4d(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_early_populate_p4d()
305 phys_addr_t phys_addr; in kasan_early_populate_pgd() local
313 phys_addr = __pa((uintptr_t)kasan_early_shadow_p4d); in kasan_early_populate_pgd()
314 set_pgd(pgdp, pfn_pgd(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_early_populate_pgd()