Lines Matching +full:10 +full:base
66 unsigned long base, size; in x86_get_mtrr_mem_range() local
74 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
77 base, base + size); in x86_get_mtrr_mem_range()
94 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
95 if (base < (1<<(20-PAGE_SHIFT)) && mtrr_state.have_fixed && in x86_get_mtrr_mem_range()
100 if (base + size <= (1<<(20-PAGE_SHIFT))) in x86_get_mtrr_mem_range()
102 size -= (1<<(20-PAGE_SHIFT)) - base; in x86_get_mtrr_mem_range()
103 base = 1<<(20-PAGE_SHIFT); in x86_get_mtrr_mem_range()
105 subtract_range(range, RANGE_NUM, base, base + size); in x86_get_mtrr_mem_range()
166 u64 base, mask; in set_var_mtrr() local
174 mask &= ~((((u64)sizek) << 10) - 1); in set_var_mtrr()
176 base = ((u64)basek) << 10; in set_var_mtrr()
178 base |= type; in set_var_mtrr()
181 base_lo = base & ((1ULL<<32) - 1); in set_var_mtrr()
182 base_hi = base >> 32; in set_var_mtrr()
194 range_state[reg].base_pfn = basek >> (PAGE_SHIFT - 10); in save_var_mtrr()
195 range_state[reg].size_pfn = sizek >> (PAGE_SHIFT - 10); in save_var_mtrr()
206 basek = range_state[reg].base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_all()
207 sizek = range_state[reg].size_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_all()
216 unsigned long base = sizek; in to_size_factor() local
219 if (base & ((1<<10) - 1)) { in to_size_factor()
222 } else if (base & ((1<<20) - 1)) { in to_size_factor()
224 base >>= 10; in to_size_factor()
227 base >>= 20; in to_size_factor()
232 return base; in to_size_factor()
265 "base: %ld%cB, range: %ld%cB, type %s\n", in range_to_mtrr()
320 range0_basek<<10, in range_to_mtrr_with_hole()
321 (range0_basek + state->range_sizek)<<10); in range_to_mtrr_with_hole()
365 range0_basek<<10, in range_to_mtrr_with_hole()
366 (range0_basek + range0_sizek)<<10); in range_to_mtrr_with_hole()
376 range_basek<<10, in range_to_mtrr_with_hole()
377 (range_basek + range_sizek)<<10); in range_to_mtrr_with_hole()
386 hole_basek<<10, in range_to_mtrr_with_hole()
387 (hole_basek + hole_sizek)<<10); in range_to_mtrr_with_hole()
405 basek = base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_range()
406 sizek = size_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_range()
470 var_state.chunk_sizek = chunk_size >> 10; in x86_setup_var_mtrrs()
471 var_state.gran_sizek = gran_size >> 10; in x86_setup_var_mtrrs()
509 #define PSHIFT (PAGE_SHIFT - 10)
523 size_base = range_state[i].size_pfn << (PAGE_SHIFT - 10); in print_out_mtrr_range_state()
528 start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); in print_out_mtrr_range_state()
532 Dprintk("reg %d, base: %ld%cB, range: %ld%cB, type %s\n", in print_out_mtrr_range_state()
602 result[i].chunk_sizek = chunk_size >> 10; in mtrr_calc_range_state()
603 result[i].gran_sizek = gran_size >> 10; in mtrr_calc_range_state()
673 unsigned long base, size, def, dummy; in mtrr_cleanup() local
693 mtrr_if->get(i, &base, &size, &type); in mtrr_cleanup()
694 range_state[i].base_pfn = base; in mtrr_cleanup()
775 chunk_size <<= 10; in mtrr_cleanup()
777 gran_size <<= 10; in mtrr_cleanup()
869 unsigned long i, base, size, highest_pfn = 0, def, dummy; in mtrr_trim_uncached_memory() local
893 mtrr_if->get(i, &base, &size, &type); in mtrr_trim_uncached_memory()
894 range_state[i].base_pfn = base; in mtrr_trim_uncached_memory()
904 base = range_state[i].base_pfn; in mtrr_trim_uncached_memory()
906 if (highest_pfn < base + size) in mtrr_trim_uncached_memory()
907 highest_pfn = base + size; in mtrr_trim_uncached_memory()