Lines Matching refs:pmu_event
882 struct hns3_pmu_event_attr *pmu_event; in hns3_pmu_get_pmu_event() local
892 pmu_event = eattr->var; in hns3_pmu_get_pmu_event()
894 if (event == pmu_event->event) in hns3_pmu_get_pmu_event()
895 return pmu_event; in hns3_pmu_get_pmu_event()
937 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_global_mode() argument
941 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_GLOBAL)) in hns3_pmu_is_enabled_global_mode()
948 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_func_mode() argument
953 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_FUNC)) in hns3_pmu_is_enabled_func_mode()
963 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_func_queue_mode() argument
968 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_FUNC_QUEUE)) in hns3_pmu_is_enabled_func_queue_mode()
977 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_port_mode() argument
981 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_PORT)) in hns3_pmu_is_enabled_port_mode()
989 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_port_tc_mode() argument
993 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_PORT_TC)) in hns3_pmu_is_enabled_port_tc_mode()
1002 struct hns3_pmu_event_attr *pmu_event) in hns3_pmu_is_enabled_func_intr_mode() argument
1006 if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_FUNC_INTR)) in hns3_pmu_is_enabled_func_intr_mode()
1017 struct hns3_pmu_event_attr *pmu_event; in hns3_pmu_select_filter_mode() local
1019 pmu_event = hns3_pmu_get_pmu_event(event_id); in hns3_pmu_select_filter_mode()
1020 if (!pmu_event) { in hns3_pmu_select_filter_mode()
1025 if (hns3_pmu_is_enabled_global_mode(event, pmu_event)) { in hns3_pmu_select_filter_mode()
1030 if (hns3_pmu_is_enabled_func_mode(event, pmu_event)) in hns3_pmu_select_filter_mode()
1033 if (hns3_pmu_is_enabled_func_queue_mode(event, pmu_event)) in hns3_pmu_select_filter_mode()
1036 if (hns3_pmu_is_enabled_port_mode(event, pmu_event)) { in hns3_pmu_select_filter_mode()
1041 if (hns3_pmu_is_enabled_port_tc_mode(event, pmu_event)) { in hns3_pmu_select_filter_mode()
1046 if (hns3_pmu_is_enabled_func_intr_mode(event, hns3_pmu, pmu_event)) { in hns3_pmu_select_filter_mode()