/Linux-v4.19/tools/include/linux/ |
D | atomic.h | 9 #define atomic_cmpxchg_relaxed atomic_cmpxchg 10 #define atomic_cmpxchg_release atomic_cmpxchg
|
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_utils.h | 24 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_set() 34 } while (atomic_cmpxchg(flags, flags_old, flags_new) != flags_old); in aq_utils_obj_clear()
|
/Linux-v4.19/arch/sh/kernel/ |
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()
|
/Linux-v4.19/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)); \
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | atomic.h | 99 #define atomic_cmpxchg(v, old, new) cmpxchg(&((v)->counter), (old), (new)) macro 158 #define atomic64_cmpxchg atomic_cmpxchg
|
/Linux-v4.19/drivers/md/bcache/ |
D | io.c | 92 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors() 101 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
|
/Linux-v4.19/tools/testing/selftests/futex/include/ |
D | atomic.h | 40 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | atomic.h | 165 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro 170 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/Linux-v4.19/arch/sh/include/asm/ |
D | atomic.h | 36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
/Linux-v4.19/tools/arch/x86/include/asm/ |
D | atomic.h | 68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/Linux-v4.19/tools/include/asm-generic/ |
D | atomic-gcc.h | 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
|
/Linux-v4.19/arch/sparc/lib/ |
D | atomic32.c | 83 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function 96 EXPORT_SYMBOL(atomic_cmpxchg);
|
/Linux-v4.19/arch/x86/include/asm/ |
D | qspinlock.h | 67 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
/Linux-v4.19/kernel/printk/ |
D | printk_safe.c | 115 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store() 241 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | atomic_32.h | 28 int atomic_cmpxchg(atomic_t *, int, int);
|
D | atomic_64.h | 53 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
|
/Linux-v4.19/lib/ |
D | dump_stack.c | 102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
|
/Linux-v4.19/drivers/firewire/ |
D | core-device.c | 815 if (atomic_cmpxchg(&device->state, in fw_device_shutdown() 904 atomic_cmpxchg(&old->state, in lookup_existing_device() 1078 if (atomic_cmpxchg(&device->state, in fw_device_init() 1155 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1181 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1279 if (atomic_cmpxchg(&device->state, in fw_node_event()
|
/Linux-v4.19/net/netfilter/ |
D | xt_statistic.c | 47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
/Linux-v4.19/kernel/ |
D | smpboot.c | 447 if (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death() 476 } while (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
|
D | panic.c | 118 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, cpu); in nmi_panic() 168 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in panic()
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | atomic.h | 80 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/Linux-v4.19/arch/arc/include/asm/ |
D | cmpxchg.h | 104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
|
/Linux-v4.19/drivers/gpu/host1x/ |
D | intr.c | 262 while (atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED) == in host1x_intr_put_ref() 331 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()
|
/Linux-v4.19/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()
|