Lines Matching refs:pev
657 static unsigned int mipspmu_perf_event_encode(const struct mips_perf_event *pev) in mipspmu_perf_event_encode() argument
665 return ((unsigned int)pev->range << 24) | in mipspmu_perf_event_encode()
666 (pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
667 (pev->event_id & 0xff); in mipspmu_perf_event_encode()
670 return ((pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
671 (pev->event_id & 0xff)); in mipspmu_perf_event_encode()
685 const struct mips_perf_event *pev; in mipspmu_map_cache_event() local
699 pev = &((*mipspmu.cache_event_map) in mipspmu_map_cache_event()
704 if (pev->cntr_mask == 0) in mipspmu_map_cache_event()
707 return pev; in mipspmu_map_cache_event()
1283 const struct mips_perf_event *pev; in __hw_perf_event_init() local
1290 pev = mipspmu_map_general_event(event->attr.config); in __hw_perf_event_init()
1292 pev = mipspmu_map_cache_event(event->attr.config); in __hw_perf_event_init()
1296 pev = mipspmu.map_raw_event(event->attr.config); in __hw_perf_event_init()
1302 if (IS_ERR(pev)) { in __hw_perf_event_init()
1305 return PTR_ERR(pev); in __hw_perf_event_init()
1314 hwc->event_base = mipspmu_perf_event_encode(pev); in __hw_perf_event_init()