Home
last modified time | relevance | path

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

123

/linux-6.6.21/include/asm-generic/
Dlocal64.h31 #define local64_set(l,i) local_set((&(l)->a),(i)) macro
61 #define __local64_inc(l) local64_set((l), local64_read(l) + 1)
62 #define __local64_dec(l) local64_set((l), local64_read(l) - 1)
63 #define __local64_add(i,l) local64_set((l), local64_read(l) + (i))
64 #define __local64_sub(i,l) local64_set((l), local64_read(l) - (i))
78 #define local64_set(l,i) atomic64_set((&(l)->a),(i)) macro
100 #define __local64_inc(l) local64_set((l), local64_read(l) + 1)
101 #define __local64_dec(l) local64_set((l), local64_read(l) - 1)
102 #define __local64_add(i,l) local64_set((l), local64_read(l) + (i))
103 #define __local64_sub(i,l) local64_set((l), local64_read(l) - (i))
/linux-6.6.21/drivers/perf/
Driscv_pmu.c216 local64_set(&hwc->period_left, left); in riscv_pmu_event_set_period()
223 local64_set(&hwc->period_left, left); in riscv_pmu_event_set_period()
237 local64_set(&hwc->prev_count, (u64)-left); in riscv_pmu_event_set_period()
347 local64_set(&hwc->period_left, hwc->sample_period); in riscv_pmu_event_init()
Darm_pmu.c212 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
219 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
233 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
494 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
Driscv_pmu_legacy.c77 local64_set(&hwc->prev_count, initial_val); in pmu_legacy_ctr_start()
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()
Dmarvell_cn10k_ddr_pmu.c428 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_start()
546 local64_set(&hwc->prev_count, 0); in cn10k_ddr_perf_event_update_all()
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()
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-6.6.21/arch/arc/kernel/
Dperf_event.c291 local64_set(&hwc->prev_count, new_raw_count); in arc_perf_event_update()
337 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init()
417 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
423 local64_set(&hwc->period_left, left); in arc_pmu_event_set_period()
432 local64_set(&hwc->prev_count, value); in arc_pmu_event_set_period()
550 local64_set(&hwc->prev_count, 0); in arc_pmu_add()
/linux-6.6.21/arch/powerpc/perf/
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()
D8xx-pmu.c115 local64_set(&event->hw.prev_count, val); in mpc8xx_pmu_add()
Dcore-book3s.c1169 local64_set(&event->hw.prev_count, val); in power_pmu_read()
1250 local64_set(&event->hw.prev_count, val); in thaw_limited_counters()
1556 local64_set(&event->hw.prev_count, val); in power_pmu_enable()
2168 local64_set(&event->hw.period_left, event->hw.last_period); in power_pmu_event_init()
2175 local64_set(&event->hw.prev_count, 0); in power_pmu_event_init()
2285 local64_set(&event->hw.prev_count, val); in record_and_restart()
2286 local64_set(&event->hw.period_left, left); in record_and_restart()
/linux-6.6.21/arch/loongarch/kernel/
Dperf_event.c310 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
316 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
323 local64_set(&hwc->period_left, left); in loongarch_pmu_event_set_period()
326 local64_set(&hwc->prev_count, loongarch_pmu.overflow - left); in loongarch_pmu_event_set_period()
808 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()
/linux-6.6.21/arch/xtensa/kernel/
Dperf_event.c177 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
182 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
190 local64_set(&hwc->prev_count, -left); in xtensa_perf_event_set_period()
/linux-6.6.21/arch/alpha/kernel/
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-6.6.21/arch/x86/events/
Dmsr.c259 local64_set(&event->count, now); in msr_event_update()
269 local64_set(&event->hw.prev_count, now); in msr_event_start()
/linux-6.6.21/arch/s390/kernel/
Dperf_pai_crypto.c243 local64_set(&event->hw.prev_count, new); in paicrypt_read()
256 local64_set(&event->count, 0); in paicrypt_start()
257 local64_set(&event->hw.prev_count, sum); in paicrypt_start()
Dperf_pai_ext.c316 local64_set(&event->hw.prev_count, new); in paiext_read()
329 local64_set(&event->hw.prev_count, sum); in paiext_start()
330 local64_set(&event->count, 0); in paiext_start()
/linux-6.6.21/include/linux/
Du64_stats_sync.h84 local64_set(&p->v, val); in u64_stats_set()
/linux-6.6.21/arch/csky/kernel/
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-6.6.21/arch/arm/mach-imx/
Dmmdc.c341 local64_set(&hwc->prev_count, 0); in mmdc_pmu_event_start()
376 local64_set(&hwc->prev_count, mmdc_pmu_read_counter(pmu_mmdc, cfg)); in mmdc_pmu_event_add()
/linux-6.6.21/arch/x86/events/amd/
Dibs.c112 local64_set(&hwc->period_left, left); in perf_event_set_period()
119 local64_set(&hwc->period_left, left); in perf_event_set_period()
323 local64_set(&hwc->period_left, hwc->sample_period); in perf_ibs_init()
338 local64_set(&hwc->prev_count, 0); in perf_ibs_set_period()
/linux-6.6.21/arch/mips/kernel/
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-6.6.21/arch/sparc/kernel/
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-6.6.21/arch/arm/mm/
Dcache-l2x0-pmu.c147 local64_set(&hw->prev_count, 0); in l2x0_pmu_event_configure()

123