Home
last modified time | relevance | path

Searched refs:atomic_try_cmpxchg (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/block/
Dblk-cgroup.h407 while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1)) in blkcg_unuse_delay()
431 if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1)) in blkcg_set_delay()
448 if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0)) in blkcg_clear_delay()
Dblk-rq-qos.c16 } while (!atomic_try_cmpxchg(v, &cur, cur + 1)); in atomic_inc_below()
Dblk-iolatency.c424 if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) { in check_scale_change()
/linux-6.1.9/Documentation/
Datomic_t.txt39 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.1.9/kernel/futex/
Drequeue.c119 } 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.1.9/include/asm-generic/
Dspinlock.h60 return atomic_try_cmpxchg(lock, &old, old + (1<<16)); /* SC, for RCsc */ in arch_spin_trylock()
/linux-6.1.9/kernel/
Dsmpboot.c456 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()
/linux-6.1.9/fs/gfs2/
Dlog.c441 if (atomic_try_cmpxchg(&sdp->sd_log_revokes_available, in __gfs2_log_try_reserve_revokes()
495 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, &free_blocks, in __gfs2_log_try_reserve()
537 if (atomic_try_cmpxchg(&sdp->sd_log_blks_free, in __gfs2_log_reserve()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_sw_fence.c234 } while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1)); in i915_sw_fence_await()
Di915_vma.c900 } while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1)); in try_qad_pin()
/linux-6.1.9/kernel/bpf/
Dringbuf.c727 if (!atomic_try_cmpxchg(&rb->busy, &busy, 1)) in BPF_CALL_4()
/linux-6.1.9/drivers/net/ipa/
Dgsi_trans.c308 } while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new)); in gsi_trans_tre_reserve()
/linux-6.1.9/lib/
Dsbitmap.c626 } while (!atomic_try_cmpxchg(&ws->wait_cnt, &cur, wait_cnt)); in __sbq_wake_up()
/linux-6.1.9/samples/vfio-mdev/
Dmtty.c733 } while (!atomic_try_cmpxchg(&mdev_avail_ports, in mtty_init_dev()
Dmbochs.c529 } while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes, in mbochs_init_dev()
/linux-6.1.9/sound/usb/
Dendpoint.c140 return atomic_try_cmpxchg(&ep->state, &old, new); in ep_state_update()
/linux-6.1.9/drivers/cxl/core/
Dregion.c1547 if (atomic_try_cmpxchg(&cxlrd->region_id, &id, cxlr->id)) { in cxl_region_release()
/linux-6.1.9/include/linux/atomic/
Datomic-instrumented.h530 atomic_try_cmpxchg(atomic_t *v, int *old, int new) in atomic_try_cmpxchg() function
/linux-6.1.9/fs/
Daio.c959 } while (!atomic_try_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
/linux-6.1.9/fs/btrfs/
Dextent_io.c4778 if (atomic_try_cmpxchg(&eb->refs, &refs, refs - 1)) in free_extent_buffer()