Lines Matching refs:p4d

45 static inline bool kasan_pud_table(p4d_t p4d)  in kasan_pud_table()  argument
47 return p4d_page(p4d) == virt_to_page(lm_alias(kasan_early_shadow_pud)); in kasan_pud_table()
50 static inline bool kasan_pud_table(p4d_t p4d) in kasan_pud_table() argument
146 static int __ref zero_pud_populate(p4d_t *p4d, unsigned long addr, in zero_pud_populate() argument
149 pud_t *pud = pud_offset(p4d, addr); in zero_pud_populate()
191 p4d_t *p4d = p4d_offset(pgd, addr); in zero_p4d_populate() local
200 p4d_populate(&init_mm, p4d, in zero_p4d_populate()
202 pud = pud_offset(p4d, addr); in zero_p4d_populate()
211 if (p4d_none(*p4d)) { in zero_p4d_populate()
215 p = pud_alloc(&init_mm, p4d, addr); in zero_p4d_populate()
221 p4d_populate(&init_mm, p4d, p); in zero_p4d_populate()
224 zero_pud_populate(p4d, addr, next); in zero_p4d_populate()
225 } while (p4d++, addr = next, addr != end); in zero_p4d_populate()
248 p4d_t *p4d; in kasan_populate_early_shadow() local
262 p4d = p4d_offset(pgd, addr); in kasan_populate_early_shadow()
263 p4d_populate(&init_mm, p4d, in kasan_populate_early_shadow()
265 pud = pud_offset(p4d, addr); in kasan_populate_early_shadow()
322 static void kasan_free_pud(pud_t *pud_start, p4d_t *p4d) in kasan_free_pud() argument
333 pud_free(&init_mm, (pud_t *)page_to_virt(p4d_page(*p4d))); in kasan_free_pud()
334 p4d_clear(p4d); in kasan_free_pud()
339 p4d_t *p4d; in kasan_free_p4d() local
343 p4d = p4d_start + i; in kasan_free_p4d()
344 if (!p4d_none(*p4d)) in kasan_free_p4d()
427 static void kasan_remove_p4d_table(p4d_t *p4d, unsigned long addr, in kasan_remove_p4d_table() argument
432 for (; addr < end; addr = next, p4d++) { in kasan_remove_p4d_table()
437 if (!p4d_present(*p4d)) in kasan_remove_p4d_table()
440 if (kasan_pud_table(*p4d)) { in kasan_remove_p4d_table()
443 p4d_clear(p4d); in kasan_remove_p4d_table()
447 pud = pud_offset(p4d, addr); in kasan_remove_p4d_table()
449 kasan_free_pud(pud_offset(p4d, 0), p4d); in kasan_remove_p4d_table()
466 p4d_t *p4d; in kasan_remove_zero_shadow() local
482 p4d = p4d_offset(pgd, addr); in kasan_remove_zero_shadow()
483 kasan_remove_p4d_table(p4d, addr, next); in kasan_remove_zero_shadow()