Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A 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()
/OK3568_Linux_fs/kernel/drivers/video/backlight/
H A 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()
/OK3568_Linux_fs/kernel/drivers/staging/wfx/
H A 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()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A 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
/OK3568_Linux_fs/kernel/arch/sparc/lib/
H A Datomic32.c70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
81 EXPORT_SYMBOL(atomic_xchg);
/OK3568_Linux_fs/kernel/arch/sh/include/asm/
H A Datomic.h33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/OK3568_Linux_fs/kernel/drivers/gpu/drm/panfrost/
H A Dpanfrost_job.c389 old_status = atomic_xchg(&queue->status, in panfrost_scheduler_stop()
419 old_status = atomic_xchg(&queue->status, in panfrost_scheduler_start()
427 old_status = atomic_xchg(&queue->status, in panfrost_scheduler_start()
461 if (!atomic_xchg(&pfdev->reset.pending, 1)) in panfrost_job_timedout()
/OK3568_Linux_fs/kernel/drivers/net/wireless/st/cw1200/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_osk_atomics.c58 return atomic_xchg((atomic_t *)&atom->u.val, val); in _mali_osk_atomic_xchg()
/OK3568_Linux_fs/kernel/arch/sparc/include/asm/
H A Datomic_32.h27 int atomic_xchg(atomic_t *, int);
H A Datomic_64.h54 static inline int atomic_xchg(atomic_t *v, int new) in ATOMIC_OPS()
/OK3568_Linux_fs/kernel/arch/h8300/include/asm/
H A Dcmpxchg.h64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/OK3568_Linux_fs/kernel/include/linux/
H A 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
/OK3568_Linux_fs/kernel/arch/arc/include/asm/
H A Dcmpxchg.h156 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/
H A Dopal-prd.c92 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open()
260 atomic_xchg(&prd_usage, 0); in opal_prd_release()
/OK3568_Linux_fs/kernel/arch/hexagon/include/asm/
H A Datomic.h44 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A 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()
/OK3568_Linux_fs/kernel/kernel/locking/
H A Dosq_lock.c107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
/OK3568_Linux_fs/kernel/arch/riscv/include/asm/
H A Datomic.h304 #define atomic_xchg atomic_xchg in ATOMIC_OPS() macro
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dwriteback.h133 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c155 if (atomic_xchg(&ih->lock, 1)) in amdgpu_ih_process()
/OK3568_Linux_fs/kernel/include/asm-generic/
H A Datomic.h193 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/
H A 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()
/OK3568_Linux_fs/kernel/arch/xtensa/include/asm/
H A Datomic.h261 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/OK3568_Linux_fs/kernel/arch/s390/include/asm/
H A Datomic.h80 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro

12345