Lines Matching refs:am
277 struct arch_mbm_state *am; in resctrl_arch_reset_rmid() local
280 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid()
281 if (am) { in resctrl_arch_reset_rmid()
282 memset(am, 0, sizeof(*am)); in resctrl_arch_reset_rmid()
286 __rmid_read_phys(prmid, eventid, &am->prev_msr); in resctrl_arch_reset_rmid()
322 struct arch_mbm_state *am; in resctrl_arch_rmid_read() local
334 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_rmid_read()
335 if (am) { in resctrl_arch_rmid_read()
336 am->chunks += mbm_overflow_count(am->prev_msr, msr_val, in resctrl_arch_rmid_read()
338 chunks = get_corrected_mbm_count(rmid, am->chunks); in resctrl_arch_rmid_read()
339 am->prev_msr = msr_val; in resctrl_arch_rmid_read()