Lines Matching refs:rr

288 static u64 __mon_event_count(u32 rmid, struct rmid_read *rr)  in __mon_event_count()  argument
290 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(rr->r); in __mon_event_count()
294 tval = __rmid_read(rmid, rr->evtid); in __mon_event_count()
298 switch (rr->evtid) { in __mon_event_count()
300 rr->val += tval; in __mon_event_count()
303 m = &rr->d->mbm_total[rmid]; in __mon_event_count()
306 m = &rr->d->mbm_local[rmid]; in __mon_event_count()
316 if (rr->first) { in __mon_event_count()
326 rr->val += get_corrected_mbm_count(rmid, m->chunks); in __mon_event_count()
335 static void mbm_bw_count(u32 rmid, struct rmid_read *rr) in mbm_bw_count() argument
337 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(rr->r); in mbm_bw_count()
338 struct mbm_state *m = &rr->d->mbm_local[rmid]; in mbm_bw_count()
341 tval = __rmid_read(rmid, rr->evtid); in mbm_bw_count()
362 struct rmid_read *rr = info; in mon_event_count() local
366 rdtgrp = rr->rgrp; in mon_event_count()
368 ret_val = __mon_event_count(rdtgrp->mon.rmid, rr); in mon_event_count()
379 if (__mon_event_count(entry->mon.rmid, rr) == 0) in mon_event_count()
386 rr->val = ret_val; in mon_event_count()
514 struct rmid_read rr; in mbm_update() local
516 rr.first = false; in mbm_update()
517 rr.r = r; in mbm_update()
518 rr.d = d; in mbm_update()
525 rr.evtid = QOS_L3_MBM_TOTAL_EVENT_ID; in mbm_update()
526 __mon_event_count(rmid, &rr); in mbm_update()
529 rr.evtid = QOS_L3_MBM_LOCAL_EVENT_ID; in mbm_update()
530 __mon_event_count(rmid, &rr); in mbm_update()
538 mbm_bw_count(rmid, &rr); in mbm_update()