Home
last modified time | relevance | path

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

12

/openbmc/linux/Documentation/
H A 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));
/openbmc/linux/block/
H A Dblk-cgroup.h408 while (old && !atomic_try_cmpxchg(&blkg->use_delay, &old, old - 1)) in blkcg_unuse_delay()
432 if (!old && atomic_try_cmpxchg(&blkg->use_delay, &old, -1)) in blkcg_set_delay()
449 if (old && atomic_try_cmpxchg(&blkg->use_delay, &old, 0)) in blkcg_clear_delay()
H A Dblk-rq-qos.c16 } while (!atomic_try_cmpxchg(v, &cur, cur + 1)); in atomic_inc_below()
H A Dblk-iolatency.c423 if (!atomic_try_cmpxchg(&iolat->scale_cookie, &our_cookie, cur_cookie)) { in check_scale_change()
/openbmc/linux/kernel/futex/
H A 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()
/openbmc/linux/include/asm-generic/
H A Dspinlock.h60 return atomic_try_cmpxchg(lock, &old, old + (1<<16)); /* SC, for RCsc */ in arch_spin_trylock()
/openbmc/linux/kernel/
H A Djump_label.c142 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
284 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v - 1))); in static_key_dec_not_one()
H A Dcpu.c321 if (!atomic_try_cmpxchg(st, &sync, next_state)) in cpuhp_wait_for_sync_state()
370 } while (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_SHOULD_DIE)); in cpuhp_bp_sync_dead()
425 if (!atomic_try_cmpxchg(st, &sync, SYNC_STATE_KICKED)) in cpuhp_can_boot_ap()
/openbmc/linux/fs/gfs2/
H A Dlog.c450 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()
/openbmc/linux/include/linux/
H A Djump_label.h295 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
/openbmc/linux/net/rxrpc/
H A Dconn_object.c421 if (!atomic_try_cmpxchg(&conn->active, &active, -1)) in rxrpc_service_connection_reaper()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_sw_fence.c234 } while (!atomic_try_cmpxchg(&fence->pending, &pending, pending + 1)); in i915_sw_fence_await()
H A Di915_vma.c953 } while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1)); in try_qad_pin()
/openbmc/linux/drivers/net/ipa/
H A Dgsi_trans.c311 } while (!atomic_try_cmpxchg(&trans_info->tre_avail, &avail, new)); in gsi_trans_tre_reserve()
/openbmc/linux/lib/
H A Dsbitmap.c618 } while (!atomic_try_cmpxchg(&sbq->wakeup_cnt, in sbitmap_queue_wake_up()
/openbmc/linux/kernel/bpf/
H A Dringbuf.c756 if (!atomic_try_cmpxchg(&rb->busy, &busy, 1)) in BPF_CALL_4()
/openbmc/linux/samples/vfio-mdev/
H A Dmtty.c759 } while (!atomic_try_cmpxchg(&mdev_avail_ports, in mtty_init_dev()
H A Dmbochs.c529 } while (!atomic_try_cmpxchg(&mbochs_avail_mbytes, &avail_mbytes, in mbochs_init_dev()
/openbmc/linux/net/ipv4/
H A Dicmp.c265 } while (!atomic_try_cmpxchg(&icmp_global.credit, &old, new)); in icmp_global_allow()
/openbmc/linux/arch/x86/kernel/apic/
H A Dapic.c395 } while (!atomic_try_cmpxchg(&eilvt_offsets[offset], &rsvd, new)); in reserve_eilvt_offset()
/openbmc/linux/sound/usb/
H A Dendpoint.c140 return atomic_try_cmpxchg(&ep->state, &old, new); in ep_state_update()
/openbmc/linux/mm/
H A Drmap.c671 if (!atomic_try_cmpxchg(&mm->tlb_flush_batched, &batch, 1)) in set_tlb_ubc_flush_pending()
/openbmc/linux/kernel/trace/
H A Dring_buffer.c4075 } while (!atomic_try_cmpxchg(&buffer->record_disabled, &rd, new_rd)); in ring_buffer_record_off()
4098 } while (!atomic_try_cmpxchg(&buffer->record_disabled, &rd, new_rd)); in ring_buffer_record_on()
/openbmc/linux/fs/
H A Daio.c972 } while (!atomic_try_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
/openbmc/linux/include/linux/atomic/
H A Datomic-instrumented.h1270 atomic_try_cmpxchg(atomic_t *v, int *old, int new) in atomic_try_cmpxchg() function

12