Lines Matching refs:bind
708 struct p4_event_bind *bind = NULL; in p4_config_get_bind() local
711 bind = &p4_event_bind_map[evnt]; in p4_config_get_bind()
713 return bind; in p4_config_get_bind()
718 struct p4_event_bind *bind; in p4_pmu_event_map() local
723 bind = p4_config_get_bind(config); in p4_pmu_event_map()
724 esel = P4_OPCODE_ESEL(bind->opcode); in p4_pmu_event_map()
824 struct p4_event_bind *bind; in p4_hw_config() local
841 bind = p4_config_get_bind(event->attr.config); in p4_hw_config()
842 if (!bind) { in p4_hw_config()
846 esel = P4_OPCODE_ESEL(bind->opcode); in p4_hw_config()
935 struct p4_pebs_bind *bind; in p4_pmu_enable_pebs() local
944 bind = &p4_pebs_bind_map[idx]; in p4_pmu_enable_pebs()
946 (void)wrmsrl_safe(MSR_IA32_PEBS_ENABLE, (u64)bind->metric_pebs); in p4_pmu_enable_pebs()
947 (void)wrmsrl_safe(MSR_P4_PEBS_MATRIX_VERT, (u64)bind->metric_vert); in p4_pmu_enable_pebs()
956 struct p4_event_bind *bind; in __p4_pmu_enable_event() local
959 bind = &p4_event_bind_map[idx]; in __p4_pmu_enable_event()
960 escr_addr = bind->escr_msr[thread]; in __p4_pmu_enable_event()
971 escr_conf |= P4_ESCR_EVENT(P4_OPCODE_EVNT(bind->opcode)); in __p4_pmu_enable_event()
1204 struct p4_event_bind *bind) in p4_next_cntr() argument
1209 j = bind->cntr[thread][i]; in p4_next_cntr()
1223 struct p4_event_bind *bind; in p4_pmu_schedule_events() local
1247 bind = p4_config_get_bind(hwc->config); in p4_pmu_schedule_events()
1248 escr_idx = p4_get_escr_idx(bind->escr_msr[thread]); in p4_pmu_schedule_events()
1259 cntr_idx = p4_next_cntr(thread, used_mask, bind); in p4_pmu_schedule_events()