/Linux-v5.4/tools/include/linux/ |
D | atomic.h | 9 #define atomic_cmpxchg_relaxed atomic_cmpxchg 10 #define atomic_cmpxchg_release atomic_cmpxchg
|
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/ |
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()
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/md/bcache/ |
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()
|
/Linux-v5.4/tools/testing/selftests/futex/include/ |
D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
/Linux-v5.4/arch/sh/include/asm/ |
D | atomic.h | 36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/kernel/printk/ |
D | printk_safe.c | 103 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store() 229 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
|
/Linux-v5.4/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-v5.4/arch/x86/include/asm/ |
D | qspinlock.h | 100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
/Linux-v5.4/lib/ |
D | dump_stack.c | 102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
|
/Linux-v5.4/include/linux/ |
D | atomic-fallback.h | 865 #define atomic_cmpxchg_acquire atomic_cmpxchg 866 #define atomic_cmpxchg_release atomic_cmpxchg 867 #define atomic_cmpxchg_relaxed atomic_cmpxchg 891 #ifndef atomic_cmpxchg 893 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function 901 #define atomic_cmpxchg atomic_cmpxchg macro 918 r = atomic_cmpxchg(v, o, new); in atomic_try_cmpxchg()
|
/Linux-v5.4/drivers/firewire/ |
D | core-device.c | 802 if (atomic_cmpxchg(&device->state, in fw_device_shutdown() 891 atomic_cmpxchg(&old->state, in lookup_existing_device() 1065 if (atomic_cmpxchg(&device->state, in fw_device_init() 1142 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1168 if (atomic_cmpxchg(&device->state, in fw_device_refresh() 1266 if (atomic_cmpxchg(&device->state, in fw_node_event()
|
/Linux-v5.4/net/netfilter/ |
D | xt_statistic.c | 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
/Linux-v5.4/kernel/ |
D | smpboot.c | 448 if (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death() 477 } while (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
|
/Linux-v5.4/arch/hexagon/include/asm/ |
D | atomic.h | 66 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/Linux-v5.4/arch/x86/kernel/ |
D | smp.c | 172 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
|
/Linux-v5.4/arch/arc/include/asm/ |
D | cmpxchg.h | 104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
|
/Linux-v5.4/drivers/gpu/host1x/ |
D | intr.c | 251 while (atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED) == in host1x_intr_put_ref() 320 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()
|
/Linux-v5.4/drivers/misc/cxl/ |
D | main.c | 294 rc = atomic_cmpxchg(&adapter->contexts_num, 0, -1); in cxl_adapter_context_lock() 300 int val = atomic_cmpxchg(&adapter->contexts_num, -1, 0); in cxl_adapter_context_unlock()
|
/Linux-v5.4/drivers/gpu/host1x/hw/ |
D | syncpt_hw.c | 62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
|