/linux-4.19.296/include/asm-generic/ |
D | atomic.h | 46 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 56 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 68 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 200 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
D | cmpxchg.h | 106 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) macro
|
D | atomic-instrumented.h | 418 #define cmpxchg(ptr, old, new) \ macro
|
/linux-4.19.296/lib/ |
D | llist.c | 45 } while (cmpxchg(&head->first, first, new_first) != first); in llist_add_batch() 75 entry = cmpxchg(&head->first, old_entry, next); in llist_del_first()
|
D | errseq.c | 94 cur = cmpxchg(eseq, old, new); in errseq_set() 200 cmpxchg(eseq, old, new); in errseq_check_and_advance()
|
D | atomic64_test.c | 90 FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \ 92 FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \
|
D | lru_cache.c | 71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock() 82 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
|
D | genalloc.c | 55 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 70 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll()
|
/linux-4.19.296/include/linux/ |
D | atomic.h | 496 #define cmpxchg_relaxed cmpxchg 497 #define cmpxchg_acquire cmpxchg 498 #define cmpxchg_release cmpxchg 504 __atomic_op_acquire(cmpxchg, __VA_ARGS__) 509 __atomic_op_release(cmpxchg, __VA_ARGS__) 512 #ifndef cmpxchg 513 #define cmpxchg(...) \ macro 514 __atomic_op_fence(cmpxchg, __VA_ARGS__)
|
D | bitops.h | 248 } while (cmpxchg(ptr, old__, new__) != old__); \ 264 cmpxchg(ptr, old, new) != old); \
|
D | netpoll.h | 86 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock()
|
D | blk-mq.h | 309 return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) == in blk_mq_mark_complete()
|
/linux-4.19.296/fs/nfs/ |
D | nfs3acl.c | 24 if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) { in nfs3_prepare_get_acl() 35 if (cmpxchg(p, sentinel, acl) != sentinel) in nfs3_complete_get_acl() 44 cmpxchg(p, sentinel, ACL_NOT_CACHED); in nfs3_abort_get_acl()
|
D | nfs4idmap.c | 562 if (cmpxchg(&idmap->idmap_upcall_data, data, NULL) == data) in nfs_idmap_abort_pipe_upcall()
|
/linux-4.19.296/fs/crypto/ |
D | keyinfo.c | 226 prev_tfm = cmpxchg(&essiv_hash_tfm, NULL, tfm); in derive_essiv_salt() 383 if (cmpxchg(&inode->i_crypt_info, NULL, crypt_info) == NULL) in fscrypt_get_encryption_info()
|
/linux-4.19.296/fs/ |
D | posix_acl.c | 125 if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) in get_acl() 147 cmpxchg(p, sentinel, ACL_NOT_CACHED); in get_acl() 155 if (unlikely(cmpxchg(p, sentinel, acl) != sentinel)) in get_acl()
|
/linux-4.19.296/drivers/xen/ |
D | mcelog.c | 170 } while (cmpxchg(&xen_mcelog.flags, flags, 0) != flags); in xen_mce_chrdev_ioctl()
|
/linux-4.19.296/drivers/misc/sgi-xp/ |
D | xpc_sn2.c | 1723 cmpxchg(¬ify->type, notify_type, 0) != notify_type) { in xpc_notify_senders_sn2() 1995 if (cmpxchg(&ch_sn2->w_local_GP.get, get, get + 1) == get) { in xpc_get_deliverable_payload_sn2() 2114 if (cmpxchg(&ch_sn2->w_local_GP.put, put, put + 1) == in xpc_allocate_msg_sn2() 2221 if (cmpxchg(¬ify->type, notify_type, 0) == in xpc_send_payload_sn2()
|
D | xpc_uv.c | 1371 if (func != NULL && cmpxchg(&msg_slot->func, func, NULL) == func) { in xpc_notify_sender_uv() 1599 if (cmpxchg(&msg_slot->func, func, NULL) != func) { in xpc_send_payload_uv()
|
D | xpc_main.c | 1101 if (cmpxchg(&xpc_die_disconnecting, 0, 1)) in xpc_die_deactivate()
|
/linux-4.19.296/drivers/misc/genwqe/ |
D | card_ddcb.c | 310 icrc_hsi_shi = cmpxchg(&prev_ddcb->icrc_hsi_shi_32, old, new); in enqueue_ddcb() 657 icrc_hsi_shi = cmpxchg(&pddcb->icrc_hsi_shi_32, in __genwqe_purge_ddcb()
|
/linux-4.19.296/fs/notify/ |
D | mark.c | 498 if (cmpxchg(connp, NULL, conn)) { in fsnotify_attach_connector_to_object()
|
/linux-4.19.296/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 214 if (cmpxchg(&mirror->mirror_ds, NULL, mirror_ds) && in ff_layout_mirror_valid()
|
/linux-4.19.296/fs/debugfs/ |
D | file.c | 98 if (cmpxchg(&dentry->d_fsdata, d_fsd, fsd) != d_fsd) { in debugfs_file_get()
|
/linux-4.19.296/drivers/char/ |
D | random.c | 715 } while (cmpxchg(&input_pool.init_bits, orig, new) != orig); in _credit_init_bits()
|