nr_range 54 arch/x86/kernel/cpu/mtrr/cleanup.c static int __initdata nr_range; nr_range 65 arch/x86/kernel/cpu/mtrr/cleanup.c x86_get_mtrr_mem_range(struct range *range, int nr_range, nr_range 79 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = add_range_with_merge(range, RANGE_NUM, nr_range, nr_range 84 arch/x86/kernel/cpu/mtrr/cleanup.c for (i = 0; i < nr_range; i++) nr_range 126 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = clean_sort_range(range, RANGE_NUM); nr_range 129 arch/x86/kernel/cpu/mtrr/cleanup.c for (i = 0; i < nr_range; i++) nr_range 134 arch/x86/kernel/cpu/mtrr/cleanup.c return nr_range; nr_range 139 arch/x86/kernel/cpu/mtrr/cleanup.c static unsigned long __init sum_ranges(struct range *range, int nr_range) nr_range 144 arch/x86/kernel/cpu/mtrr/cleanup.c for (i = 0; i < nr_range; i++) nr_range 473 arch/x86/kernel/cpu/mtrr/cleanup.c x86_setup_var_mtrrs(struct range *range, int nr_range, nr_range 489 arch/x86/kernel/cpu/mtrr/cleanup.c for (i = 0; i < nr_range; i++) { nr_range 607 arch/x86/kernel/cpu/mtrr/cleanup.c num_reg = x86_setup_var_mtrrs(range, nr_range, chunk_size, gran_size); nr_range 628 arch/x86/kernel/cpu/mtrr/cleanup.c if (nr_range_new != nr_range || memcmp(range, range_new, sizeof(range))) nr_range 727 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = add_range_with_merge(range, RANGE_NUM, 0, 0, nr_range 730 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = x86_get_mtrr_mem_range(range, nr_range, nr_range 733 arch/x86/kernel/cpu/mtrr/cleanup.c range_sums = sum_ranges(range, nr_range); nr_range 788 arch/x86/kernel/cpu/mtrr/cleanup.c x86_setup_var_mtrrs(range, nr_range, chunk_size, gran_size); nr_range 945 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = 0; nr_range 947 arch/x86/kernel/cpu/mtrr/cleanup.c range[nr_range].start = (1ULL<<(32 - PAGE_SHIFT)); nr_range 948 arch/x86/kernel/cpu/mtrr/cleanup.c range[nr_range].end = mtrr_tom2 >> PAGE_SHIFT; nr_range 949 arch/x86/kernel/cpu/mtrr/cleanup.c if (highest_pfn < range[nr_range].end) nr_range 950 arch/x86/kernel/cpu/mtrr/cleanup.c highest_pfn = range[nr_range].end; nr_range 951 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range++; nr_range 953 arch/x86/kernel/cpu/mtrr/cleanup.c nr_range = x86_get_mtrr_mem_range(range, nr_range, 0, 0); nr_range 961 arch/x86/kernel/cpu/mtrr/cleanup.c for (i = 0; i < nr_range - 1; i++) { nr_range 968 arch/x86/kernel/cpu/mtrr/cleanup.c i = nr_range - 1; nr_range 261 arch/x86/mm/init.c static int __meminit save_mr(struct map_range *mr, int nr_range, nr_range 266 arch/x86/mm/init.c if (nr_range >= NR_RANGE_MR) nr_range 268 arch/x86/mm/init.c mr[nr_range].start = start_pfn<<PAGE_SHIFT; nr_range 269 arch/x86/mm/init.c mr[nr_range].end = end_pfn<<PAGE_SHIFT; nr_range 270 arch/x86/mm/init.c mr[nr_range].page_size_mask = page_size_mask; nr_range 271 arch/x86/mm/init.c nr_range++; nr_range 274 arch/x86/mm/init.c return nr_range; nr_range 282 arch/x86/mm/init.c int nr_range) nr_range 286 arch/x86/mm/init.c for (i = 0; i < nr_range; i++) { nr_range 336 arch/x86/mm/init.c static int __meminit split_mem_range(struct map_range *mr, int nr_range, nr_range 365 arch/x86/mm/init.c nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); nr_range 380 arch/x86/mm/init.c nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, nr_range 390 arch/x86/mm/init.c nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, nr_range 400 arch/x86/mm/init.c nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, nr_range 409 arch/x86/mm/init.c nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); nr_range 412 arch/x86/mm/init.c adjust_range_page_size_mask(mr, nr_range); nr_range 415 arch/x86/mm/init.c for (i = 0; nr_range > 1 && i < nr_range - 1; i++) { nr_range 423 arch/x86/mm/init.c (nr_range - 1 - i) * sizeof(struct map_range)); nr_range 425 arch/x86/mm/init.c nr_range--; nr_range 428 arch/x86/mm/init.c for (i = 0; i < nr_range; i++) nr_range 433 arch/x86/mm/init.c return nr_range; nr_range 474 arch/x86/mm/init.c int nr_range, i; nr_range 480 arch/x86/mm/init.c nr_range = split_mem_range(mr, 0, start, end); nr_range 482 arch/x86/mm/init.c for (i = 0; i < nr_range; i++) nr_range 10 include/linux/range.h int add_range(struct range *range, int az, int nr_range, nr_range 14 include/linux/range.h int add_range_with_merge(struct range *range, int az, int nr_range, nr_range 21 include/linux/range.h void sort_range(struct range *range, int nr_range); nr_range 11 kernel/range.c int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) nr_range 14 kernel/range.c return nr_range; nr_range 17 kernel/range.c if (nr_range >= az) nr_range 18 kernel/range.c return nr_range; nr_range 20 kernel/range.c range[nr_range].start = start; nr_range 21 kernel/range.c range[nr_range].end = end; nr_range 23 kernel/range.c nr_range++; nr_range 25 kernel/range.c return nr_range; nr_range 28 kernel/range.c int add_range_with_merge(struct range *range, int az, int nr_range, nr_range 34 kernel/range.c return nr_range; nr_range 37 kernel/range.c for (i = 0; i < nr_range; i++) { nr_range 53 kernel/range.c (nr_range - (i + 1)) * sizeof(range[i])); nr_range 54 kernel/range.c range[nr_range - 1].start = 0; nr_range 55 kernel/range.c range[nr_range - 1].end = 0; nr_range 56 kernel/range.c nr_range--; nr_range 61 kernel/range.c return add_range(range, az, nr_range, start, end); nr_range 127 kernel/range.c int i, j, k = az - 1, nr_range = az; nr_range 149 kernel/range.c nr_range = i; nr_range 155 kernel/range.c sort(range, nr_range, sizeof(struct range), cmp_range, NULL); nr_range 157 kernel/range.c return nr_range; nr_range 160 kernel/range.c void sort_range(struct range *range, int nr_range) nr_range 163 kernel/range.c sort(range, nr_range, sizeof(struct range), cmp_range, NULL);