/linux-6.12.1/Documentation/ |
D | atomic_t.txt | 39 atomic_try_cmpxchg{,_relaxed,_acquire,_release}() 280 bool atomic_try_cmpxchg(atomic_t *ptr, int *oldp, int new); 285 bool atomic_try_cmpxchg(atomic_t *ptr, int *oldp, int new) 298 (void)atomic_try_cmpxchg(ptr, &old, new); 307 tmp = atomic_cmpxchg(&v, old, new); } while (!atomic_try_cmpxchg(&v, &old, new)); 334 } while (!atomic_try_cmpxchg(&v, &old, new));
|
/linux-6.12.1/block/ |
D | blk-cgroup.h | 398 while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1)) in blkcg_unuse_delay() 422 if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1)) in blkcg_set_delay() 439 if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0)) in blkcg_clear_delay()
|
D | blk-rq-qos.c | 16 } while (!atomic_try_cmpxchg(v, &cur, cur + 1)); in atomic_inc_below()
|
D | blk-iolatency.c | 423 if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) { in check_scale_change()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | qspinlock.h | 29 if (val || !atomic_try_cmpxchg(&lock->val, &val, _Q_LOCKED_VAL)) { in virt_spin_lock()
|
/linux-6.12.1/kernel/futex/ |
D | requeue.c | 121 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_prepare() 149 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_complete() 175 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_wakeup_sync()
|
/linux-6.12.1/include/asm-generic/ |
D | spinlock.h | 60 return atomic_try_cmpxchg(lock, &old, old + (1<<16)); /* SC, for RCsc */ in arch_spin_trylock()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | qspinlock.h | 104 if (val || !atomic_try_cmpxchg(&lock->val, &val, _Q_LOCKED_VAL)) { in virt_spin_lock()
|
/linux-6.12.1/arch/x86/kernel/ |
D | smp.c | 160 if (!atomic_try_cmpxchg(&stopping_cpu, &old_cpu, this_cpu)) in native_stop_other_cpus()
|
/linux-6.12.1/kernel/ |
D | panic.c | 204 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu)) in nmi_panic() 334 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu)) { in panic()
|
D | jump_label.c | 145 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled() 287 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v - 1))); in static_key_dec_not_one()
|
D | crash_core.c | 141 if (atomic_try_cmpxchg(&panic_cpu, &old_cpu, this_cpu)) { in crash_kexec()
|
D | cpu.c | 320 if (!atomic_try_cmpxchg(st, &sync, next_state)) in cpuhp_wait_for_sync_state() 369 } while (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_SHOULD_DIE)); in cpuhp_bp_sync_dead() 424 if (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_KICKED)) in cpuhp_can_boot_ap()
|
D | padata.c | 537 } while (!atomic_try_cmpxchg(&last_used_nid, &old_node, nid)); in padata_do_multithreaded()
|
/linux-6.12.1/fs/gfs2/ |
D | log.c | 438 if (atomic_try_cmpxchg(&sdp->sd_log_revokes_available, in __gfs2_log_try_reserve_revokes() 492 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve() 534 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, in __gfs2_log_reserve()
|
/linux-6.12.1/include/linux/ |
D | jump_label.h | 298 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
|
/linux-6.12.1/kernel/time/ |
D | timer_migration.c | 647 } while (!atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)); in tmigr_active_up() 1285 if (atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)) { in tmigr_inactive_up()
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | mshyperv.c | 273 if (!atomic_try_cmpxchg(&nmi_cpu, &old_cpu, this_cpu)) in hv_nmi_unknown()
|
/linux-6.12.1/net/rxrpc/ |
D | conn_object.c | 424 if (!atomic_try_cmpxchg(&conn->active, &active, -1)) in rxrpc_service_connection_reaper()
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_sw_fence.c | 234 } while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1)); in i915_sw_fence_await()
|
/linux-6.12.1/drivers/net/ipa/ |
D | gsi_trans.c | 311 } while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new)); in gsi_trans_tre_reserve()
|
/linux-6.12.1/lib/ |
D | sbitmap.c | 613 } while (!atomic_try_cmpxchg(&sbq->wakeup_cnt, in sbitmap_queue_wake_up()
|
/linux-6.12.1/kernel/bpf/ |
D | ringbuf.c | 760 if (!atomic_try_cmpxchg(&rb->busy, &busy, 1)) in BPF_CALL_4()
|
/linux-6.12.1/kernel/printk/ |
D | nbcon.c | 154 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom); in nbcon_state_try_cmpxchg()
|
/linux-6.12.1/mm/kasan/ |
D | kasan_test_c.c | 722 KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(unsafe, safe, 42)); in kasan_atomics_helper() 723 KUNIT_EXPECT_KASAN_FAIL(test, atomic_try_cmpxchg(safe, unsafe, 42)); in kasan_atomics_helper()
|