Lines Matching refs:eventid
136 static int __rmid_read_phys(u32 prmid, enum resctrl_event_id eventid, u64 *val) in __rmid_read_phys() argument
148 wrmsr(MSR_IA32_QM_EVTSEL, eventid, prmid); in __rmid_read_phys()
162 enum resctrl_event_id eventid) in get_arch_mbm_state() argument
166 if (!resctrl_is_mbm_event(eventid)) in get_arch_mbm_state()
169 state = hw_dom->arch_mbm_states[MBM_STATE_IDX(eventid)]; in get_arch_mbm_state()
176 enum resctrl_event_id eventid) in resctrl_arch_reset_rmid() argument
183 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid()
189 __rmid_read_phys(prmid, eventid, &am->prev_msr); in resctrl_arch_reset_rmid()
200 enum resctrl_event_id eventid; in resctrl_arch_reset_rmid_all() local
203 for_each_mbm_event_id(eventid) { in resctrl_arch_reset_rmid_all()
204 if (!resctrl_is_mon_event_enabled(eventid)) in resctrl_arch_reset_rmid_all()
206 idx = MBM_STATE_IDX(eventid); in resctrl_arch_reset_rmid_all()
221 u32 rmid, enum resctrl_event_id eventid, u64 msr_val) in get_corrected_val() argument
228 am = get_arch_mbm_state(hw_dom, rmid, eventid); in get_corrected_val()
242 u32 unused, u32 rmid, enum resctrl_event_id eventid, in resctrl_arch_rmid_read() argument
265 ret = __rmid_read_phys(prmid, eventid, &msr_val); in resctrl_arch_rmid_read()
268 *val = get_corrected_val(r, d, rmid, eventid, msr_val); in resctrl_arch_rmid_read()
270 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_rmid_read()
317 enum resctrl_event_id eventid) in resctrl_arch_reset_cntr() argument
322 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_cntr()
333 enum resctrl_event_id eventid, u64 *val) in resctrl_arch_cntr_read() argument
342 *val = get_corrected_val(r, d, rmid, eventid, msr_val); in resctrl_arch_cntr_read()