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()
823 struct p4_event_bind *bind; in p4_hw_config() local
840 bind = p4_config_get_bind(event->attr.config); in p4_hw_config()
841 if (!bind) { in p4_hw_config()
845 esel = P4_OPCODE_ESEL(bind->opcode); in p4_hw_config()
934 struct p4_pebs_bind *bind; in p4_pmu_enable_pebs() local
943 bind = &p4_pebs_bind_map[idx]; in p4_pmu_enable_pebs()
945 (void)wrmsrl_safe(MSR_IA32_PEBS_ENABLE, (u64)bind->metric_pebs); in p4_pmu_enable_pebs()
946 (void)wrmsrl_safe(MSR_P4_PEBS_MATRIX_VERT, (u64)bind->metric_vert); in p4_pmu_enable_pebs()
955 struct p4_event_bind *bind; in p4_pmu_enable_event() local
958 bind = &p4_event_bind_map[idx]; in p4_pmu_enable_event()
959 escr_addr = bind->escr_msr[thread]; in p4_pmu_enable_event()
970 escr_conf |= P4_ESCR_EVENT(P4_OPCODE_EVNT(bind->opcode)); in p4_pmu_enable_event()
1193 struct p4_event_bind *bind) in p4_next_cntr() argument
1198 j = bind->cntr[thread][i]; in p4_next_cntr()
1212 struct p4_event_bind *bind; in p4_pmu_schedule_events() local
1236 bind = p4_config_get_bind(hwc->config); in p4_pmu_schedule_events()
1237 escr_idx = p4_get_escr_idx(bind->escr_msr[thread]); in p4_pmu_schedule_events()
1248 cntr_idx = p4_next_cntr(thread, used_mask, bind); in p4_pmu_schedule_events()