| /Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | ringbuf.c | 35 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/ |
| D | apple_bl.c | 223 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/ |
| D | atomic.h | 164 #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/ |
| D | atomic.h | 33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
| /Linux-v5.10/drivers/staging/wfx/ |
| D | bh.c | 146 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/ |
| D | atomic32.c | 70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function 81 EXPORT_SYMBOL(atomic_xchg);
|
| /Linux-v5.10/arch/sparc/include/asm/ |
| D | atomic_32.h | 27 int atomic_xchg(atomic_t *, int);
|
| D | atomic_64.h | 54 static inline int atomic_xchg(atomic_t *v, int new) in ATOMIC_OPS()
|
| /Linux-v5.10/arch/h8300/include/asm/ |
| D | cmpxchg.h | 64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
| /Linux-v5.10/arch/arc/include/asm/ |
| D | cmpxchg.h | 156 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
| /Linux-v5.10/drivers/net/wireless/st/cw1200/ |
| D | bh.c | 457 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/ |
| D | atomic.h | 44 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
|
| /Linux-v5.10/arch/powerpc/platforms/powernv/ |
| D | opal-prd.c | 92 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/ |
| D | atomic-fallback.h | 906 #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/ |
| D | osq_lock.c | 107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
|
| D | percpu-rwsem.c | 87 return atomic_xchg(&sem->block, 1) == 0; in __percpu_down_write_trylock()
|
| /Linux-v5.10/drivers/md/bcache/ |
| D | writeback.h | 133 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
|
| /Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ih.c | 155 if (atomic_xchg(&ih->lock, 1)) in amdgpu_ih_process()
|
| /Linux-v5.10/include/asm-generic/ |
| D | atomic.h | 193 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
|
| /Linux-v5.10/arch/riscv/include/asm/ |
| D | atomic.h | 304 #define atomic_xchg atomic_xchg in ATOMIC_OPS() macro
|
| /Linux-v5.10/drivers/infiniband/hw/hfi1/ |
| D | ipoib_tx.c | 92 !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/ |
| D | atomic.h | 261 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
| /Linux-v5.10/arch/s390/include/asm/ |
| D | atomic.h | 80 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
|
| /Linux-v5.10/kernel/ |
| D | hung_task.c | 292 if (!atomic_xchg(&reset_hung_task, 0) && in watchdog()
|
| /Linux-v5.10/drivers/platform/x86/ |
| D | dell-smo8800.c | 93 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
|