| /linux/tools/include/linux/ |
| H A D | atomic.h | 11 #define atomic_cmpxchg_relaxed atomic_cmpxchg 12 #define atomic_cmpxchg_release atomic_cmpxchg 19 ret = atomic_cmpxchg(ptr, old, new); in atomic_try_cmpxchg()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_utils.h | 21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_set() 31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_clear()
|
| /linux/arch/sh/kernel/ |
| H A D | ftrace.c | 110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag() 149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag() 154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
|
| /linux/tools/testing/selftests/futex/include/ |
| H A D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
| /linux/tools/arch/x86/include/asm/ |
| H A D | atomic.h | 69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
| /linux/tools/include/asm-generic/ |
| H A D | atomic-gcc.h | 68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
| /linux/Documentation/ |
| H A D | atomic_t.txt | 38 atomic_cmpxchg{,_relaxed,_acquire,_release}() 279 int atomic_cmpxchg(atomic_t *ptr, int old, int new); 288 ret = atomic_cmpxchg(ptr, old, new); 296 int atomic_cmpxchg(atomic_t *ptr, int old, int new) 307 tmp = atomic_cmpxchg(&v, old, new); } while (!atomic_try_cmpxchg(&v, &old, new));
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_msg.c | 771 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) { in vmw_mksstat_get_kern_slot() 846 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 876 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 975 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED)) in vmw_mksstat_add_ioctl() 1108 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
|
| H A D | vmwgfx_mksstat.h | 116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
|
| /linux/drivers/s390/cio/ |
| H A D | ccwgroup.c | 63 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online() 93 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline() 177 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
|
| /linux/net/netfilter/ |
| H A D | xt_statistic.c | 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
| /linux/drivers/gpu/host1x/hw/ |
| H A D | syncpt_hw.c | 62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
|
| /linux/drivers/mailbox/ |
| H A D | mtk-gpueb-mailbox.c | 100 if (!atomic_cmpxchg(&ch->rx_status, 0, GPUEB_MBOX_FULL | GPUEB_MBOX_BLOCKED)) in mtk_gpueb_mbox_isr() 112 status = atomic_cmpxchg(&ch->rx_status, GPUEB_MBOX_FULL | GPUEB_MBOX_BLOCKED, in mtk_gpueb_mbox_thread()
|
| /linux/drivers/firewire/ |
| H A D | core-device.c | 940 if (atomic_cmpxchg(&device->state, in fw_device_shutdown() 1120 if (atomic_cmpxchg(&reused->state, in fw_device_init() 1195 if (atomic_cmpxchg(&device->state, in fw_device_init() 1269 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1295 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1392 if (atomic_cmpxchg(&device->state, in fw_node_event()
|
| /linux/drivers/media/pci/saa7164/ |
| H A D | saa7164-vbi.c | 445 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release() 512 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read() 613 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
|
| H A D | saa7164-encoder.c | 742 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release() 810 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read() 910 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
|
| /linux/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); in nvkm_runl_rc() 147 if (atomic_cmpxchg(&cgrp->rc, NVKM_CGRP_RC_NONE, NVKM_CGRP_RC_PENDING) != NVKM_CGRP_RC_NONE) in nvkm_runl_rc_cgrp()
|
| /linux/drivers/char/hw_random/ |
| H A D | ba431-rng.c | 109 if (atomic_cmpxchg(&ba431->reset_pending, 0, 1)) in ba431_trng_schedule_reset()
|
| /linux/kernel/ |
| H A D | irq_work.c | 228 (void)atomic_cmpxchg(&work->node.a_flags, flags, flags & ~IRQ_WORK_BUSY); in irq_work_single()
|
| /linux/tools/memory-model/Documentation/ |
| H A D | herd-representation.txt | 101 | atomic_cmpxchg | On success: R*[MB] ->rmw W*[MB] |
|
| /linux/lib/ |
| H A D | closure.c | 213 } while ((v = atomic_cmpxchg(&cl->remaining, old, new)) != old); in __closure_sync_timeout()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_ah.c | 175 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_create_ah()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | memory_mgr.c | 271 if (atomic_cmpxchg(&buf->mmap, 0, 1)) { in hl_mem_mgr_mmap()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_context.h | 197 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) { in intel_context_unpin()
|
| /linux/drivers/irqchip/ |
| H A D | irq-mvebu-icu.c | 118 if (atomic_cmpxchg(&msi_data->initialized, false, true)) in mvebu_icu_init()
|