Home
last modified time | relevance | path

Searched refs:mtrr_state (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dmtrr.c39 return &vcpu->arch.mtrr_state.var_ranges[index]; in var_mtrr_msr_to_range()
104 static bool mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in mtrr_is_enabled() argument
106 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_E); in mtrr_is_enabled()
109 static bool fixed_mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in fixed_mtrr_is_enabled() argument
111 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_FE); in fixed_mtrr_is_enabled()
114 static u8 mtrr_default_type(struct kvm_mtrr *mtrr_state) in mtrr_default_type() argument
116 return mtrr_state->deftype & IA32_MTRR_DEF_TYPE_TYPE_MASK; in mtrr_default_type()
320 struct kvm_mtrr *mtrr_state = &vcpu->arch.mtrr_state; in update_mtrr() local
326 if (!mtrr_is_enabled(mtrr_state) && msr != MSR_MTRRdefType) in update_mtrr()
331 if (!fixed_mtrr_is_enabled(mtrr_state)) in update_mtrr()
[all …]
/openbmc/linux/arch/x86/kernel/cpu/mtrr/
H A Dgeneric.c89 struct mtrr_state_type mtrr_state; variable
90 EXPORT_SYMBOL_GPL(mtrr_state);
134 struct mtrr_var_range *mtrr = mtrr_state.var_ranges + reg; in get_var_mtrr_state()
353 if (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED) { in mtrr_build_map()
360 type = mtrr_state.fixed_ranges[0]; in mtrr_build_map()
367 if (mtrr_state.fixed_ranges[i] != type) { in mtrr_build_map()
370 type = mtrr_state.fixed_ranges[i]; in mtrr_build_map()
402 if (!mtrr_state.enabled || !new_size) { in mtrr_copy_map()
415 mtrr_state.enabled = 0; in mtrr_copy_map()
468 mtrr_state.var_ranges[i] = var[i]; in mtrr_overwrite_state()
[all …]
H A Dmtrr.h62 extern struct mtrr_state_type mtrr_state;
H A Dmtrr.c561 if (!generic_mtrrs && mtrr_state.enabled) { in mtrr_bp_init()
612 if (!mtrr_enabled() || !mtrr_state.have_fixed) in mtrr_save_state()
H A Dcleanup.c95 if (base < (1<<(20-PAGE_SHIFT)) && mtrr_state.have_fixed && in x86_get_mtrr_mem_range()
96 (mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED) && in x86_get_mtrr_mem_range()
97 (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED)) { in x86_get_mtrr_mem_range()
/openbmc/u-boot/arch/x86/include/asm/
H A Dmtrr.h67 struct mtrr_state { struct
82 void mtrr_open(struct mtrr_state *state, bool do_caches); argument
92 void mtrr_close(struct mtrr_state *state, bool do_caches);
/openbmc/u-boot/arch/x86/cpu/
H A Dmtrr.c27 void mtrr_open(struct mtrr_state *state, bool do_caches) in mtrr_open()
43 void mtrr_close(struct mtrr_state *state, bool do_caches) in mtrr_close()
56 struct mtrr_state state; in mtrr_commit()
/openbmc/u-boot/cmd/x86/
H A Dmtrr.c49 struct mtrr_state state; in do_mtrr_set()
86 struct mtrr_state state; in mtrr_set_valid()
/openbmc/u-boot/arch/x86/cpu/coreboot/
H A Dcoreboot.c56 struct mtrr_state state; in board_final_cleanup()
/openbmc/linux/arch/x86/include/asm/
H A Dkvm_host.h901 struct kvm_mtrr mtrr_state; member