Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 25 of 115) sorted by relevance

12345

/linux-6.6.21/tools/include/linux/
Datomic.h11 #define atomic_cmpxchg_relaxed atomic_cmpxchg
12 #define atomic_cmpxchg_release atomic_cmpxchg
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_utils.h21 } 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-6.6.21/arch/sh/kernel/
Dftrace.c110 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-6.6.21/drivers/md/bcache/
Dio.c105 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors()
114 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
/linux-6.6.21/tools/testing/selftests/futex/include/
Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dchan.c155 cur = atomic_cmpxchg(&hal->roc_entity_idx, in rtw89_config_roc_chandef()
165 cur = atomic_cmpxchg(&hal->roc_entity_idx, idx, in rtw89_config_roc_chandef()
380 atomic_cmpxchg(&hal->roc_entity_idx, roll, RTW89_SUB_ENTITY_0); in rtw89_chanctx_ops_remove()
/linux-6.6.21/tools/arch/x86/include/asm/
Datomic.h69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux-6.6.21/tools/include/asm-generic/
Datomic-gcc.h68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
/linux-6.6.21/Documentation/
Datomic_t.txt38 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-6.6.21/arch/x86/include/asm/
Dqspinlock.h100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
/linux-6.6.21/drivers/s390/cio/
Dccwgroup.c61 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()
Dqdio_thinint.c53 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1)) in get_indicator()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c822 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) { in vmw_mksstat_get_kern_slot()
897 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all()
927 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all()
1026 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED)) in vmw_mksstat_add_ioctl()
1161 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
Dvmwgfx_mksstat.h116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
/linux-6.6.21/drivers/firewire/
Dcore-device.c796 if (atomic_cmpxchg(&device->state, in fw_device_shutdown()
885 atomic_cmpxchg(&old->state, in lookup_existing_device()
1059 if (atomic_cmpxchg(&device->state, in fw_device_init()
1136 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1162 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1260 if (atomic_cmpxchg(&device->state, in fw_node_event()
/linux-6.6.21/net/netfilter/
Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/linux-6.6.21/drivers/misc/cxl/
Dmain.c295 rc = atomic_cmpxchg(&adapter->contexts_num, 0, -1); in cxl_adapter_context_lock()
301 int val = atomic_cmpxchg(&adapter->contexts_num, -1, 0); in cxl_adapter_context_unlock()
/linux-6.6.21/arch/x86/kernel/
Dsmp.c158 if (atomic_cmpxchg(&stopping_cpu, -1, cpu) != -1) in native_stop_other_cpus()
/linux-6.6.21/drivers/gpu/host1x/hw/
Dsyncpt_hw.c62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
/linux-6.6.21/fs/
Dmbcache.c267 if (atomic_cmpxchg(&entry->e_refcnt, 2, 0) != 2) in mb_cache_entry_delete_or_get()
315 atomic_cmpxchg(&entry->e_refcnt, 1, 0) != 1) { in mb_cache_shrink()
/linux-6.6.21/kernel/
Dpanic.c198 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, cpu); in nmi_panic()
320 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in panic()
/linux-6.6.21/drivers/net/ipa/
Dipa_modem.c292 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_STOPPED, in ipa_modem_start()
338 state = atomic_cmpxchg(&ipa->modem_state, IPA_MODEM_STATE_RUNNING, in ipa_modem_stop()
/linux-6.6.21/kernel/trace/
Dtrace_recursion_record.c114 atomic_cmpxchg(&nr_records, i, index + 1); in ftrace_record_recursion()
/linux-6.6.21/drivers/media/pci/saa7164/
Dsaa7164-vbi.c448 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release()
515 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read()
616 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Drunl.c76 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()

12345