• Home
  • Raw
  • Download

Lines Matching refs:mtrr_state

33 struct mtrr_state_type mtrr_state = {};  variable
34 EXPORT_SYMBOL_GPL(mtrr_state);
59 if (!mtrr_state.enabled) in mtrr_type_lookup()
66 if (mtrr_state.have_fixed && (start < 0x100000)) { in mtrr_type_lookup()
72 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
76 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
80 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
89 if (!(mtrr_state.enabled & 2)) { in mtrr_type_lookup()
90 return mtrr_state.def_type; in mtrr_type_lookup()
97 if (!(mtrr_state.var_ranges[i].mask_lo & (1 << 11))) in mtrr_type_lookup()
100 base = (((u64)mtrr_state.var_ranges[i].base_hi) << 32) + in mtrr_type_lookup()
101 (mtrr_state.var_ranges[i].base_lo & PAGE_MASK); in mtrr_type_lookup()
102 mask = (((u64)mtrr_state.var_ranges[i].mask_hi) << 32) + in mtrr_type_lookup()
103 (mtrr_state.var_ranges[i].mask_lo & PAGE_MASK); in mtrr_type_lookup()
114 curr_match = mtrr_state.var_ranges[i].base_lo & 0xff; in mtrr_type_lookup()
146 return mtrr_state.def_type; in mtrr_type_lookup()
163 vr = mtrr_state.var_ranges; in fill_mtrr_var_range()
188 get_fixed_ranges(mtrr_state.fixed_ranges); in mtrr_save_fixed_ranges()
211 vrs = mtrr_state.var_ranges; in get_mtrr_state()
214 mtrr_state.have_fixed = (lo >> 8) & 1; in get_mtrr_state()
218 if (mtrr_state.have_fixed) in get_mtrr_state()
219 get_fixed_ranges(mtrr_state.fixed_ranges); in get_mtrr_state()
222 mtrr_state.def_type = (lo & 0xff); in get_mtrr_state()
223 mtrr_state.enabled = (lo & 0xc00) >> 10; in get_mtrr_state()
237 printk(KERN_INFO "MTRR default type: %s\n", mtrr_attrib_to_str(mtrr_state.def_type)); in get_mtrr_state()
238 if (mtrr_state.have_fixed) { in get_mtrr_state()
240 mtrr_state.enabled & 1 ? "en" : "dis"); in get_mtrr_state()
241 print_fixed(0x00000, 0x10000, mtrr_state.fixed_ranges + 0); in get_mtrr_state()
243 print_fixed(0x80000 + i * 0x20000, 0x04000, mtrr_state.fixed_ranges + (i + 1) * 8); in get_mtrr_state()
245 print_fixed(0xC0000 + i * 0x08000, 0x01000, mtrr_state.fixed_ranges + (i + 3) * 8); in get_mtrr_state()
248 mtrr_state.enabled & 2 ? "en" : "dis"); in get_mtrr_state()
251 if (mtrr_state.var_ranges[i].mask_lo & (1 << 11)) in get_mtrr_state()
255 mtrr_state.var_ranges[i].base_hi, in get_mtrr_state()
256 mtrr_state.var_ranges[i].base_lo >> 12, in get_mtrr_state()
258 mtrr_state.var_ranges[i].mask_hi, in get_mtrr_state()
259 mtrr_state.var_ranges[i].mask_lo >> 12, in get_mtrr_state()
260 mtrr_attrib_to_str(mtrr_state.var_ranges[i].base_lo & 0xff)); in get_mtrr_state()
470 if (set_mtrr_var_ranges(i, &mtrr_state.var_ranges[i])) in set_mtrr_state()
473 if (mtrr_state.have_fixed && set_fixed_ranges(mtrr_state.fixed_ranges)) in set_mtrr_state()
478 if ((deftype_lo & 0xff) != mtrr_state.def_type in set_mtrr_state()
479 || ((deftype_lo & 0xc00) >> 10) != mtrr_state.enabled) { in set_mtrr_state()
480 deftype_lo = (deftype_lo & ~0xcff) | mtrr_state.def_type | (mtrr_state.enabled << 10); in set_mtrr_state()
585 vr = &mtrr_state.var_ranges[reg]; in generic_set_mtrr()