Searched refs:prev_cnt (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/perf/hisilicon/ |
H A D | hisi_pcie_pmu.c | 439 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() 526 u64 prev_cnt; in hisi_pcie_pmu_start() local 540 prev_cnt = local64_read(&hwc->prev_count); in hisi_pcie_pmu_start() 541 hisi_pcie_pmu_writeq(pcie_pmu, hwc->event_base, idx, prev_cnt); in hisi_pcie_pmu_start()
|
H A D | hns3_pmu.c | 1291 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 D | cxl_pmu.c | 696 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 D | s2io.c | 4888 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()
|