Searched refs:atomic_cmpxchg (Results 1 - 25 of 118) sorted by relevance

12345

/linux-master/tools/include/linux/
H A Datomic.h11 #define atomic_cmpxchg_relaxed atomic_cmpxchg
12 #define atomic_cmpxchg_release atomic_cmpxchg
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_utils.h21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old);
31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old);
/linux-master/tools/testing/selftests/futex/include/
H A Datomic.h28 * atomic_cmpxchg() - Atomic compare and exchange
36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) function
/linux-master/tools/arch/x86/include/asm/
H A Datomic.h69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) function
/linux-master/arch/sh/kernel/
H A Dftrace.c110 old = atomic_cmpxchg(&nmi_running, old, new);
149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG))
154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG));
/linux-master/tools/include/asm-generic/
H A Datomic-gcc.h68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) function
/linux-master/arch/x86/include/asm/
H A Dqspinlock.h100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0);
/linux-master/drivers/md/bcache/
H A Dio.c105 count = atomic_cmpxchg(&ca->io_count, old, new);
114 errors = atomic_cmpxchg(&ca->io_errors,
/linux-master/net/netfilter/
H A Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval);
H A Dnft_numgen.c31 } while (atomic_cmpxchg(priv->counter, oval, nval) != oval);
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_mksstat.h116 const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MKSSTAT_PID_RESERVED); \
H A Dvmwgfx_msg.c822 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) {
897 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED);
927 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED);
1026 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED))
1161 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED);
/linux-master/drivers/gpu/host1x/hw/
H A Dsyncpt_hw.c62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
/linux-master/drivers/s390/cio/
H A Dccwgroup.c61 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
91 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
175 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0)
H A Dqdio_thinint.c53 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1))
/linux-master/kernel/trace/
H A Dtrace_recursion_record.c114 atomic_cmpxchg(&nr_records, i, index + 1);
/linux-master/drivers/misc/cxl/
H A Dmain.c295 rc = atomic_cmpxchg(&adapter->contexts_num, 0, -1);
301 int val = atomic_cmpxchg(&adapter->contexts_num, -1, 0);
/linux-master/drivers/net/ipa/
H A Dipa_modem.c311 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_STOPPED,
362 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_RUNNING,
/linux-master/fs/
H A Dmbcache.c267 if (atomic_cmpxchg(&entry->e_refcnt, 2, 0) != 2)
314 atomic_cmpxchg(&entry->e_refcnt, 1, 0) != 1) {
/linux-master/drivers/media/pci/saa7164/
H A Dsaa7164-vbi.c448 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) {
515 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
616 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
/linux-master/drivers/firewire/
H A Dcore-device.c876 if (atomic_cmpxchg(&device->state,
965 atomic_cmpxchg(&old->state,
1139 if (atomic_cmpxchg(&device->state,
1216 if (atomic_cmpxchg(&device->state,
1242 if (atomic_cmpxchg(&device->state,
1340 if (atomic_cmpxchg(&device->state,
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Drunl.c76 state = atomic_cmpxchg(&cgrp->rc, NVKM_CGRP_RC_PENDING, NVKM_CGRP_RC_RUNNING);
147 if (atomic_cmpxchg(&cgrp->rc, NVKM_CGRP_RC_NONE, NVKM_CGRP_RC_PENDING) != NVKM_CGRP_RC_NONE)
/linux-master/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c175 if (atomic_cmpxchg(&dev->update_sl, 1, 0))
/linux-master/include/linux/
H A Dsbitmap.h554 atomic_cmpxchg(index, old, new);
H A Dpage_ref.h318 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count);

Completed in 249 milliseconds

12345