Home
last modified time | relevance | path

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

1234

/Linux-v5.4/drivers/video/backlight/
Dapple_bl.c223 if (atomic_xchg(&apple_bl_registered, 1) == 0) in apple_bl_register()
232 if (atomic_xchg(&apple_bl_registered, 0) == 1) in apple_bl_unregister()
/Linux-v5.4/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-v5.4/arch/sh/include/asm/
Datomic.h35 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.4/arch/sparc/lib/
Datomic32.c70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
81 EXPORT_SYMBOL(atomic_xchg);
/Linux-v5.4/arch/h8300/include/asm/
Dcmpxchg.h64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.4/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-v5.4/drivers/net/wireless/st/cw1200/
Dbh.c457 rx = atomic_xchg(&priv->bh_rx, 0); in cw1200_bh()
458 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh()
459 term = atomic_xchg(&priv->bh_term, 0); in cw1200_bh()
/Linux-v5.4/arch/hexagon/include/asm/
Datomic.h46 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/Linux-v5.4/arch/arc/include/asm/
Dcmpxchg.h222 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.4/include/linux/
Datomic-fallback.h823 #define atomic_xchg_acquire atomic_xchg
824 #define atomic_xchg_release atomic_xchg
825 #define atomic_xchg_relaxed atomic_xchg
849 #ifndef atomic_xchg
851 atomic_xchg(atomic_t *v, int i) in atomic_xchg() function
859 #define atomic_xchg atomic_xchg macro
/Linux-v5.4/drivers/md/bcache/
Dwriteback.h99 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal-prd.c92 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open()
260 atomic_xchg(&prd_usage, 0); in opal_prd_release()
/Linux-v5.4/kernel/locking/
Dosq_lock.c107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
/Linux-v5.4/arch/xtensa/include/asm/
Datomic.h259 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.4/include/asm-generic/
Datomic.h195 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
/Linux-v5.4/arch/riscv/include/asm/
Datomic.h306 #define atomic_xchg atomic_xchg in ATOMIC_OPS() macro
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c156 if (atomic_xchg(&ih->lock, 1)) in amdgpu_ih_process()
/Linux-v5.4/arch/s390/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
/Linux-v5.4/kernel/
Dhung_task.c287 if (!atomic_xchg(&reset_hung_task, 0) && in watchdog()
/Linux-v5.4/drivers/platform/x86/
Ddell-smo8800.c92 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
/Linux-v5.4/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-v5.4/arch/mips/math-emu/
Ddsemul.c157 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup()
/Linux-v5.4/arch/parisc/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.4/kernel/printk/
Dprintk_safe.c170 int lost = atomic_xchg(&s->message_lost, 0); in report_message_lost()

1234