Lines Matching refs:state
23 void mtrr_open(struct mtrr_state *state) in mtrr_open() argument
28 state->enable_cache = dcache_status(); in mtrr_open()
30 if (state->enable_cache) in mtrr_open()
32 state->deftype = native_read_msr(MTRR_DEF_TYPE_MSR); in mtrr_open()
33 wrmsrl(MTRR_DEF_TYPE_MSR, state->deftype & ~MTRR_DEF_TYPE_EN); in mtrr_open()
37 void mtrr_close(struct mtrr_state *state) in mtrr_close() argument
42 wrmsrl(MTRR_DEF_TYPE_MSR, state->deftype | MTRR_DEF_TYPE_EN); in mtrr_close()
43 if (state->enable_cache) in mtrr_close()
50 struct mtrr_state state; in mtrr_commit() local
57 mtrr_open(&state); in mtrr_commit()
68 mtrr_close(&state); in mtrr_commit()