Home
last modified time | relevance | path

Searched refs:local64_set (Results 1 – 25 of 54) sorted by relevance

123

/linux/include/asm-generic/
A Dlocal64.h31 #define local64_set(l,i) local_set((&(l)->a),(i)) macro
52 #define __local64_inc(l) local64_set((l), local64_read(l) + 1)
53 #define __local64_dec(l) local64_set((l), local64_read(l) - 1)
54 #define __local64_add(i,l) local64_set((l), local64_read(l) + (i))
55 #define __local64_sub(i,l) local64_set((l), local64_read(l) - (i))
69 #define local64_set(l,i) atomic64_set((&(l)->a),(i)) macro
90 #define __local64_inc(l) local64_set((l), local64_read(l) + 1)
91 #define __local64_dec(l) local64_set((l), local64_read(l) - 1)
92 #define __local64_add(i,l) local64_set((l), local64_read(l) + (i))
93 #define __local64_sub(i,l) local64_set((l), local64_read(l) - (i))
/linux/arch/arc/kernel/
A Dperf_event.c129 local64_set(&hwc->prev_count, new_raw_count); in arc_perf_event_update()
175 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init()
255 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
261 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
270 local64_set(&hwc->prev_count, value); in arc_pmu_event_set_period()
388 local64_set(&hwc->prev_count, 0); in arc_pmu_add()
/linux/arch/powerpc/perf/
A Dcore-fsl-emb.c314 local64_set(&event->hw.prev_count, val); in fsl_emb_pmu_add()
547 local64_set(&event->hw.period_left, event->hw.last_period); in fsl_emb_pmu_event_init()
625 local64_set(&event->hw.prev_count, val); in record_and_restart()
626 local64_set(&event->hw.period_left, left); in record_and_restart()
A Dcore-book3s.c1127 local64_set(&event->hw.prev_count, val); in power_pmu_read()
1208 local64_set(&event->hw.prev_count, val); in thaw_limited_counters()
1481 local64_set(&event->hw.prev_count, val); in power_pmu_enable()
2076 local64_set(&event->hw.period_left, event->hw.last_period); in power_pmu_event_init()
2083 local64_set(&event->hw.prev_count, 0); in power_pmu_event_init()
2193 local64_set(&event->hw.prev_count, val); in record_and_restart()
2194 local64_set(&event->hw.period_left, left); in record_and_restart()
A D8xx-pmu.c115 local64_set(&event->hw.prev_count, val); in mpc8xx_pmu_add()
A Dhv-gpci.c211 local64_set(&event->hw.prev_count, h_gpci_get_value(event)); in h_gpci_event_start()
/linux/arch/xtensa/kernel/
A Dperf_event.c168 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
173 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
181 local64_set(&hwc->prev_count, -left); in xtensa_perf_event_set_period()
/linux/arch/alpha/kernel/
A Dperf_event.c261 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
268 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
283 local64_set(&hwc->prev_count, (unsigned long)(-left)); in alpha_perf_event_set_period()
681 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux/arch/x86/events/
A Dmsr.c252 local64_set(&event->count, now); in msr_event_update()
262 local64_set(&event->hw.prev_count, now); in msr_event_start()
/linux/arch/x86/events/amd/
A Dibs.c116 local64_set(&hwc->period_left, left); in perf_event_set_period()
123 local64_set(&hwc->period_left, left); in perf_event_set_period()
302 local64_set(&hwc->period_left, hwc->sample_period); in perf_ibs_init()
317 local64_set(&hwc->prev_count, 0); in perf_ibs_set_period()
/linux/drivers/perf/
A Darm_pmu.c208 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
215 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
229 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
487 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
A Dthunderx2_pmu.c379 local64_set(&hwc->prev_count, 0); in uncore_start_event_l3c()
409 local64_set(&hwc->prev_count, 0); in uncore_start_event_dmc()
452 local64_set(&event->hw.prev_count, 0ULL); in uncore_start_event_ccpi2()
A Dqcom_l3_pmu.c206 local64_set(&event->hw.prev_count, 0); in qcom_l3_cache__64bit_counter_start()
285 local64_set(&event->hw.prev_count, 0); in qcom_l3_cache__32bit_counter_start()
A Darm_smmuv3_pmu.c249 local64_set(&hwc->prev_count, new); in smmu_pmu_set_period()
447 local64_set(&hwc->prev_count, 0); in smmu_pmu_event_add()
A Dqcom_l2_pmu.c335 local64_set(&hwc->prev_count, new); in l2_cache_cluster_set_period()
604 local64_set(&hwc->prev_count, 0); in l2_cache_event_add()
/linux/include/linux/
A Du64_stats_sync.h88 local64_set(&p->v, val); in u64_stats_set()
/linux/arch/nds32/kernel/
A Dperf_event_cpu.c197 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period()
204 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period()
216 local64_set(&hwc->prev_count, (u64)(-left)); in nds32_pmu_event_set_period()
846 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux/arch/csky/kernel/
A Dperf_event.c887 local64_set(&hwc->period_left, left); in csky_pmu_event_set_period()
894 local64_set(&hwc->period_left, left); in csky_pmu_event_set_period()
906 local64_set(&hwc->prev_count, (u64)(-left)); in csky_pmu_event_set_period()
935 local64_set(&hwc->prev_count, new_raw_count); in csky_perf_event_update()
/linux/arch/arm/mach-imx/
A Dmmdc.c340 local64_set(&hwc->prev_count, 0); in mmdc_pmu_event_start()
375 local64_set(&hwc->prev_count, mmdc_pmu_read_counter(pmu_mmdc, cfg)); in mmdc_pmu_event_add()
/linux/arch/mips/kernel/
A Dperf_event_mipsxx.c420 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
426 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
433 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
436 local64_set(&hwc->prev_count, mipspmu.overflow - left); in mipspmu_event_set_period()
1531 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux/Documentation/translations/zh_CN/riscv/
A Dpmu.rst86 local64_set(&hwc->period_left, hwc->sample_period);
/linux/arch/sparc/kernel/
A Dperf_event.c900 local64_set(&hwc->period_left, left); in sparc_perf_event_set_period()
907 local64_set(&hwc->period_left, left); in sparc_perf_event_set_period()
914 local64_set(&hwc->prev_count, (u64)-left); in sparc_perf_event_set_period()
1501 local64_set(&hwc->period_left, hwc->sample_period); in sparc_pmu_event_init()
/linux/arch/riscv/kernel/
A Dperf_event.c291 local64_set(&hwc->prev_count, read_counter(hwc->idx)); in riscv_pmu_start()
/linux/arch/arm/mm/
A Dcache-l2x0-pmu.c147 local64_set(&hw->prev_count, 0); in l2x0_pmu_event_configure()
/linux/drivers/perf/hisilicon/
A Dhisi_uncore_pmu.c284 local64_set(&hwc->prev_count, val); in hisi_uncore_pmu_set_event_period()

Completed in 44 milliseconds

123