Lines Matching refs:nr_range
329 static int __meminit save_mr(struct map_range *mr, int nr_range, in save_mr() argument
334 if (nr_range >= NR_RANGE_MR) in save_mr()
336 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
337 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr()
338 mr[nr_range].page_size_mask = page_size_mask; in save_mr()
339 nr_range++; in save_mr()
342 return nr_range; in save_mr()
350 int nr_range) in adjust_range_page_size_mask() argument
354 for (i = 0; i < nr_range; i++) { in adjust_range_page_size_mask()
404 static int __meminit split_mem_range(struct map_range *mr, int nr_range, in split_mem_range() argument
433 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
448 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
458 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
468 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
477 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
480 adjust_range_page_size_mask(mr, nr_range); in split_mem_range()
483 for (i = 0; nr_range > 1 && i < nr_range - 1; i++) { in split_mem_range()
491 (nr_range - 1 - i) * sizeof(struct map_range)); in split_mem_range()
493 nr_range--; in split_mem_range()
496 for (i = 0; i < nr_range; i++) in split_mem_range()
501 return nr_range; in split_mem_range()
542 int nr_range, i; in init_memory_mapping() local
548 nr_range = split_mem_range(mr, 0, start, end); in init_memory_mapping()
550 for (i = 0; i < nr_range; i++) in init_memory_mapping()