/linux-4.19.296/include/linux/ |
D | atomic.h | 449 #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)); \
|
D | page_ref.h | 166 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count); in page_ref_freeze()
|
D | sbitmap.h | 491 atomic_cmpxchg(index, old, new); in sbq_index_atomic_inc()
|
D | blk-cgroup.h | 878 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/ |
D | dump_stack.c | 102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
|
D | sbitmap.c | 451 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/ |
D | main.c | 297 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()
|
D | pci.c | 1132 while (atomic_cmpxchg(&afu->configured_state, 0, -1) != -1) in pci_deconfigure_afu()
|
/linux-4.19.296/drivers/s390/cio/ |
D | ccwgroup.c | 82 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()
|
D | qdio_thinint.c | 60 if (!atomic_cmpxchg(&q_indicators[i].count, 0, 1)) in get_indicator()
|
D | device.c | 507 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/ |
D | mbcache.c | 303 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()
|
D | aio.c | 937 avail = atomic_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
|
/linux-4.19.296/include/asm-generic/ |
D | atomic.h | 200 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) macro
|
D | atomic-instrumented.h | 55 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/linux-4.19.296/block/ |
D | blk-rq-qos.c | 16 old = atomic_cmpxchg(v, cur, cur + 1); in atomic_inc_below()
|
D | blk-iolatency.c | 360 old = atomic_cmpxchg(&iolat->scale_cookie, our_cookie, cur_cookie); in check_scale_change()
|
/linux-4.19.296/drivers/irqchip/ |
D | irq-mvebu-icu.c | 55 if (atomic_cmpxchg(&icu->initialized, false, true)) in mvebu_icu_init()
|
/linux-4.19.296/drivers/s390/net/ |
D | qeth_core_main.c | 490 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()
|
D | qeth_l2_main.c | 1255 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_osn_send_control_data()
|
/linux-4.19.296/drivers/char/ipmi/ |
D | ipmi_watchdog.c | 633 } else if (atomic_cmpxchg(&pretimeout_since_last_heartbeat, 1, 0)) { in _ipmi_heartbeat()
|
/linux-4.19.296/fs/hfsplus/ |
D | xattr.c | 140 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state, in hfsplus_create_attributes_file()
|
/linux-4.19.296/fs/gfs2/ |
D | log.c | 384 if (atomic_cmpxchg(&sdp->sd_log_blks_free, free_blocks, in gfs2_log_reserve()
|
/linux-4.19.296/drivers/media/rc/ |
D | redrat3.c | 869 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { in redrat3_brightness_set()
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd.c | 2096 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()
|