Lines Matching refs:tval
292 u64 chunks, tval; in __mon_event_count() local
294 tval = __rmid_read(rmid, rr->evtid); in __mon_event_count()
295 if (tval & (RMID_VAL_ERROR | RMID_VAL_UNAVAIL)) { in __mon_event_count()
296 return tval; in __mon_event_count()
300 rr->val += tval; in __mon_event_count()
318 m->prev_bw_msr = m->prev_msr = tval; in __mon_event_count()
322 chunks = mbm_overflow_count(m->prev_msr, tval, hw_res->mbm_width); in __mon_event_count()
324 m->prev_msr = tval; in __mon_event_count()
339 u64 tval, cur_bw, chunks; in mbm_bw_count() local
341 tval = __rmid_read(rmid, rr->evtid); in mbm_bw_count()
342 if (tval & (RMID_VAL_ERROR | RMID_VAL_UNAVAIL)) in mbm_bw_count()
345 chunks = mbm_overflow_count(m->prev_bw_msr, tval, hw_res->mbm_width); in mbm_bw_count()
352 m->prev_bw_msr = tval; in mbm_bw_count()