Home
last modified time | relevance | path

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

12345

/Linux-v5.4/tools/include/linux/
Datomic.h9 #define atomic_cmpxchg_relaxed atomic_cmpxchg
10 #define atomic_cmpxchg_release atomic_cmpxchg
/Linux-v5.4/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.4/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.4/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-v5.4/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.4/tools/testing/selftests/futex/include/
Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/Linux-v5.4/arch/sh/include/asm/
Datomic.h36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v5.4/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.4/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.4/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.4/kernel/printk/
Dprintk_safe.c103 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/
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-v5.4/arch/x86/include/asm/
Dqspinlock.h100 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
/Linux-v5.4/lib/
Ddump_stack.c102 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
/Linux-v5.4/include/linux/
Datomic-fallback.h865 #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/
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.4/net/netfilter/
Dxt_statistic.c44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/Linux-v5.4/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.4/arch/hexagon/include/asm/
Datomic.h66 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/Linux-v5.4/arch/x86/kernel/
Dsmp.c172 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
/Linux-v5.4/arch/arc/include/asm/
Dcmpxchg.h104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
/Linux-v5.4/drivers/gpu/host1x/
Dintr.c251 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/
Dmain.c294 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/
Dsyncpt_hw.c62 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()

12345