Home
last modified time | relevance | path

Searched refs:cmpxchg (Results 1 – 25 of 46) sorted by relevance

12

/linux-4.19.296/include/asm-generic/
Datomic.h46 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)))
Dcmpxchg.h106 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) macro
Datomic-instrumented.h418 #define cmpxchg(ptr, old, new) \ macro
/linux-4.19.296/lib/
Dllist.c45 } while (cmpxchg(&head->first, first, new_first) != first); in llist_add_batch()
75 entry = cmpxchg(&head->first, old_entry, next); in llist_del_first()
Derrseq.c94 cur = cmpxchg(eseq, old, new); in errseq_set()
200 cmpxchg(eseq, old, new); in errseq_check_and_advance()
Datomic64_test.c90 FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \
92 FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \
Dlru_cache.c71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock()
82 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
Dgenalloc.c55 } 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/
Datomic.h496 #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__)
Dbitops.h248 } while (cmpxchg(ptr, old__, new__) != old__); \
264 cmpxchg(ptr, old, new) != old); \
Dnetpoll.h86 while (cmpxchg(&napi->poll_owner, -1, owner) != -1) in netpoll_poll_lock()
Dblk-mq.h309 return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) == in blk_mq_mark_complete()
/linux-4.19.296/fs/nfs/
Dnfs3acl.c24 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()
Dnfs4idmap.c562 if (cmpxchg(&idmap->idmap_upcall_data, data, NULL) == data) in nfs_idmap_abort_pipe_upcall()
/linux-4.19.296/fs/crypto/
Dkeyinfo.c226 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/
Dposix_acl.c125 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/
Dmcelog.c170 } while (cmpxchg(&xen_mcelog.flags, flags, 0) != flags); in xen_mce_chrdev_ioctl()
/linux-4.19.296/drivers/misc/sgi-xp/
Dxpc_sn2.c1723 cmpxchg(&notify->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(&notify->type, notify_type, 0) == in xpc_send_payload_sn2()
Dxpc_uv.c1371 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()
Dxpc_main.c1101 if (cmpxchg(&xpc_die_disconnecting, 0, 1)) in xpc_die_deactivate()
/linux-4.19.296/drivers/misc/genwqe/
Dcard_ddcb.c310 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/
Dmark.c498 if (cmpxchg(connp, NULL, conn)) { in fsnotify_attach_connector_to_object()
/linux-4.19.296/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c214 if (cmpxchg(&mirror->mirror_ds, NULL, mirror_ds) && in ff_layout_mirror_valid()
/linux-4.19.296/fs/debugfs/
Dfile.c98 if (cmpxchg(&dentry->d_fsdata, d_fsd, fsd) != d_fsd) { in debugfs_file_get()
/linux-4.19.296/drivers/char/
Drandom.c715 } while (cmpxchg(&input_pool.init_bits, orig, new) != orig); in _credit_init_bits()

12