Searched refs:active_events (Results 1 - 11 of 11) sorted by relevance

/linux-master/arch/loongarch/kernel/
H A Dperf_event.c457 static atomic_t active_events = ATOMIC_INIT(0); variable
474 if (atomic_dec_and_mutex_lock(&active_events, &pmu_reserve_mutex)) {
567 if (!atomic_inc_not_zero(&active_events)) {
569 if (atomic_read(&active_events) == 0) {
577 atomic_inc(&active_events);
/linux-master/arch/arm/mach-imx/
H A Dmmdc.c102 unsigned int active_events; member in struct:mmdc_pmu
375 pmu_mmdc->active_events++;
404 pmu_mmdc->active_events--;
406 if (pmu_mmdc->active_events == 0)
452 .active_events = 0,
/linux-master/drivers/perf/
H A Dmarvell_cn10k_ddr_pmu.c129 int active_events; member in struct:cn10k_ddr_pmu
448 pmu->active_events++;
451 if (pmu->active_events == 1)
504 pmu->active_events--;
508 if (pmu->active_events == 0)
H A Darm-cci.c108 atomic_t active_events; member in struct:cci_pmu
1083 atomic_t *active_events = &cci_pmu->active_events; local
1086 if (atomic_dec_and_mutex_lock(active_events, reserve_mutex)) {
1316 atomic_t *active_events = &cci_pmu->active_events; local
1340 if (!atomic_inc_not_zero(active_events)) {
1342 if (atomic_read(active_events) == 0)
1345 atomic_inc(active_events);
1679 atomic_set(&cci_pmu->active_events,
[all...]
H A Dfsl_imx9_ddr_perf.c63 int active_events; member in struct:ddr_pmu
475 pmu->active_events++;
507 pmu->active_events--;
/linux-master/arch/s390/kernel/
H A Dperf_pai_crypto.c37 unsigned int active_events; /* # of PAI crypto users */ member in struct:paicrypt_map
98 cpump->active_events, cpump->mode,
242 __func__, a->sample_period, cpump->active_events,
345 if (++cpump->active_events == 1) {
376 if (--cpump->active_events == 0) {
H A Dperf_pai_ext.c51 unsigned int active_events; /* # of PAI Extension users */ member in struct:paiext_map
348 if (++cpump->active_events == 1) {
383 if (--cpump->active_events == 0) {
/linux-master/drivers/devfreq/event/
H A Drockchip-dfi.c114 int active_events; member in struct:rockchip_dfi
505 dfi->active_events++;
507 if (dfi->active_events == 1) {
530 dfi->active_events--;
532 if (dfi->active_events == 0)
/linux-master/arch/sparc/kernel/
H A Dperf_event.c1158 static atomic_t active_events = ATOMIC_INIT(0); variable
1173 if (atomic_inc_not_zero(&active_events))
1177 if (atomic_read(&active_events) == 0) {
1182 atomic_inc(&active_events);
1189 if (atomic_dec_and_mutex_lock(&active_events, &pmc_grab_mutex)) {
1624 if (!atomic_read(&active_events))
/linux-master/arch/mips/kernel/
H A Dperf_event_mipsxx.c588 static atomic_t active_events = ATOMIC_INIT(0); variable
639 if (atomic_dec_and_mutex_lock(&active_events,
673 if (!atomic_inc_not_zero(&active_events)) {
675 if (atomic_read(&active_events) == 0)
679 atomic_inc(&active_events);
/linux-master/arch/x86/events/
H A Dcore.c186 static atomic_t active_events; variable
343 atomic_dec(&active_events);
453 atomic_inc(&active_events);
463 atomic_dec(&active_events);
663 atomic_inc(&active_events);
1738 * increment active_events for their events.
1740 if (!atomic_read(&active_events))

Completed in 415 milliseconds