Lines Matching refs:top
121 static void mmu_mapin_ram_chunk(unsigned long offset, unsigned long top, in mmu_mapin_ram_chunk() argument
127 WARN_ON(!IS_ALIGNED(offset, SZ_512K) || !IS_ALIGNED(top, SZ_512K)); in mmu_mapin_ram_chunk()
129 for (; p < ALIGN(p, SZ_8M) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
131 for (; p < ALIGN_DOWN(top, SZ_8M) && p < top; p += SZ_8M, v += SZ_8M) in mmu_mapin_ram_chunk()
133 for (; p < ALIGN_DOWN(top, SZ_512K) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
137 flush_tlb_kernel_range(PAGE_OFFSET + v, PAGE_OFFSET + top); in mmu_mapin_ram_chunk()
140 unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top) in mmu_mapin_ram() argument
148 WARN_ON(top < einittext8); in mmu_mapin_ram()
154 top = boundary; in mmu_mapin_ram()
157 mmu_mapin_ram_chunk(einittext8, top, PAGE_KERNEL, true); in mmu_mapin_ram()
160 if (top > SZ_32M) in mmu_mapin_ram()
161 memblock_set_current_limit(top); in mmu_mapin_ram()
163 block_mapped_ram = top; in mmu_mapin_ram()
165 return top; in mmu_mapin_ram()