Home
last modified time | relevance | path

Searched refs:atomic_xchg (Results 1 – 25 of 87) sorted by relevance

1234

/Linux-v4.19/include/linux/
Datomic.h425 #define atomic_xchg_relaxed atomic_xchg
426 #define atomic_xchg_acquire atomic_xchg
427 #define atomic_xchg_release atomic_xchg
433 __atomic_op_acquire(atomic_xchg, __VA_ARGS__)
438 __atomic_op_release(atomic_xchg, __VA_ARGS__)
441 #ifndef atomic_xchg
442 #define atomic_xchg(...) \ macro
443 __atomic_op_fence(atomic_xchg, __VA_ARGS__)
/Linux-v4.19/drivers/video/backlight/
Dapple_bl.c226 if (atomic_xchg(&apple_bl_registered, 1) == 0) in apple_bl_register()
235 if (atomic_xchg(&apple_bl_registered, 0) == 1) in apple_bl_unregister()
/Linux-v4.19/arch/arm64/include/asm/
Datomic.h91 #define atomic_xchg(v, new) xchg(&((v)->counter), (new)) macro
153 #define atomic64_xchg atomic_xchg
/Linux-v4.19/arch/m68k/include/asm/
Datomic.h166 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
183 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
/Linux-v4.19/arch/sh/include/asm/
Datomic.h35 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v4.19/arch/sparc/lib/
Datomic32.c70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
81 EXPORT_SYMBOL(atomic_xchg);
/Linux-v4.19/arch/h8300/include/asm/
Dcmpxchg.h64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v4.19/arch/sparc/include/asm/
Datomic_32.h29 int atomic_xchg(atomic_t *, int);
Datomic_64.h55 static inline int atomic_xchg(atomic_t *v, int new) in ATOMIC_OPS()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dbh.c460 rx = atomic_xchg(&priv->bh_rx, 0); in cw1200_bh()
461 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh()
462 term = atomic_xchg(&priv->bh_term, 0); in cw1200_bh()
/Linux-v4.19/arch/hexagon/include/asm/
Datomic.h60 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/Linux-v4.19/arch/arc/include/asm/
Dcmpxchg.h219 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v4.19/drivers/md/bcache/
Dwriteback.h88 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dopal-prd.c100 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open()
268 atomic_xchg(&prd_usage, 0); in opal_prd_release()
/Linux-v4.19/arch/xtensa/include/asm/
Datomic.h201 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v4.19/kernel/locking/
Dosq_lock.c107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
/Linux-v4.19/include/asm-generic/
Datomic.h199 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
/Linux-v4.19/arch/s390/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
/Linux-v4.19/kernel/
Dhung_task.c264 if (!atomic_xchg(&reset_hung_task, 0)) in watchdog()
/Linux-v4.19/Documentation/
Datomic_t.txt37 atomic_xchg{,_relaxed,_acquire,_release}()
112 the typical solution is to then implement atomic_set{}() with atomic_xchg().
/Linux-v4.19/drivers/platform/x86/
Ddell-smo8800.c101 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_usif.c206 if (atomic_xchg(&ntfy->enabled, 1)) in usif_notify_get()
244 if (ret == 0 && atomic_xchg(&ntfy->enabled, 0)) in usif_notify_put()
/Linux-v4.19/arch/mips/math-emu/
Ddsemul.c157 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup()
/Linux-v4.19/arch/parisc/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v4.19/kernel/printk/
Dprintk_safe.c182 int lost = atomic_xchg(&s->message_lost, 0); in report_message_lost()

1234