Symbol: atomic_try_cmpxchg
arch/loongarch/include/asm/qspinlock.h
28
if (val || !atomic_try_cmpxchg(&lock->val, &val, _Q_LOCKED_VAL)) {
arch/riscv/kvm/aia.c
592
} while (!atomic_try_cmpxchg(&kvm_riscv_aia_nr_hgei, &aia_nr_hgei, hgctrl->nr_hgei));
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
366
} while (!atomic_try_cmpxchg(&eilvt_offsets[offset], &rsvd, new));
arch/x86/kernel/cpu/mshyperv.c
391
if (!atomic_try_cmpxchg(&nmi_cpu, &old_cpu, this_cpu))
arch/x86/kernel/smp.c
161
if (!atomic_try_cmpxchg(&stopping_cpu, &old_cpu, this_cpu))
block/blk-cgroup.h
402
while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1))
block/blk-cgroup.h
426
if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1))
block/blk-cgroup.h
443
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
2530
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/md/dm-verity-target.c
192
} while (!atomic_try_cmpxchg(&v->corrupted_errs, &ce, ce + 1));
drivers/misc/ntsync.c
279
if (can_wake && atomic_try_cmpxchg(&q->signaled, &signaled, 0)) {
drivers/misc/ntsync.c
334
if (atomic_try_cmpxchg(&q->signaled, &signaled, entry->index)) {
drivers/misc/ntsync.c
357
if (atomic_try_cmpxchg(&q->signaled, &signaled, entry->index)) {
drivers/misc/ntsync.c
382
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
418
if (atomic_try_cmpxchg(&fst->seq, &old_seq, seq) ||
fs/aio.c
1018
} while (!atomic_try_cmpxchg(&ctx->reqs_available,
fs/btrfs/extent_io.c
3717
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
494
if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks,
fs/gfs2/log.c
536
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
285
} while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1)));
io_uring/zcrx.c
363
} 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
407
if (!atomic_try_cmpxchg(&panic_redirect_cpu, &old_cpu, this_cpu))
kernel/panic.c
464
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/ext.c
1058
return atomic_try_cmpxchg(&scx_enable_state_var, &from_v, to);
kernel/sched/ext/ext.c
6234
if (!atomic_try_cmpxchg(&sch->exit_kind, &none, kind))
kernel/sched/ext/ext.c
6280
if (atomic_try_cmpxchg(&sch->exit_kind, &kind, SCX_EXIT_DONE))
kernel/time/tick-sched.c
216
if (inp || !atomic_try_cmpxchg(&in_progress, &inp, 1))
kernel/time/timer_migration.c
1330
if (atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)) {
kernel/time/timer_migration.c
689
} while (!atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state));
kernel/trace/ring_buffer.c
5215
} while (!atomic_try_cmpxchg(&buffer->record_disabled, &rd, new_rd));
kernel/trace/ring_buffer.c
5238
} 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))
net/core/dev.c
2390
if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted + 1))
net/core/dev.c
2407
if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted - 1))
net/ipv4/icmp.c
263
} 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/netfilter/ipvs/ip_vs_conn.c
1476
} while (!atomic_try_cmpxchg(&ipvs->conn_count, &count, count + 1));
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
1322
} 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));