Lines Matching refs:pev
700 static unsigned int mipspmu_perf_event_encode(const struct mips_perf_event *pev) in mipspmu_perf_event_encode() argument
708 return ((unsigned int)pev->range << 24) | in mipspmu_perf_event_encode()
709 (pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
710 (pev->event_id & 0xff); in mipspmu_perf_event_encode()
715 return (pev->cntr_mask & 0xfffc00) | in mipspmu_perf_event_encode()
716 (pev->event_id & 0x3ff); in mipspmu_perf_event_encode()
718 return (pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
719 (pev->event_id & 0xff); in mipspmu_perf_event_encode()
734 const struct mips_perf_event *pev; in mipspmu_map_cache_event() local
748 pev = &((*mipspmu.cache_event_map) in mipspmu_map_cache_event()
753 if (pev->cntr_mask == 0) in mipspmu_map_cache_event()
756 return pev; in mipspmu_map_cache_event()
1475 const struct mips_perf_event *pev; in __hw_perf_event_init() local
1482 pev = mipspmu_map_general_event(event->attr.config); in __hw_perf_event_init()
1484 pev = mipspmu_map_cache_event(event->attr.config); in __hw_perf_event_init()
1488 pev = mipspmu.map_raw_event(event->attr.config); in __hw_perf_event_init()
1494 if (IS_ERR(pev)) { in __hw_perf_event_init()
1497 return PTR_ERR(pev); in __hw_perf_event_init()
1506 hwc->event_base = mipspmu_perf_event_encode(pev); in __hw_perf_event_init()