Lines Matching refs:mtrr_state

89 struct mtrr_state_type mtrr_state;  variable
90 EXPORT_SYMBOL_GPL(mtrr_state);
137 struct mtrr_var_range *mtrr = mtrr_state.var_ranges + reg; in get_var_mtrr_state()
356 if (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED) { in mtrr_build_map()
363 type = mtrr_state.fixed_ranges[0]; in mtrr_build_map()
370 if (mtrr_state.fixed_ranges[i] != type) { in mtrr_build_map()
373 type = mtrr_state.fixed_ranges[i]; in mtrr_build_map()
405 if (!mtrr_state.enabled || !new_size) { in mtrr_copy_map()
418 mtrr_state.enabled = 0; in mtrr_copy_map()
475 mtrr_state.var_ranges[i] = var[i]; in mtrr_overwrite_state()
479 mtrr_state.def_type = def_type; in mtrr_overwrite_state()
480 mtrr_state.enabled |= MTRR_STATE_MTRR_ENABLED; in mtrr_overwrite_state()
525 if (!(mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED)) in mtrr_type_lookup()
536 type = type_merge(type, mtrr_state.def_type, uniform); in mtrr_type_lookup()
550 type = type_merge(type, mtrr_state.def_type, uniform); in mtrr_type_lookup()
569 vr = mtrr_state.var_ranges; in fill_mtrr_var_range()
595 get_fixed_ranges(mtrr_state.fixed_ranges); in mtrr_save_fixed_ranges()
647 mtrr_attrib_to_str(mtrr_state.def_type)); in print_mtrr_state()
648 if (mtrr_state.have_fixed) { in print_mtrr_state()
650 ((mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED) && in print_mtrr_state()
651 (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED)) ? in print_mtrr_state()
653 print_fixed(0x00000, 0x10000, mtrr_state.fixed_ranges + 0); in print_mtrr_state()
656 mtrr_state.fixed_ranges + (i + 1) * 8); in print_mtrr_state()
659 mtrr_state.fixed_ranges + (i + 3) * 8); in print_mtrr_state()
665 mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED ? "en" : "dis"); in print_mtrr_state()
669 if (mtrr_state.var_ranges[i].mask_lo & MTRR_PHYSMASK_V) in print_mtrr_state()
673 mtrr_state.var_ranges[i].base_hi, in print_mtrr_state()
674 mtrr_state.var_ranges[i].base_lo >> 12, in print_mtrr_state()
676 mtrr_state.var_ranges[i].mask_hi, in print_mtrr_state()
677 mtrr_state.var_ranges[i].mask_lo >> 12, in print_mtrr_state()
678 mtrr_attrib_to_str(mtrr_state.var_ranges[i].base_lo & in print_mtrr_state()
694 vrs = mtrr_state.var_ranges; in get_mtrr_state()
697 mtrr_state.have_fixed = lo & MTRR_CAP_FIX; in get_mtrr_state()
701 if (mtrr_state.have_fixed) in get_mtrr_state()
702 get_fixed_ranges(mtrr_state.fixed_ranges); in get_mtrr_state()
705 mtrr_state.def_type = lo & MTRR_DEF_TYPE_TYPE; in get_mtrr_state()
706 mtrr_state.enabled = (lo & MTRR_DEF_TYPE_ENABLE) >> MTRR_STATE_SHIFT; in get_mtrr_state()
724 return !!(mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED); in get_mtrr_state()
924 if (set_mtrr_var_ranges(i, &mtrr_state.var_ranges[i])) in set_mtrr_state()
928 if (mtrr_state.have_fixed && set_fixed_ranges(mtrr_state.fixed_ranges)) in set_mtrr_state()
935 if ((deftype_lo & MTRR_DEF_TYPE_TYPE) != mtrr_state.def_type || in set_mtrr_state()
936 ((deftype_lo & MTRR_DEF_TYPE_ENABLE) >> MTRR_STATE_SHIFT) != mtrr_state.enabled) { in set_mtrr_state()
939 mtrr_state.def_type | in set_mtrr_state()
940 (mtrr_state.enabled << MTRR_STATE_SHIFT); in set_mtrr_state()
993 vr = &mtrr_state.var_ranges[reg]; in generic_set_mtrr()