| /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/drivers/md/bcache/ |
| H A D | io.c | 104 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors() 113 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
|
| /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/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() 1110 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
|
| H A D | vmwgfx_vkms.c | 554 ret = atomic_cmpxchg(&du->vkms.atomic_lock, in vmw_vkms_modeset_lock() 588 ret = atomic_cmpxchg(&du->vkms.atomic_lock, in vmw_vkms_modeset_lock_relaxed() 621 ret = atomic_cmpxchg(&du->vkms.atomic_lock, in vmw_vkms_vblank_trylock()
|
| 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/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/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/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()
|
| H A D | qdio_thinint.c | 53 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1)) in get_indicator()
|
| /linux/drivers/firewire/ |
| H A D | core-device.c | 864 if (atomic_cmpxchg(&device->state, in fw_device_shutdown() 1044 if (atomic_cmpxchg(&reused->state, in fw_device_init() 1119 if (atomic_cmpxchg(&device->state, in fw_device_init() 1193 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1219 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1316 if (atomic_cmpxchg(&device->state, in fw_node_event()
|
| /linux/net/netfilter/ |
| H A D | xt_statistic.c | 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
| /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/gpu/drm/panthor/ |
| H A D | panthor_device.h | 269 if (!atomic_cmpxchg(&ptdev->reset.pending, 0, 1) && in panthor_device_schedule_reset() 306 if (ret && atomic_cmpxchg(&ptdev->pm.recovery_needed, 1, 0) == 1) in panthor_device_resume_and_get()
|
| /linux/fs/ |
| H A D | mbcache.c | 267 if (atomic_cmpxchg(&entry->e_refcnt, 2, 0) != 2) in mb_cache_entry_delete_or_get() 314 atomic_cmpxchg(&entry->e_refcnt, 1, 0) != 1) { in mb_cache_shrink()
|
| /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/net/ipa/ |
| H A D | ipa_modem.c | 309 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_STOPPED, in ipa_modem_start() 360 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_RUNNING, in ipa_modem_stop()
|
| /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()
|
| /linux/kernel/trace/ |
| H A D | trace_recursion_record.c | 114 atomic_cmpxchg(&nr_records, i, index + 1); in ftrace_record_recursion()
|
| /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()
|
| H A D | cctrng.c | 248 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) { in cctrng_read() 378 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) { in cc_trng_compwork_handler()
|