/kernel/linux/linux-5.10/tools/include/linux/ |
H A D | atomic.h | 9 #define atomic_cmpxchg_relaxed atomic_cmpxchg 10 #define atomic_cmpxchg_release atomic_cmpxchg
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | atomic.h | 11 #define atomic_cmpxchg_relaxed atomic_cmpxchg 12 #define atomic_cmpxchg_release atomic_cmpxchg
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_utils.h | 21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_set() 31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_clear()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_utils.h | 21 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_set() 31 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_clear()
|
/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | ftrace.c | 110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag() 149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag() 154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
|
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | ftrace.c | 110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag() 149 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag() 154 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
H A D | atomic.h | 163 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro 168 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | io.c | 104 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors() 113 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
|
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | io.c | 105 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors() 114 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
|
/kernel/linux/linux-5.10/tools/testing/selftests/futex/include/ |
H A D | atomic.h | 28 * atomic_cmpxchg() - Atomic compare and exchange 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
/kernel/linux/linux-6.6/tools/testing/selftests/futex/include/ |
H A D | atomic.h | 28 * atomic_cmpxchg() - Atomic compare and exchange 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/ |
H A D | chan.c | 155 cur = atomic_cmpxchg(&hal->roc_entity_idx, in rtw89_config_roc_chandef() 165 cur = atomic_cmpxchg(&hal->roc_entity_idx, idx, in rtw89_config_roc_chandef() 380 atomic_cmpxchg(&hal->roc_entity_idx, roll, RTW89_SUB_ENTITY_0); in rtw89_chanctx_ops_remove()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | atomic.h | 34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
/kernel/linux/linux-5.10/tools/include/asm-generic/ |
H A D | atomic-gcc.h | 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
/kernel/linux/linux-5.10/tools/arch/x86/include/asm/ |
H A D | atomic.h | 68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/kernel/linux/linux-6.6/tools/arch/x86/include/asm/ |
H A D | atomic.h | 69 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/kernel/linux/linux-5.10/arch/sparc/lib/ |
H A D | atomic32.c | 83 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function 96 EXPORT_SYMBOL(atomic_cmpxchg); variable
|
/kernel/linux/linux-5.10/kernel/printk/ |
H A D | printk_safe.c | 103 * Note that atomic_cmpxchg() is an implicit memory barrier that in printk_safe_log_store() 106 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store() 226 * the buffer. Note that atomic_cmpxchg() is an implicit memory in __printk_safe_flush() 230 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | qspinlock.h | 101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | atomic_32.h | 26 int atomic_cmpxchg(atomic_t *, int, int);
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | qspinlock.h | 100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
/kernel/linux/linux-6.6/tools/include/asm-generic/ |
H A D | atomic-gcc.h | 68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_msg.c | 822 if (!atomic_cmpxchg(&dev_priv->mksstat_kern_pids[slot], 0, MKSSTAT_PID_RESERVED)) { in vmw_mksstat_get_kern_slot() 897 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 927 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() 1026 if (!atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], 0, MKSSTAT_PID_RESERVED)) in vmw_mksstat_add_ioctl() 1161 pid = atomic_cmpxchg(&dev_priv->mksstat_user_pids[slot], pgid, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_ioctl()
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
H A D | atomic.h | 70 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/kernel/linux/linux-5.10/arch/hexagon/include/asm/ |
H A D | atomic.h | 48 * atomic_cmpxchg - atomic compare-and-exchange values 64 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|