Home
last modified time | relevance | path

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

12345

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c35 static int atomic_xchg(int *cnt, int val) in atomic_xchg() function
129 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
136 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
153 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
183 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
200 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
230 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
/Linux-v5.10/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.10/arch/m68k/include/asm/
Datomic.h164 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
181 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
/Linux-v5.10/arch/sh/include/asm/
Datomic.h33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.10/drivers/staging/wfx/
Dbh.c146 ctrl_reg = atomic_xchg(&wdev->hif.ctrl_reg, 0); in bh_work_rx()
161 ctrl_reg = atomic_xchg(&wdev->hif.ctrl_reg, piggyback); in bh_work_rx()
274 prev = atomic_xchg(&wdev->hif.ctrl_reg, cur); in wfx_bh_request_rx()
/Linux-v5.10/arch/sparc/lib/
Datomic32.c70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
81 EXPORT_SYMBOL(atomic_xchg);
/Linux-v5.10/arch/sparc/include/asm/
Datomic_32.h27 int atomic_xchg(atomic_t *, int);
Datomic_64.h54 static inline int atomic_xchg(atomic_t *v, int new) in ATOMIC_OPS()
/Linux-v5.10/arch/h8300/include/asm/
Dcmpxchg.h64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.10/arch/arc/include/asm/
Dcmpxchg.h156 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.10/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.10/arch/hexagon/include/asm/
Datomic.h44 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/Linux-v5.10/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.10/include/linux/
Datomic-fallback.h906 #define arch_atomic_xchg atomic_xchg
912 #define atomic_xchg_acquire atomic_xchg
913 #define atomic_xchg_release atomic_xchg
914 #define atomic_xchg_relaxed atomic_xchg
938 #ifndef atomic_xchg
940 atomic_xchg(atomic_t *v, int i) in atomic_xchg() function
948 #define atomic_xchg atomic_xchg macro
/Linux-v5.10/kernel/locking/
Dosq_lock.c107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
Dpercpu-rwsem.c87 return atomic_xchg(&sem->block, 1) == 0; in __percpu_down_write_trylock()
/Linux-v5.10/drivers/md/bcache/
Dwriteback.h133 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c155 if (atomic_xchg(&ih->lock, 1)) in amdgpu_ih_process()
/Linux-v5.10/include/asm-generic/
Datomic.h193 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
/Linux-v5.10/arch/riscv/include/asm/
Datomic.h304 #define atomic_xchg atomic_xchg in ATOMIC_OPS() macro
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dipoib_tx.c92 !atomic_xchg(&txq->ring_full, 1)) in hfi1_ipoib_check_queue_depth()
115 atomic_xchg(&txq->ring_full, 0)) in hfi1_ipoib_check_queue_stopped()
638 if (!atomic_xchg(&txq->no_desc, 1)) in hfi1_ipoib_sdma_sleep()
677 if (atomic_xchg(&txq->no_desc, 0)) in hfi1_ipoib_flush_txq()
/Linux-v5.10/arch/xtensa/include/asm/
Datomic.h261 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/Linux-v5.10/arch/s390/include/asm/
Datomic.h80 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
/Linux-v5.10/kernel/
Dhung_task.c292 if (!atomic_xchg(&reset_hung_task, 0) && in watchdog()
/Linux-v5.10/drivers/platform/x86/
Ddell-smo8800.c93 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()

12345