Home
last modified time | relevance | path

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

123456

/Linux-v5.10/tools/include/linux/
Datomic.h9 #define atomic_cmpxchg_relaxed atomic_cmpxchg
10 #define atomic_cmpxchg_release atomic_cmpxchg
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_utils.h21 } 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.10/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-v5.10/arch/m68k/include/asm/
Datomic.h163 #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
/Linux-v5.10/drivers/md/bcache/
Dio.c104 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.10/arch/sh/include/asm/
Datomic.h34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v5.10/tools/testing/selftests/futex/include/
Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/Linux-v5.10/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-v5.10/tools/include/asm-generic/
Datomic-gcc.h67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() function
/Linux-v5.10/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-v5.10/kernel/printk/
Dprintk_safe.c104 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store()
230 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
/Linux-v5.10/arch/sparc/include/asm/
Datomic_32.h26 int atomic_cmpxchg(atomic_t *, int, int);
Datomic_64.h52 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
/Linux-v5.10/include/linux/
Dblk-cgroup.h554 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay()
581 if (!old && atomic_cmpxchg(&blkg->use_delay, old, -1) == old) in blkcg_set_delay()
598 if (old && atomic_cmpxchg(&blkg->use_delay, old, 0) == old) in blkcg_clear_delay()
Datomic-fallback.h953 #define arch_atomic_cmpxchg atomic_cmpxchg
959 #define atomic_cmpxchg_acquire atomic_cmpxchg
960 #define atomic_cmpxchg_release atomic_cmpxchg
961 #define atomic_cmpxchg_relaxed atomic_cmpxchg
985 #ifndef atomic_cmpxchg
987 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
995 #define atomic_cmpxchg atomic_cmpxchg macro
1017 r = atomic_cmpxchg(v, o, new); in atomic_try_cmpxchg()
/Linux-v5.10/arch/x86/include/asm/
Dqspinlock.h101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
/Linux-v5.10/lib/
Ddump_stack.c102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
/Linux-v5.10/arch/arc/include/asm/
Dcmpxchg.h78 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v5.10/drivers/s390/cio/
Dccwgroup.c82 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online()
111 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline()
191 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
/Linux-v5.10/drivers/firewire/
Dcore-device.c802 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.10/arch/x86/kernel/
Dsmp.c171 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
/Linux-v5.10/net/netfilter/
Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/Linux-v5.10/kernel/
Dsmpboot.c448 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.10/arch/hexagon/include/asm/
Datomic.h64 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/Linux-v5.10/arch/h8300/include/asm/
Datomic.h70 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function

123456