Lines Matching refs:addr
64 static int __init zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() argument
67 pte_t *pte = pte_offset_kernel(pmd, addr); in zero_pte_populate()
69 while (addr + PAGE_SIZE <= end) { in zero_pte_populate()
73 addr += PAGE_SIZE; in zero_pte_populate()
74 pte = pte_offset_kernel(pmd, addr); in zero_pte_populate()
79 static int __init zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate() argument
83 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate()
85 while (IS_ALIGNED(addr, PMD_SIZE) && addr + PMD_SIZE <= end) { in zero_pmd_populate()
89 addr += PMD_SIZE; in zero_pmd_populate()
90 pmd = pmd_offset(pud, addr); in zero_pmd_populate()
92 if (addr < end) { in zero_pmd_populate()
99 ret = zero_pte_populate(pmd, addr, end); in zero_pmd_populate()
105 static int __init zero_pud_populate(pgd_t *pgd, unsigned long addr, in zero_pud_populate() argument
109 pud_t *pud = pud_offset(pgd, addr); in zero_pud_populate()
111 while (IS_ALIGNED(addr, PUD_SIZE) && addr + PUD_SIZE <= end) { in zero_pud_populate()
115 addr += PUD_SIZE; in zero_pud_populate()
116 pud = pud_offset(pgd, addr); in zero_pud_populate()
119 if (addr < end) { in zero_pud_populate()
126 ret = zero_pmd_populate(pud, addr, end); in zero_pud_populate()
131 static int __init zero_pgd_populate(unsigned long addr, unsigned long end) in zero_pgd_populate() argument
134 pgd_t *pgd = pgd_offset_k(addr); in zero_pgd_populate()
136 while (IS_ALIGNED(addr, PGDIR_SIZE) && addr + PGDIR_SIZE <= end) { in zero_pgd_populate()
140 addr += PGDIR_SIZE; in zero_pgd_populate()
141 pgd = pgd_offset_k(addr); in zero_pgd_populate()
144 if (addr < end) { in zero_pgd_populate()
151 ret = zero_pud_populate(pgd, addr, end); in zero_pgd_populate()