Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 25 of 26) sorted by relevance

12

/linux-4.19.296/include/linux/
Datomic.h449 #define atomic_cmpxchg_relaxed atomic_cmpxchg
450 #define atomic_cmpxchg_acquire atomic_cmpxchg
451 #define atomic_cmpxchg_release atomic_cmpxchg
457 __atomic_op_acquire(atomic_cmpxchg, __VA_ARGS__)
462 __atomic_op_release(atomic_cmpxchg, __VA_ARGS__)
465 #ifndef atomic_cmpxchg
466 #define atomic_cmpxchg(...) \ macro
467 __atomic_op_fence(atomic_cmpxchg, __VA_ARGS__)
477 __r = atomic_cmpxchg##type((_p), __o, (_n)); \
Dpage_ref.h166 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count); in page_ref_freeze()
Dsbitmap.h491 atomic_cmpxchg(index, old, new); in sbq_index_atomic_inc()
Dblk-cgroup.h878 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay()
898 int cur = atomic_cmpxchg(&blkg->use_delay, old, 0); in blkcg_clear_delay()
/linux-4.19.296/lib/
Ddump_stack.c102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
Dsbitmap.c451 atomic_cmpxchg(&sbq->wake_index, o, wake_index); in sbq_wake_ptr()
489 ret = atomic_cmpxchg(&ws->wait_cnt, wait_cnt, wake_batch); in __sbq_wake_up()
/linux-4.19.296/drivers/misc/cxl/
Dmain.c297 rc = atomic_cmpxchg(&adapter->contexts_num, 0, -1); in cxl_adapter_context_lock()
303 int val = atomic_cmpxchg(&adapter->contexts_num, -1, 0); in cxl_adapter_context_unlock()
Dpci.c1132 while (atomic_cmpxchg(&afu->configured_state, 0, -1) != -1) in pci_deconfigure_afu()
/linux-4.19.296/drivers/s390/cio/
Dccwgroup.c82 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online()
111 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline()
191 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
Dqdio_thinint.c60 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1)) in get_indicator()
Ddevice.c507 if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0) in online_store()
1305 (atomic_cmpxchg(&cdev->private->onoff, 0, 1) == 0)) { in purge_fn()
/linux-4.19.296/fs/
Dmbcache.c303 if (atomic_cmpxchg(&entry->e_refcnt, 2, 0) != 2) in mb_cache_entry_delete_or_get()
351 atomic_cmpxchg(&entry->e_refcnt, 1, 0) != 1) { in mb_cache_shrink()
Daio.c937 avail = atomic_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
/linux-4.19.296/include/asm-generic/
Datomic.h200 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) macro
Datomic-instrumented.h55 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux-4.19.296/block/
Dblk-rq-qos.c16 old = atomic_cmpxchg(v, cur, cur + 1); in atomic_inc_below()
Dblk-iolatency.c360 old = atomic_cmpxchg(&iolat->scale_cookie, our_cookie, cur_cookie); in check_scale_change()
/linux-4.19.296/drivers/irqchip/
Dirq-mvebu-icu.c55 if (atomic_cmpxchg(&icu->initialized, false, true)) in mvebu_icu_init()
/linux-4.19.296/drivers/s390/net/
Dqeth_core_main.c490 if (atomic_cmpxchg(&buffer->state, QETH_QDIO_BUF_PRIMED, in qeth_qdio_handle_aob()
1634 switch (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ESTABLISHED, in qeth_qdio_clear_card()
1856 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_idx_activate_get_answer()
1927 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_idx_activate_channel()
2135 while (atomic_cmpxchg(&channel->irq_pending, 0, 1)) ; in qeth_send_control_data()
2496 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED, in qeth_alloc_qdio_buffers()
3702 if (atomic_cmpxchg(&buffer->state, in qeth_qdio_output_handler()
4119 while (atomic_cmpxchg(&queue->state, QETH_OUT_Q_UNLOCKED, in qeth_do_send_packet()
5015 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ALLOCATED, in qeth_qdio_establish()
Dqeth_l2_main.c1255 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_osn_send_control_data()
/linux-4.19.296/drivers/char/ipmi/
Dipmi_watchdog.c633 } else if (atomic_cmpxchg(&pretimeout_since_last_heartbeat, 1, 0)) { in _ipmi_heartbeat()
/linux-4.19.296/fs/hfsplus/
Dxattr.c140 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state, in hfsplus_create_attributes_file()
/linux-4.19.296/fs/gfs2/
Dlog.c384 if (atomic_cmpxchg(&sdp->sd_log_blks_free, free_blocks, in gfs2_log_reserve()
/linux-4.19.296/drivers/media/rc/
Dredrat3.c869 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { in redrat3_brightness_set()
/linux-4.19.296/drivers/s390/block/
Ddasd.c2096 if (atomic_cmpxchg (&device->tasklet_scheduled, 0, 1) != 0) in dasd_schedule_device_bh()
2924 if (atomic_cmpxchg(&block->tasklet_scheduled, 0, 1) != 0) in dasd_schedule_block_bh()

12