Home
last modified time | relevance | path

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

12345

/linux/tools/include/linux/
H A Datomic.h11 #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 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/arch/sh/kernel/
H A 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/drivers/md/bcache/
H A Dio.c104 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 Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/linux/tools/arch/x86/include/asm/
H A Datomic.h69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_msg.c771 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 Dvmwgfx_vkms.c554 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 Dvmwgfx_mksstat.h116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
/linux/Documentation/
H A 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/tools/include/asm-generic/
H A Datomic-gcc.h68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
/linux/drivers/s390/cio/
H A Dccwgroup.c63 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 Dqdio_thinint.c53 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1)) in get_indicator()
/linux/drivers/firewire/
H A Dcore-device.c864 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 Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/linux/drivers/mailbox/
H A Dmtk-gpueb-mailbox.c100 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 Dpanthor_device.h269 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 Dmbcache.c267 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 Dsyncpt_hw.c62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
/linux/drivers/net/ipa/
H A Dipa_modem.c309 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 Dsaa7164-vbi.c445 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 Dtrace_recursion_record.c114 atomic_cmpxchg(&nr_records, i, index + 1); in ftrace_record_recursion()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A 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()
/linux/drivers/char/hw_random/
H A Dba431-rng.c109 if (atomic_cmpxchg(&ba431->reset_pending, 0, 1)) in ba431_trng_schedule_reset()
H A Dcctrng.c248 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()

12345