Lines Matching refs:top
102 unsigned int bat_block_size(unsigned long base, unsigned long top)
106 unsigned int block_shift = (fls(top - base) - 1) & 31;
142 static unsigned long __init __mmu_mapin_ram(unsigned long base, unsigned long top)
146 while ((idx = find_free_bat()) != -1 && base != top) {
147 unsigned int size = bat_block_size(base, top);
158 unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top)
171 if (top >= border)
172 top = border;
175 if (!strict_kernel_rwx_enabled() || base >= border || top <= border)
176 return __mmu_mapin_ram(base, top);
182 return __mmu_mapin_ram(border, top);
201 unsigned long top = ALIGN((unsigned long)_etext - PAGE_OFFSET, SZ_128K);
205 for (i = 0; i < nb - 1 && base < top;) {
206 size = bat_block_size(base, top);
210 if (base < top) {
211 size = bat_block_size(base, top);
212 if ((top - base) > size) {