L3C_NR_COUNTERS
if (used_cntr < L3C_NR_COUNTERS) {
if (used_cntr < L3C_NR_COUNTERS) {
status_ext |= ext_int << (L3C_NR_COUNTERS * i);
return status | (status_ext << L3C_NR_COUNTERS);
l3c_pmu->num_counters = L3C_NR_COUNTERS;
l3c_pmu->num_counters += hisi_l3c_pmu->ext_num * L3C_NR_COUNTERS;
#define L3C_HW_IDX(_cntr_idx) ((_cntr_idx) % L3C_NR_COUNTERS)
#define L3C_CNTR_EXT_L(_ext) (((_ext) + 1) * L3C_NR_COUNTERS)
#define L3C_CNTR_EXT_H(_ext) (((_ext) + 2) * L3C_NR_COUNTERS)