/linux-6.3-rc2/Documentation/ |
A 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.3-rc2/block/ |
A D | blk-cgroup.h | 417 while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1)) in blkcg_unuse_delay() 441 if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1)) in blkcg_set_delay() 458 if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0)) in blkcg_clear_delay()
|
A D | blk-rq-qos.c | 16 } while (!atomic_try_cmpxchg(v, &cur, cur + 1)); in atomic_inc_below()
|
A D | blk-iolatency.c | 423 if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) { in check_scale_change()
|
/linux-6.3-rc2/kernel/futex/ |
A D | requeue.c | 119 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_prepare() 147 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_complete() 173 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_wakeup_sync()
|
/linux-6.3-rc2/include/asm-generic/ |
A D | spinlock.h | 60 return atomic_try_cmpxchg(lock, &old, old + (1<<16)); /* SC, for RCsc */ in arch_spin_trylock()
|
/linux-6.3-rc2/kernel/ |
A D | smpboot.c | 456 if (!atomic_try_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death() 485 } while (!atomic_try_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
|
A D | jump_label.c | 142 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
|
/linux-6.3-rc2/fs/gfs2/ |
A D | log.c | 450 if (atomic_try_cmpxchg(&sdp->sd_log_revokes_available, in __gfs2_log_try_reserve_revokes() 504 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve() 546 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, in __gfs2_log_reserve()
|
/linux-6.3-rc2/include/linux/ |
A D | jump_label.h | 295 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
|
/linux-6.3-rc2/net/rxrpc/ |
A D | conn_object.c | 425 if (!atomic_try_cmpxchg(&conn->active, &active, -1)) in rxrpc_service_connection_reaper()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_sw_fence.c | 234 } while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1)); in i915_sw_fence_await()
|
A D | i915_vma.c | 928 } while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1)); in try_qad_pin()
|
/linux-6.3-rc2/kernel/bpf/ |
A D | ringbuf.c | 727 if (!atomic_try_cmpxchg(&rb->busy, &busy, 1)) in BPF_CALL_4()
|
/linux-6.3-rc2/drivers/net/ipa/ |
A D | gsi_trans.c | 311 } while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new)); in gsi_trans_tre_reserve()
|
/linux-6.3-rc2/lib/ |
A D | sbitmap.c | 597 } while (!atomic_try_cmpxchg(&sbq->wakeup_cnt, in sbitmap_queue_wake_up()
|
/linux-6.3-rc2/samples/vfio-mdev/ |
A D | mtty.c | 733 } while (!atomic_try_cmpxchg(&mdev_avail_ports, in mtty_init_dev()
|
A D | mbochs.c | 529 } while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes, in mbochs_init_dev()
|
/linux-6.3-rc2/sound/usb/ |
A D | endpoint.c | 140 return atomic_try_cmpxchg(&ep->state, &old, new); in ep_state_update()
|
/linux-6.3-rc2/include/linux/atomic/ |
A D | atomic-instrumented.h | 530 atomic_try_cmpxchg(atomic_t *v, int *old, int new) in atomic_try_cmpxchg() function
|
/linux-6.3-rc2/fs/ |
A D | aio.c | 963 } while (!atomic_try_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
|
/linux-6.3-rc2/net/ipv6/ |
A D | ip6_fib.c | 98 } while (!atomic_try_cmpxchg(&net->ipv6.fib6_sernum, &old, new)); in fib6_new_sernum()
|
/linux-6.3-rc2/drivers/cxl/core/ |
A D | region.c | 1908 if (atomic_try_cmpxchg(&cxlrd->region_id, &id, cxlr->id)) { in cxl_region_release()
|
/linux-6.3-rc2/net/core/ |
A D | dev.c | 2072 if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted + 1)) in net_enable_timestamp() 2089 if (atomic_try_cmpxchg(&netstamp_wanted, &wanted, wanted - 1)) in net_disable_timestamp()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | extent_io.c | 4211 if (atomic_try_cmpxchg(&eb->refs, &refs, refs - 1)) in free_extent_buffer()
|