Home
last modified time | relevance | path

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

123

/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/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/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/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/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()
1108 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
H A Dvmwgfx_mksstat.h116 …const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MK…
/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()
/linux/net/netfilter/
H A Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/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/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/firewire/
H A Dcore-device.c940 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 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()
H A Dsaa7164-encoder.c742 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 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()
/linux/kernel/
H A Dirq_work.c228 (void)atomic_cmpxchg(&work->node.a_flags, flags, flags & ~IRQ_WORK_BUSY); in irq_work_single()
/linux/tools/memory-model/Documentation/
H A Dherd-representation.txt101 | atomic_cmpxchg | On success: R*[MB] ->rmw W*[MB] |
/linux/lib/
H A Dclosure.c213 } while ((v = atomic_cmpxchg(&cl->remaining, old, new)) != old); in __closure_sync_timeout()
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c175 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_create_ah()
/linux/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c271 if (atomic_cmpxchg(&buf->mmap, 0, 1)) { in hl_mem_mgr_mmap()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_context.h197 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) { in intel_context_unpin()
/linux/drivers/irqchip/
H A Dirq-mvebu-icu.c118 if (atomic_cmpxchg(&msi_data->initialized, false, true)) in mvebu_icu_init()

123