Lines Matching refs:top
99 unsigned int bat_block_size(unsigned long base, unsigned long top)
103 unsigned int block_shift = (fls(top - base) - 1) & 31;
139 static unsigned long __init __mmu_mapin_ram(unsigned long base, unsigned long top)
143 while ((idx = find_free_bat()) != -1 && base != top) {
144 unsigned int size = bat_block_size(base, top);
155 unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top)
167 if (top >= border)
168 top = border;
171 if (!strict_kernel_rwx_enabled() || base >= border || top <= border)
172 return __mmu_mapin_ram(base, top);
178 return __mmu_mapin_ram(border, top);
204 unsigned long top = ALIGN((unsigned long)_etext - PAGE_OFFSET, SZ_128K);
208 for (i = 0; i < nb - 1 && base < top;) {
209 size = bat_block_size(base, top);
213 if (base < top) {
214 size = bat_block_size(base, top);
215 if ((top - base) > size) {