Home
last modified time | relevance | path

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

/openbmc/linux/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c439 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local
442 prev_cnt = local64_read(&hwc->prev_count); in hisi_pcie_pmu_event_update()
444 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, in hisi_pcie_pmu_event_update()
445 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update()
447 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
512 u64 prev_cnt; in hisi_pcie_pmu_start() local
526 prev_cnt = local64_read(&hwc->prev_count); in hisi_pcie_pmu_start()
527 hisi_pcie_pmu_writeq(pcie_pmu, hwc->event_base, idx, prev_cnt); in hisi_pcie_pmu_start()
H A Dhns3_pmu.c1291 u64 new_cnt, prev_cnt, delta; in hns3_pmu_read() local
1294 prev_cnt = local64_read(&hwc->prev_count); in hns3_pmu_read()
1296 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != in hns3_pmu_read()
1297 prev_cnt); in hns3_pmu_read()
1299 delta = new_cnt - prev_cnt; in hns3_pmu_read()
/openbmc/linux/drivers/perf/
H A Dcxl_pmu.c696 u64 new_cnt, prev_cnt, delta; in __cxl_pmu_read() local
699 prev_cnt = local64_read(&hwc->prev_count); in __cxl_pmu_read()
701 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); in __cxl_pmu_read()
707 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0); in __cxl_pmu_read()
/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.c4888 int i, j, prev_cnt; in s2io_set_multicast() local
4990 prev_cnt = sp->mc_addr_count; in s2io_set_multicast()
4994 for (i = 0; i < prev_cnt; i++) { in s2io_set_multicast()