Searched refs:curr_pfn (Results 1 – 4 of 4) sorted by relevance
140 unsigned long curr_pfn, last_pfn; in calc_max_low_pfn() local144 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()146 if (curr_pfn >= tmp) { in calc_max_low_pfn()240 unsigned long curr_pfn, last_pfn; in bootmem_init() local242 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in bootmem_init()243 if (curr_pfn >= max_low_pfn) in bootmem_init()254 if (last_pfn <= curr_pfn) in bootmem_init()257 size = (last_pfn - curr_pfn) << PAGE_SHIFT; in bootmem_init()258 *pages_avail += last_pfn - curr_pfn; in bootmem_init()
150 unsigned long curr_pfn; in setup_memory() local157 curr_pfn = PFN_UP(__pa(memory_start)); in setup_memory()167 pages = last_pfn - curr_pfn; in setup_memory()168 free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(pages)); in setup_memory()
126 unsigned long curr_pfn, last_pfn, pages; in register_bootmem_low_pages() local131 curr_pfn = PFN_UP(__MEMORY_START); in register_bootmem_low_pages()141 pages = last_pfn - curr_pfn; in register_bootmem_low_pages()142 free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(pages)); in register_bootmem_low_pages()
637 unsigned long curr_pfn, last_pfn, size; in setup_bootmem_allocator() local678 curr_pfn = PFN_UP(bfin_memmap.map[i].addr); in setup_bootmem_allocator()679 if (curr_pfn >= end_pfn) in setup_bootmem_allocator()694 if (last_pfn <= curr_pfn) in setup_bootmem_allocator()697 size = last_pfn - curr_pfn; in setup_bootmem_allocator()698 free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(size)); in setup_bootmem_allocator()