Searched refs:prev_cnt (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_pcie_pmu.c | 449 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local 452 prev_cnt = local64_read(&hwc->prev_count); in hisi_pcie_pmu_event_update() 454 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, in hisi_pcie_pmu_event_update() 455 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update() 457 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update() 536 u64 prev_cnt; in hisi_pcie_pmu_start() local 550 prev_cnt = local64_read(&hwc->prev_count); in hisi_pcie_pmu_start() 551 hisi_pcie_pmu_writeq(pcie_pmu, hwc->event_base, idx, prev_cnt); in hisi_pcie_pmu_start()
|
| /linux/drivers/perf/ |
| H A D | cxl_pmu.c | 688 u64 new_cnt, prev_cnt, delta; in __cxl_pmu_read() local 691 prev_cnt = local64_read(&hwc->prev_count); in __cxl_pmu_read() 693 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); in __cxl_pmu_read() 699 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0); in __cxl_pmu_read()
|