Home
last modified time | relevance | path

Searched refs:L3C_HW_IDX (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/perf/hisilicon/
H A Dhisi_uncore_l3c_pmu.c86 #define L3C_HW_IDX(_cntr_idx) ((_cntr_idx) % L3C_NR_COUNTERS) macro
224 int idx = L3C_HW_IDX(hwc->idx); in hisi_l3c_pmu_write_ds()
365 return L3C_CNTR0_LOWER + L3C_HW_IDX(cntr_idx) * 8; in hisi_l3c_pmu_get_counter_offset()
386 idx = L3C_HW_IDX(idx); in hisi_l3c_pmu_write_evtype()
475 val |= 1 << L3C_HW_IDX(hwc->idx); in hisi_l3c_pmu_enable_counter()
486 val &= ~(1 << L3C_HW_IDX(hwc->idx)); in hisi_l3c_pmu_disable_counter()
497 val &= ~(1 << L3C_HW_IDX(hwc->idx)); in hisi_l3c_pmu_enable_counter_int()
508 val |= 1 << L3C_HW_IDX(hwc->idx); in hisi_l3c_pmu_disable_counter_int()
535 hisi_l3c_pmu_event_writel(hwc, L3C_INT_CLEAR, 1 << L3C_HW_IDX(idx)); in hisi_l3c_pmu_clear_int_status()