Lines Matching refs:PAGE_SHIFT
65 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
66 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
83 unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in calc_max_low_pfn()
86 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
88 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
96 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
175 start_pfn >>= PAGE_SHIFT; in bootmem_init()
177 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
182 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init()
183 highstart_pfn = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in bootmem_init()
187 high_pages >> (20 - PAGE_SHIFT)); in bootmem_init()
193 size = (start_pfn << PAGE_SHIFT) - phys_base; in bootmem_init()
198 *pages_avail = (size >> PAGE_SHIFT) - high_pages; in bootmem_init()
201 memblock_set_current_limit(max_low_pfn << PAGE_SHIFT); in bootmem_init()
266 i = last_valid_pfn >> ((20 - PAGE_SHIFT) + 5); in mem_init()
280 high_memory = __va(max_low_pfn << PAGE_SHIFT); in mem_init()
284 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in mem_init()
285 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in mem_init()