Lines Matching refs:nr_map

50 	for (i = 0; i < e820.nr_map; i++) {  in e820_all_mapped()
78 unsigned int x = e820.nr_map; in add_memory_region()
88 e820.nr_map++; in add_memory_region()
305 static int __init copy_e820_map(struct e820entry * biosmap, unsigned int nr_map) in copy_e820_map() argument
308 if (nr_map < 2) in copy_e820_map()
336 } while (biosmap++,--nr_map); in copy_e820_map()
349 for (i = 0; i < e820.nr_map; i++) { in find_max_pfn()
374 for ( i = 0; i < e820.nr_map; i++ ) in clip_to_limit()
380 if ( i == e820.nr_map ) in clip_to_limit()
403 (e820.nr_map - i - 1) * sizeof(struct e820entry)); in clip_to_limit()
404 e820.nr_map--; in clip_to_limit()
511 sanitize_e820_map(raw->map, &raw->nr_map); in machine_specific_memory_setup()
512 copy_e820_map(raw->map, raw->nr_map); in machine_specific_memory_setup()
519 for ( i = size = 0; (i < e820.nr_map) && (size <= opt_availmem); i++ ) in machine_specific_memory_setup()
551 for ( i = 0; i < e820->nr_map; ++i ) in e820_add_range()
563 (i + 1 == e820->nr_map || e820->map[i + 1].addr >= e) ) in e820_add_range()
576 if ( e820->nr_map >= ARRAY_SIZE(e820->map) ) in e820_add_range()
584 (e820->nr_map - i) * sizeof(*e820->map)); in e820_add_range()
586 e820->nr_map++; in e820_add_range()
601 for ( i = 0; i < e820->nr_map; i++ ) in e820_change_range_type()
610 if ( (i == e820->nr_map) || (e820->map[i].type != orig_type) ) in e820_change_range_type()
619 if ( (e820->nr_map + 1) > ARRAY_SIZE(e820->map) ) in e820_change_range_type()
623 (e820->nr_map-i) * sizeof(e820->map[0])); in e820_change_range_type()
624 e820->nr_map++; in e820_change_range_type()
643 if ( (e820->nr_map + 2) > ARRAY_SIZE(e820->map) ) in e820_change_range_type()
647 (e820->nr_map-i) * sizeof(e820->map[0])); in e820_change_range_type()
648 e820->nr_map += 2; in e820_change_range_type()
659 for ( i = 0; i < (e820->nr_map - 1); i++ ) in e820_change_range_type()
666 (e820->nr_map-i-2) * sizeof(e820->map[0])); in e820_change_range_type()
667 e820->nr_map--; in e820_change_range_type()
690 print_e820_memory_map(raw->map, raw->nr_map); in init_e820()
699 print_e820_memory_map(e820.map, e820.nr_map); in init_e820()