Searched refs:hisi_pmu (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/perf/hisilicon/ |
H A D | hisi_uncore_pmu.c | 45 struct hisi_pmu *hisi_pmu = to_hisi_pmu(dev_get_drvdata(dev)); in hisi_cpumask_sysfs_show() local 47 return sysfs_emit(buf, "%d\n", hisi_pmu->on_cpu); in hisi_cpumask_sysfs_show() 54 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group() local 81 return counters <= hisi_pmu->num_counters; in hisi_validate_event_group() 86 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_uncore_pmu_get_event_idx() local 87 unsigned long *used_mask = hisi_pmu->pmu_events.used_mask; in hisi_uncore_pmu_get_event_idx() 88 u32 num_counters = hisi_pmu->num_counters; in hisi_uncore_pmu_get_event_idx() 105 struct hisi_pmu *hisi_pmu = to_hisi_pmu(dev_get_drvdata(dev)); in hisi_uncore_pmu_identifier_attr_show() local 107 return sysfs_emit(page, "0x%08x\n", hisi_pmu->identifier); in hisi_uncore_pmu_identifier_attr_show() 111 static void hisi_uncore_pmu_clear_event_idx(struct hisi_pmu *hisi_pmu, int idx) in hisi_uncore_pmu_clear_event_idx() argument [all …]
|
H A D | hisi_uncore_ddrc_pmu.c | 81 static u64 hisi_ddrc_pmu_v1_read_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v1_read_counter() 88 static void hisi_ddrc_pmu_v1_write_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v1_write_counter() 95 static u64 hisi_ddrc_pmu_v2_read_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v2_read_counter() 102 static void hisi_ddrc_pmu_v2_write_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v2_write_counter() 114 static void hisi_ddrc_pmu_write_evtype(struct hisi_pmu *hha_pmu, int idx, in hisi_ddrc_pmu_write_evtype() 125 static void hisi_ddrc_pmu_v1_start_counters(struct hisi_pmu *ddrc_pmu) in hisi_ddrc_pmu_v1_start_counters() 135 static void hisi_ddrc_pmu_v1_stop_counters(struct hisi_pmu *ddrc_pmu) in hisi_ddrc_pmu_v1_stop_counters() 145 static void hisi_ddrc_pmu_v1_enable_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v1_enable_counter() 156 static void hisi_ddrc_pmu_v1_disable_counter(struct hisi_pmu *ddrc_pmu, in hisi_ddrc_pmu_v1_disable_counter() 169 struct hisi_pmu *ddrc_pmu = to_hisi_pmu(event->pmu); in hisi_ddrc_pmu_v1_get_event_idx() [all …]
|
H A D | hisi_uncore_uc_pmu.c | 56 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_check_filter() 78 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_config_req_tracetag() 99 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_clear_req_tracetag() 119 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_config_srcid_tracetag() 146 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_clear_srcid_tracetag() 171 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_config_uring_channel() 192 struct hisi_pmu *uc_pmu = to_hisi_pmu(event->pmu); in hisi_uc_pmu_clear_uring_channel() 229 static void hisi_uc_pmu_write_evtype(struct hisi_pmu *uc_pmu, int idx, u32 type) in hisi_uc_pmu_write_evtype() 244 static void hisi_uc_pmu_start_counters(struct hisi_pmu *uc_pmu) in hisi_uc_pmu_start_counters() 253 static void hisi_uc_pmu_stop_counters(struct hisi_pmu *uc_pmu) in hisi_uc_pmu_stop_counters() [all …]
|
H A D | hisi_uncore_cpa_pmu.c | 49 static u64 hisi_cpa_pmu_read_counter(struct hisi_pmu *cpa_pmu, in hisi_cpa_pmu_read_counter() 55 static void hisi_cpa_pmu_write_counter(struct hisi_pmu *cpa_pmu, in hisi_cpa_pmu_write_counter() 61 static void hisi_cpa_pmu_write_evtype(struct hisi_pmu *cpa_pmu, int idx, in hisi_cpa_pmu_write_evtype() 84 static void hisi_cpa_pmu_start_counters(struct hisi_pmu *cpa_pmu) in hisi_cpa_pmu_start_counters() 93 static void hisi_cpa_pmu_stop_counters(struct hisi_pmu *cpa_pmu) in hisi_cpa_pmu_stop_counters() 102 static void hisi_cpa_pmu_disable_pm(struct hisi_pmu *cpa_pmu) in hisi_cpa_pmu_disable_pm() 111 static void hisi_cpa_pmu_enable_pm(struct hisi_pmu *cpa_pmu) in hisi_cpa_pmu_enable_pm() 120 static void hisi_cpa_pmu_enable_counter(struct hisi_pmu *cpa_pmu, in hisi_cpa_pmu_enable_counter() 131 static void hisi_cpa_pmu_disable_counter(struct hisi_pmu *cpa_pmu, in hisi_cpa_pmu_disable_counter() 142 static void hisi_cpa_pmu_enable_counter_int(struct hisi_pmu *cpa_pmu, in hisi_cpa_pmu_enable_counter_int() [all …]
|
H A D | hisi_uncore_pa_pmu.c | 63 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_enable_tracetag() 77 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_clear_tracetag() 91 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_config_tgtid() 104 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_clear_tgtid() 113 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_config_srcid() 126 struct hisi_pmu *pa_pmu = to_hisi_pmu(event->pmu); in hisi_pa_pmu_clear_srcid() 156 static u64 hisi_pa_pmu_read_counter(struct hisi_pmu *pa_pmu, in hisi_pa_pmu_read_counter() 162 static void hisi_pa_pmu_write_counter(struct hisi_pmu *pa_pmu, in hisi_pa_pmu_write_counter() 168 static void hisi_pa_pmu_write_evtype(struct hisi_pmu *pa_pmu, int idx, in hisi_pa_pmu_write_evtype() 191 static void hisi_pa_pmu_start_counters(struct hisi_pmu *pa_pmu) in hisi_pa_pmu_start_counters() [all …]
|
H A D | hisi_uncore_hha_pmu.c | 61 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_enable_tracetag() 75 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_clear_tracetag() 85 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_config_ds() 99 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_clear_ds() 113 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_config_srcid() 129 struct hisi_pmu *hha_pmu = to_hisi_pmu(event->pmu); in hisi_hha_pmu_disable_srcid() 168 static u64 hisi_hha_pmu_read_counter(struct hisi_pmu *hha_pmu, in hisi_hha_pmu_read_counter() 175 static void hisi_hha_pmu_write_counter(struct hisi_pmu *hha_pmu, in hisi_hha_pmu_write_counter() 182 static void hisi_hha_pmu_write_evtype(struct hisi_pmu *hha_pmu, int idx, in hisi_hha_pmu_write_evtype() 205 static void hisi_hha_pmu_start_counters(struct hisi_pmu *hha_pmu) in hisi_hha_pmu_start_counters() [all …]
|
H A D | hisi_uncore_sllc_pmu.c | 58 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_enable_tracetag() 72 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_disable_tracetag() 86 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_config_tgtid() 103 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_clear_tgtid() 120 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_config_srcid() 138 struct hisi_pmu *sllc_pmu = to_hisi_pmu(event->pmu); in hisi_sllc_pmu_clear_srcid() 175 static u64 hisi_sllc_pmu_read_counter(struct hisi_pmu *sllc_pmu, in hisi_sllc_pmu_read_counter() 182 static void hisi_sllc_pmu_write_counter(struct hisi_pmu *sllc_pmu, in hisi_sllc_pmu_write_counter() 189 static void hisi_sllc_pmu_write_evtype(struct hisi_pmu *sllc_pmu, int idx, in hisi_sllc_pmu_write_evtype() 212 static void hisi_sllc_pmu_start_counters(struct hisi_pmu *sllc_pmu) in hisi_sllc_pmu_start_counters() [all …]
|
H A D | hisi_uncore_l3c_pmu.c | 65 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_config_req_tracetag() 86 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_clear_req_tracetag() 107 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_write_ds() 131 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_config_ds() 149 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_clear_ds() 167 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_config_core_tracetag() 188 struct hisi_pmu *l3c_pmu = to_hisi_pmu(event->pmu); in hisi_l3c_pmu_clear_core_tracetag() 233 static u64 hisi_l3c_pmu_read_counter(struct hisi_pmu *l3c_pmu, in hisi_l3c_pmu_read_counter() 239 static void hisi_l3c_pmu_write_counter(struct hisi_pmu *l3c_pmu, in hisi_l3c_pmu_write_counter() 245 static void hisi_l3c_pmu_write_evtype(struct hisi_pmu *l3c_pmu, int idx, in hisi_l3c_pmu_write_evtype() [all …]
|