Searched refs:atomic_cmpxchg (Results 1 - 25 of 118) sorted by path

12345

/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_utils.h21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old);
31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old);
/linux-master/tools/testing/selftests/futex/include/
H A Datomic.h28 * atomic_cmpxchg() - Atomic compare and exchange
36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) function
/linux-master/arch/mips/net/
H A Dbpf_jit_comp32.c892 emit_mov_i(ctx, MIPS_R_T9, (u32)&atomic_cmpxchg);
/linux-master/arch/sh/kernel/
H A Dftrace.c110 old = atomic_cmpxchg(&nmi_running, old, new);
149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG))
154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG));
/linux-master/arch/x86/include/asm/
H A Dqspinlock.h100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0);
/linux-master/drivers/accel/habanalabs/common/
H A Dcommand_buffer.c316 rc = atomic_cmpxchg(&cb->is_handle_destroyed, 0, 1);
H A Dcommand_submission.c849 rc = atomic_cmpxchg(&hdev->captured_err_info.cs_timeout.write_enable, 1, 0);
1700 do_ctx_switch = atomic_cmpxchg(&ctx->thread_ctx_switch_token, 1, 0);
H A Ddevice.c2631 if (atomic_cmpxchg(&hdev->captured_err_info.razwi_info.razwi_detected, 0, 1))
2720 if (atomic_cmpxchg(&pgf_info->page_fault_detected, 0, 1))
2745 if (atomic_cmpxchg(&info->event_detected, 0, 1))
2767 if (atomic_cmpxchg(&info->event_detected, 0, 1))
2791 if (atomic_cmpxchg(&info->event_detected, 0, 1))
H A Dirq.c278 if (atomic_cmpxchg(&free_node->in_use, 0, 1)) {
H A Dmemory_mgr.c276 if (atomic_cmpxchg(&buf->mmap, 0, 1)) {
/linux-master/drivers/accel/ivpu/
H A Divpu_pm.c162 if (atomic_cmpxchg(&vdev->pm->reset_pending, 0, 1) == 0) {
/linux-master/drivers/block/drbd/
H A Ddrbd_actlog.c87 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 ||
/linux-master/drivers/char/hw_random/
H A Dba431-rng.c109 if (atomic_cmpxchg(&ba431->reset_pending, 0, 1))
H A Dcctrng.c249 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) {
379 if (atomic_cmpxchg(&drvdata->pending_hw, 0, 1) == 0) {
/linux-master/drivers/char/ipmi/
H A Dipmi_watchdog.c637 } else if (atomic_cmpxchg(&pretimeout_since_last_heartbeat, 1, 0)) {
/linux-master/drivers/cxl/core/
H A Dregion.c2422 if (atomic_cmpxchg(&cxlrd->region_id, id, rc) != id) {
/linux-master/drivers/firewire/
H A Dcore-device.c876 if (atomic_cmpxchg(&device->state,
965 atomic_cmpxchg(&old->state,
1139 if (atomic_cmpxchg(&device->state,
1216 if (atomic_cmpxchg(&device->state,
1242 if (atomic_cmpxchg(&device->state,
1340 if (atomic_cmpxchg(&device->state,
/linux-master/drivers/firmware/arm_scmi/
H A Dbus.c372 atomic_cmpxchg(&scmi_syspower_registered, 0, 1)) {
H A Ddriver.c789 ret = atomic_cmpxchg(&xfer->busy, SCMI_XFER_FREE, SCMI_XFER_BUSY);
H A Dsmc.c104 ret = atomic_cmpxchg(inflight, INFLIGHT_NONE, xfer->hdr.seq);
/linux-master/drivers/gpio/
H A Dgpiolib-cdev.c2447 int abiv = atomic_cmpxchg(&cdata->watch_abi_version, 0, version);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fence.c282 } while (atomic_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq);
H A Damdgpu_ras.c3477 if (atomic_cmpxchg(&amdgpu_ras_in_intr, 0, 1) == 0) {
3667 if (atomic_cmpxchg(&ras->in_recovery, 0, 1) == 0)
H A Damdgpu_uvd.c858 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) {
891 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0);
H A Damdgpu_vce.c717 if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) {

Completed in 374 milliseconds

12345