Lines Matching refs:max_low_pfn

951 	unsigned long max_low_pfn;  in find_max_low_pfn()  local
953 max_low_pfn = max_pfn; in find_max_low_pfn()
954 if (max_low_pfn > MAXMEM_PFN) { in find_max_low_pfn()
963 max_low_pfn = MAXMEM_PFN; in find_max_low_pfn()
990 if (max_low_pfn-highmem_pages < 64*1024*1024/PAGE_SIZE){ in find_max_low_pfn()
994 max_low_pfn -= highmem_pages; in find_max_low_pfn()
1002 return max_low_pfn; in find_max_low_pfn()
1008 static void __init register_bootmem_low_pages(unsigned long max_low_pfn) in register_bootmem_low_pages() argument
1023 if (curr_pfn >= max_low_pfn) in register_bootmem_low_pages()
1030 if (last_pfn > max_low_pfn) in register_bootmem_low_pages()
1031 last_pfn = max_low_pfn; in register_bootmem_low_pages()
1047 unsigned long bootmap_size, start_pfn, max_low_pfn; in setup_memory() local
1057 max_low_pfn = find_max_low_pfn(); in setup_memory()
1061 if (max_pfn > max_low_pfn) { in setup_memory()
1062 highstart_pfn = max_low_pfn; in setup_memory()
1068 pages_to_mb(max_low_pfn)); in setup_memory()
1072 bootmap_size = init_bootmem(start_pfn, max_low_pfn); in setup_memory()
1074 register_bootmem_low_pages(max_low_pfn); in setup_memory()
1113 if (INITRD_START + INITRD_SIZE <= (max_low_pfn << PAGE_SHIFT)) { in setup_memory()
1123 max_low_pfn << PAGE_SHIFT); in setup_memory()
1129 return max_low_pfn; in setup_memory()
1136 static void __init register_memory(unsigned long max_low_pfn) in register_memory() argument
1173 low_mem_size = ((max_low_pfn << PAGE_SHIFT) + 0xfffff) & ~0xfffff; in register_memory()
1180 unsigned long max_low_pfn; in setup_arch() local
1224 max_low_pfn = setup_memory(); in setup_arch()
1251 register_memory(max_low_pfn); in setup_arch()