Lines Matching refs:pmd

70 static inline bool kasan_pte_table(pmd_t pmd)  in kasan_pte_table()  argument
72 return pmd_page(pmd) == virt_to_page(lm_alias(kasan_early_shadow_pte)); in kasan_pte_table()
92 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() argument
95 pte_t *pte = pte_offset_kernel(pmd, addr); in zero_pte_populate()
105 pte = pte_offset_kernel(pmd, addr); in zero_pte_populate()
112 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() local
119 pmd_populate_kernel(&init_mm, pmd, in zero_pmd_populate()
124 if (pmd_none(*pmd)) { in zero_pmd_populate()
134 pmd_populate_kernel(&init_mm, pmd, p); in zero_pmd_populate()
136 zero_pte_populate(pmd, addr, next); in zero_pmd_populate()
137 } while (pmd++, addr = next, addr != end); in zero_pmd_populate()
151 pmd_t *pmd; in zero_pud_populate() local
155 pmd = pmd_offset(pud, addr); in zero_pud_populate()
156 pmd_populate_kernel(&init_mm, pmd, in zero_pud_populate()
189 pmd_t *pmd; in zero_p4d_populate() local
196 pmd = pmd_offset(pud, addr); in zero_p4d_populate()
197 pmd_populate_kernel(&init_mm, pmd, in zero_p4d_populate()
240 pmd_t *pmd; in kasan_populate_early_shadow() local
258 pmd = pmd_offset(pud, addr); in kasan_populate_early_shadow()
259 pmd_populate_kernel(&init_mm, pmd, in kasan_populate_early_shadow()
282 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte() argument
293 pte_free_kernel(&init_mm, (pte_t *)page_to_virt(pmd_page(*pmd))); in kasan_free_pte()
294 pmd_clear(pmd); in kasan_free_pte()
299 pmd_t *pmd; in kasan_free_pmd() local
303 pmd = pmd_start + i; in kasan_free_pmd()
304 if (!pmd_none(*pmd)) in kasan_free_pmd()
361 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table() argument
366 for (; addr < end; addr = next, pmd++) { in kasan_remove_pmd_table()
371 if (!pmd_present(*pmd)) in kasan_remove_pmd_table()
374 if (kasan_pte_table(*pmd)) { in kasan_remove_pmd_table()
377 pmd_clear(pmd); in kasan_remove_pmd_table()
381 pte = pte_offset_kernel(pmd, addr); in kasan_remove_pmd_table()
383 kasan_free_pte(pte_offset_kernel(pmd, 0), pmd); in kasan_remove_pmd_table()
393 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
407 pmd = pmd_offset(pud, addr); in kasan_remove_pud_table()
409 kasan_remove_pmd_table(pmd, addr, next); in kasan_remove_pud_table()