| /Linux-v5.15/tools/include/linux/ |
| D | atomic.h | 9 #define atomic_cmpxchg_relaxed atomic_cmpxchg 10 #define atomic_cmpxchg_release atomic_cmpxchg
|
| /Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
| 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-v5.15/arch/sh/kernel/ |
| 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-v5.15/drivers/md/bcache/ |
| 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-v5.15/drivers/gpu/host1x/ |
| D | intr.c | 261 atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED); in host1x_intr_put_ref() 266 if (atomic_cmpxchg(&waiter->state, WLS_CANCELLED, WLS_HANDLED) == in host1x_intr_put_ref() 340 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()
|
| /Linux-v5.15/tools/testing/selftests/futex/include/ |
| D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
| /Linux-v5.15/tools/arch/x86/include/asm/ |
| D | atomic.h | 68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
| /Linux-v5.15/tools/include/asm-generic/ |
| D | atomic-gcc.h | 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
| /Linux-v5.15/Documentation/ |
| 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-v5.15/arch/x86/include/asm/ |
| D | qspinlock.h | 101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
| /Linux-v5.15/drivers/s390/cio/ |
| D | ccwgroup.c | 61 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online() 91 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline() 175 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
|
| /Linux-v5.15/include/linux/ |
| D | blk-cgroup.h | 559 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay() 586 if (!old && atomic_cmpxchg(&blkg->use_delay, old, -1) == old) in blkcg_set_delay() 603 if (old && atomic_cmpxchg(&blkg->use_delay, old, 0) == old) in blkcg_clear_delay()
|
| /Linux-v5.15/drivers/firewire/ |
| D | core-device.c | 802 if (atomic_cmpxchg(&device->state, in fw_device_shutdown() 891 atomic_cmpxchg(&old->state, in lookup_existing_device() 1065 if (atomic_cmpxchg(&device->state, in fw_device_init() 1142 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1168 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1266 if (atomic_cmpxchg(&device->state, in fw_node_event()
|
| /Linux-v5.15/kernel/ |
| D | smpboot.c | 448 if (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death() 477 } while (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
|
| D | panic.c | 140 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, cpu); in nmi_panic() 212 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in panic()
|
| D | irq_work.c | 162 (void)atomic_cmpxchg(&work->node.a_flags, flags, flags & ~IRQ_WORK_BUSY); in irq_work_single()
|
| /Linux-v5.15/arch/x86/kernel/ |
| D | smp.c | 171 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
|
| /Linux-v5.15/net/netfilter/ |
| D | xt_statistic.c | 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
| /Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_msg.c | 846 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) { in vmw_mksstat_get_kern_slot() 921 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 951 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 1049 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED)) in vmw_mksstat_add_ioctl() 1169 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
|
| D | vmwgfx_mksstat.h | 114 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
|
| /Linux-v5.15/drivers/misc/cxl/ |
| D | main.c | 294 rc = atomic_cmpxchg(&adapter->contexts_num, 0, -1); in cxl_adapter_context_lock() 300 int val = atomic_cmpxchg(&adapter->contexts_num, -1, 0); in cxl_adapter_context_unlock()
|
| /Linux-v5.15/drivers/gpu/host1x/hw/ |
| D | syncpt_hw.c | 62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
|
| /Linux-v5.15/fs/erofs/ |
| D | zdata.h | 161 if (atomic_cmpxchg(u.o, orig, val) != orig) in z_erofs_onlinepage_fixup()
|
| /Linux-v5.15/drivers/net/ipa/ |
| D | ipa_modem.c | 285 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_STOPPED, in ipa_modem_start() 331 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_RUNNING, in ipa_modem_stop()
|
| /Linux-v5.15/drivers/media/pci/saa7164/ |
| D | saa7164-vbi.c | 449 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release() 516 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read() 617 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
|