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()
1227 struct p4_event_bind *bind) in p4_next_cntr() argument
1232 j = bind->cntr[thread][i]; in p4_next_cntr()
1246 struct p4_event_bind *bind; in p4_pmu_schedule_events() local
1270 bind = p4_config_get_bind(hwc->config); in p4_pmu_schedule_events()
1271 escr_idx = p4_get_escr_idx(bind->escr_msr[thread]); in p4_pmu_schedule_events()
1282 cntr_idx = p4_next_cntr(thread, used_mask, bind); in p4_pmu_schedule_events()