Lines Matching refs:nr_range
54 static int __initdata nr_range; variable
62 x86_get_mtrr_mem_range(struct range *range, int nr_range, in x86_get_mtrr_mem_range() argument
76 nr_range = add_range_with_merge(range, RANGE_NUM, nr_range, in x86_get_mtrr_mem_range()
81 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range()
121 nr_range = clean_sort_range(range, RANGE_NUM); in x86_get_mtrr_mem_range()
124 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range()
128 return nr_range; in x86_get_mtrr_mem_range()
133 static unsigned long __init sum_ranges(struct range *range, int nr_range) in sum_ranges() argument
138 for (i = 0; i < nr_range; i++) in sum_ranges()
460 x86_setup_var_mtrrs(struct range *range, int nr_range, in x86_setup_var_mtrrs() argument
476 for (i = 0; i < nr_range; i++) { in x86_setup_var_mtrrs()
594 num_reg = x86_setup_var_mtrrs(range, nr_range, chunk_size, gran_size); in mtrr_calc_range_state()
615 if (nr_range_new != nr_range || memcmp(range, range_new, sizeof(range))) in mtrr_calc_range_state()
717 nr_range = add_range_with_merge(range, RANGE_NUM, 0, 0, in mtrr_cleanup()
720 nr_range = x86_get_mtrr_mem_range(range, nr_range, in mtrr_cleanup()
723 range_sums = sum_ranges(range, nr_range); in mtrr_cleanup()
778 x86_setup_var_mtrrs(range, nr_range, chunk_size, gran_size); in mtrr_cleanup()
938 nr_range = 0; in mtrr_trim_uncached_memory()
940 range[nr_range].start = (1ULL<<(32 - PAGE_SHIFT)); in mtrr_trim_uncached_memory()
941 range[nr_range].end = mtrr_tom2 >> PAGE_SHIFT; in mtrr_trim_uncached_memory()
942 if (highest_pfn < range[nr_range].end) in mtrr_trim_uncached_memory()
943 highest_pfn = range[nr_range].end; in mtrr_trim_uncached_memory()
944 nr_range++; in mtrr_trim_uncached_memory()
946 nr_range = x86_get_mtrr_mem_range(range, nr_range, 0, 0); in mtrr_trim_uncached_memory()
954 for (i = 0; i < nr_range - 1; i++) { in mtrr_trim_uncached_memory()
961 i = nr_range - 1; in mtrr_trim_uncached_memory()