Lines Matching refs:vaddr

54 static void __init kasan_populate_pte(pmd_t *pmd, unsigned long vaddr, unsigned long end)  in kasan_populate_pte()  argument
64 ptep = base_pte + pte_index(vaddr); in kasan_populate_pte()
71 } while (ptep++, vaddr += PAGE_SIZE, vaddr != end); in kasan_populate_pte()
76 static void __init kasan_populate_pmd(pgd_t *pgd, unsigned long vaddr, unsigned long end) in kasan_populate_pmd() argument
86 pmdp = base_pmd + pmd_index(vaddr); in kasan_populate_pmd()
89 next = pmd_addr_end(vaddr, end); in kasan_populate_pmd()
91 if (pmd_none(*pmdp) && IS_ALIGNED(vaddr, PMD_SIZE) && (next - vaddr) >= PMD_SIZE) { in kasan_populate_pmd()
99 kasan_populate_pte(pmdp, vaddr, next); in kasan_populate_pmd()
100 } while (pmdp++, vaddr = next, vaddr != end); in kasan_populate_pmd()
111 static void __init kasan_populate_pgd(unsigned long vaddr, unsigned long end) in kasan_populate_pgd() argument
114 pgd_t *pgdp = pgd_offset_k(vaddr); in kasan_populate_pgd()
118 next = pgd_addr_end(vaddr, end); in kasan_populate_pgd()
126 IS_ALIGNED(vaddr, PGDIR_SIZE) && (next - vaddr) >= PGDIR_SIZE) { in kasan_populate_pgd()
134 kasan_populate_pmd(pgdp, vaddr, next); in kasan_populate_pgd()
135 } while (pgdp++, vaddr = next, vaddr != end); in kasan_populate_pgd()
140 unsigned long vaddr = (unsigned long)start & PAGE_MASK; in kasan_populate() local
143 kasan_populate_pgd(vaddr, vend); in kasan_populate()
149 static void __init kasan_shallow_populate_pgd(unsigned long vaddr, unsigned long end) in kasan_shallow_populate_pgd() argument
153 pgd_t *pgd_k = pgd_offset_k(vaddr); in kasan_shallow_populate_pgd()
156 next = pgd_addr_end(vaddr, end); in kasan_shallow_populate_pgd()
161 } while (pgd_k++, vaddr = next, vaddr != end); in kasan_shallow_populate_pgd()
166 unsigned long vaddr = (unsigned long)start & PAGE_MASK; in kasan_shallow_populate() local
169 kasan_shallow_populate_pgd(vaddr, vend); in kasan_shallow_populate()