Lines Matching full:rr

225 static int __mon_event_count(u32 rmid, struct rmid_read *rr)  in __mon_event_count()  argument
230 tval = __rmid_read(rmid, rr->evtid); in __mon_event_count()
232 rr->val = tval; in __mon_event_count()
235 switch (rr->evtid) { in __mon_event_count()
237 rr->val += tval; in __mon_event_count()
240 m = &rr->d->mbm_total[rmid]; in __mon_event_count()
243 m = &rr->d->mbm_local[rmid]; in __mon_event_count()
253 if (rr->first) { in __mon_event_count()
259 chunks = mbm_overflow_count(m->prev_msr, tval, rr->r->mbm_width); in __mon_event_count()
263 rr->val += m->chunks; in __mon_event_count()
271 static void mbm_bw_count(u32 rmid, struct rmid_read *rr) in mbm_bw_count() argument
274 struct mbm_state *m = &rr->d->mbm_local[rmid]; in mbm_bw_count()
277 tval = __rmid_read(rmid, rr->evtid); in mbm_bw_count()
281 chunks = mbm_overflow_count(m->prev_bw_msr, tval, rr->r->mbm_width); in mbm_bw_count()
298 struct rmid_read *rr = info; in mon_event_count() local
301 rdtgrp = rr->rgrp; in mon_event_count()
303 if (__mon_event_count(rdtgrp->mon.rmid, rr)) in mon_event_count()
313 if (__mon_event_count(entry->mon.rmid, rr)) in mon_event_count()
436 struct rmid_read rr; in mbm_update() local
438 rr.first = false; in mbm_update()
439 rr.r = r; in mbm_update()
440 rr.d = d; in mbm_update()
447 rr.evtid = QOS_L3_MBM_TOTAL_EVENT_ID; in mbm_update()
448 __mon_event_count(rmid, &rr); in mbm_update()
451 rr.evtid = QOS_L3_MBM_LOCAL_EVENT_ID; in mbm_update()
452 __mon_event_count(rmid, &rr); in mbm_update()
460 mbm_bw_count(rmid, &rr); in mbm_update()