Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 25 of 112) sorted by relevance

12345

/Linux-v4.19/tools/include/linux/
Datomic.h9 #define atomic_cmpxchg_relaxed atomic_cmpxchg
10 #define atomic_cmpxchg_release atomic_cmpxchg
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/
Daq_utils.h24 } 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/
Dftrace.c110 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/
Datomic.h449 #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/
Datomic.h99 #define atomic_cmpxchg(v, old, new) cmpxchg(&((v)->counter), (old), (new)) macro
158 #define atomic64_cmpxchg atomic_cmpxchg
/Linux-v4.19/drivers/md/bcache/
Dio.c92 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/
Datomic.h40 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/Linux-v4.19/arch/m68k/include/asm/
Datomic.h165 #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/
Datomic.h36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v4.19/tools/arch/x86/include/asm/
Datomic.h68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/Linux-v4.19/tools/include/asm-generic/
Datomic-gcc.h67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
/Linux-v4.19/arch/sparc/lib/
Datomic32.c83 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/
Dqspinlock.h67 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
/Linux-v4.19/kernel/printk/
Dprintk_safe.c115 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/
Datomic_32.h28 int atomic_cmpxchg(atomic_t *, int, int);
Datomic_64.h53 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
/Linux-v4.19/lib/
Ddump_stack.c102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
/Linux-v4.19/drivers/firewire/
Dcore-device.c815 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/
Dxt_statistic.c47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/Linux-v4.19/kernel/
Dsmpboot.c447 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()
Dpanic.c118 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/
Datomic.h80 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/Linux-v4.19/arch/arc/include/asm/
Dcmpxchg.h104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v4.19/drivers/gpu/host1x/
Dintr.c262 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/
Dmain.c297 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()

12345