/linux-master/tools/include/linux/ |
H A D | atomic.h | 11 #define atomic_cmpxchg_relaxed atomic_cmpxchg 12 #define atomic_cmpxchg_release atomic_cmpxchg
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_utils.h | 21 } 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 D | atomic.h | 28 * 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 D | atomic.h | 69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) function
|
/linux-master/arch/sh/kernel/ |
H A D | ftrace.c | 110 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 D | atomic-gcc.h | 68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) function
|
/linux-master/arch/x86/include/asm/ |
H A D | qspinlock.h | 100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0);
|
/linux-master/drivers/md/bcache/ |
H A D | io.c | 105 count = atomic_cmpxchg(&ca->io_count, old, new); 114 errors = atomic_cmpxchg(&ca->io_errors,
|
/linux-master/net/netfilter/ |
H A D | xt_statistic.c | 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval);
|
H A D | nft_numgen.c | 31 } while (atomic_cmpxchg(priv->counter, oval, nval) != oval);
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_mksstat.h | 116 const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MKSSTAT_PID_RESERVED); \
|
H A D | vmwgfx_msg.c | 822 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 D | syncpt_hw.c | 62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
|
/linux-master/drivers/s390/cio/ |
H A D | ccwgroup.c | 61 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 D | qdio_thinint.c | 53 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1))
|
/linux-master/kernel/trace/ |
H A D | trace_recursion_record.c | 114 atomic_cmpxchg(&nr_records, i, index + 1);
|
/linux-master/drivers/misc/cxl/ |
H A D | main.c | 295 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 D | ipa_modem.c | 311 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 D | mbcache.c | 267 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 D | saa7164-vbi.c | 448 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 D | core-device.c | 876 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 D | runl.c | 76 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 D | ocrdma_ah.c | 175 if (atomic_cmpxchg(&dev->update_sl, 1, 0))
|
/linux-master/include/linux/ |
H A D | sbitmap.h | 554 atomic_cmpxchg(index, old, new);
|
H A D | page_ref.h | 318 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count);
|