Symbol: atomic_try_cmpxchg
arch/loongarch/include/asm/qspinlock.h
29
if (val || !atomic_try_cmpxchg(&lock->val, &val, _Q_LOCKED_VAL)) {
arch/x86/include/asm/paravirt-spinlock.h
137
if (val || !atomic_try_cmpxchg(&lock->val, &val, _Q_LOCKED_VAL)) {
arch/x86/kernel/apic/apic.c
365
} while (!atomic_try_cmpxchg(&eilvt_offsets[offset], &rsvd, new));
arch/x86/kernel/cpu/mshyperv.c
384
if (!atomic_try_cmpxchg(&nmi_cpu, &old_cpu, this_cpu))
arch/x86/kernel/smp.c
160
if (!atomic_try_cmpxchg(&stopping_cpu, &old_cpu, this_cpu))
block/blk-cgroup.h
397
while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1))
block/blk-cgroup.h
421
if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1))
block/blk-cgroup.h
438
if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0))
block/blk-iolatency.c
423
if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) {
block/blk-rq-qos.c
16
} while (!atomic_try_cmpxchg(v, &cur, cur + 1));
drivers/cxl/core/region.c
2416
if (atomic_try_cmpxchg(&cxlrd->region_id, &id, cxlr->id)) {
drivers/gpu/drm/i915/i915_sw_fence.c
234
} while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1));
drivers/gpu/drm/i915/i915_vma.c
964
} while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1));
drivers/misc/ntsync.c
278
if (can_wake && atomic_try_cmpxchg(&q->signaled, &signaled, 0)) {
drivers/misc/ntsync.c
333
if (atomic_try_cmpxchg(&q->signaled, &signaled, entry->index)) {
drivers/misc/ntsync.c
356
if (atomic_try_cmpxchg(&q->signaled, &signaled, entry->index)) {
drivers/misc/ntsync.c
381
if (atomic_try_cmpxchg(&q->signaled, &signaled, entry->index)) {
drivers/net/ipa/gsi_trans.c
311
} while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new));
drivers/ptp/ptp_vmclock.c
423
if (atomic_try_cmpxchg(&fst->seq, &old_seq, seq) ||
fs/aio.c
964
} while (!atomic_try_cmpxchg(&ctx->reqs_available,
fs/btrfs/extent_io.c
3680
if (atomic_try_cmpxchg(&eb->refs.refs, &refs, refs - 1))
fs/gfs2/log.c
439
if (atomic_try_cmpxchg(&sdp->sd_log_revokes_available,
fs/gfs2/log.c
493
if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks,
fs/gfs2/log.c
535
if (atomic_try_cmpxchg(&sdp->sd_log_blks_free,
include/asm-generic/ticket_spinlock.h
60
return atomic_try_cmpxchg(&lock->val, &old, old + (1<<16)); /* SC, for RCsc */
include/linux/jump_label.h
299
} while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1)));
io_uring/zcrx.c
358
} while (!atomic_try_cmpxchg(uref, &old, old - 1));
kernel/bpf/ringbuf.c
832
if (!atomic_try_cmpxchg(&rb->busy, &busy, 1))
kernel/bpf/rqspinlock.c
283
if (val || !atomic_try_cmpxchg(&lock->val, &val, 1)) {
kernel/cpu.c
320
if (!atomic_try_cmpxchg(st, &sync, next_state))
kernel/cpu.c
369
} while (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_SHOULD_DIE));
kernel/cpu.c
424
if (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_KICKED))
kernel/futex/requeue.c
126
} while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
kernel/futex/requeue.c
154
} while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
kernel/futex/requeue.c
180
} while (!atomic_try_cmpxchg(&q->requeue_state, &old, new));
kernel/jump_label.c
145
} while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1)));
kernel/jump_label.c
287
} while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v - 1)));
kernel/padata.c
492
} while (!atomic_try_cmpxchg(&last_used_nid, &old_node, nid));
kernel/panic.c
406
if (!atomic_try_cmpxchg(&panic_redirect_cpu, &old_cpu, this_cpu))
kernel/panic.c
463
return atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu);
kernel/printk/nbcon.c
159
return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom);
kernel/sched/ext.c
4371
if (atomic_try_cmpxchg(&sch->exit_kind, &kind, SCX_EXIT_DONE))
kernel/sched/ext.c
4519
if (!atomic_try_cmpxchg(&sch->exit_kind, &none, kind))
kernel/sched/ext.c
746
return atomic_try_cmpxchg(&scx_enable_state_var, &from_v, to);
kernel/time/tick-sched.c
216
if (inp || !atomic_try_cmpxchg(&in_progress, &inp, 1))
kernel/time/timer_migration.c
1327
if (atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)) {
kernel/time/timer_migration.c
690
} while (!atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state));
kernel/trace/ring_buffer.c
4962
} while (!atomic_try_cmpxchg(&buffer->record_disabled, &rd, new_rd));
kernel/trace/ring_buffer.c
4985
} while (!atomic_try_cmpxchg(&buffer->record_disabled, &rd, new_rd));
lib/sbitmap.c
629
} while (!atomic_try_cmpxchg(&sbq->wakeup_cnt,
mm/kasan/kasan_test_c.c
789
KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(unsafe, safe, 42));
mm/kasan/kasan_test_c.c
796
KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(safe, unsafe, 42));
mm/rmap.c
768
if (!atomic_try_cmpxchg(&mm->tlb_flush_batched, &batch, 1))
mm/swap_cgroup.c
49
} while (!atomic_try_cmpxchg(&sc->ids, &old_ids, new_ids));
net/core/dev.c
2389
if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted + 1))
net/core/dev.c
2406
if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted - 1))
net/ipv4/icmp.c
262
} while (!atomic_try_cmpxchg(&net->ipv4.icmp_global_credit, &old, new));
net/ipv6/ip6_fib.c
98
} while (!atomic_try_cmpxchg(&net->ipv6.fib6_sernum, &old, new));
net/rxrpc/conn_object.c
431
if (!atomic_try_cmpxchg(&conn->active, &active, -1))
rust/helpers/atomic.c
425
return atomic_try_cmpxchg(v, old, new);
samples/vfio-mdev/mbochs.c
527
} while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes,
samples/vfio-mdev/mtty.c
1325
} while (!atomic_try_cmpxchg(&mdev_avail_ports,
sound/usb/endpoint.c
140
return atomic_try_cmpxchg(&ep->state, &old, new);
tools/include/linux/atomic.h
32
} while (!atomic_try_cmpxchg(v, &c, c + 1));