/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | ringbuf.c | 36 static int atomic_xchg(int *cnt, int val) in atomic_xchg() function 185 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest() 192 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest() 209 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest() 239 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest() 256 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest() 286 cnt = atomic_xchg(&sample_cnt, 0); in ringbuf_subtest()
|
/linux-6.3-rc2/drivers/gpu/host1x/ |
A D | fence.c | 77 if (atomic_xchg(&f->signaling, 1)) { in host1x_fence_signal() 104 if (atomic_xchg(&f->signaling, 1)) { in do_fence_timeout()
|
/linux-6.3-rc2/drivers/video/backlight/ |
A D | apple_bl.c | 222 if (atomic_xchg(&apple_bl_registered, 1) == 0) in apple_bl_register() 231 if (atomic_xchg(&apple_bl_registered, 0) == 1) in apple_bl_unregister()
|
/linux-6.3-rc2/drivers/net/wireless/silabs/wfx/ |
A D | bh.c | 144 ctrl_reg = atomic_xchg(&wdev->hif.ctrl_reg, 0); in bh_work_rx() 159 ctrl_reg = atomic_xchg(&wdev->hif.ctrl_reg, piggyback); in bh_work_rx() 268 prev = atomic_xchg(&wdev->hif.ctrl_reg, cur); in wfx_bh_request_rx()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/core/ |
A D | event.c | 104 if (atomic_xchg(&ntfy->allowed, 0) == 1) { in nvkm_event_ntfy_block_() 123 if (atomic_xchg(&ntfy->allowed, 1) == 0) { in nvkm_event_ntfy_allow()
|
/linux-6.3-rc2/drivers/net/wireless/st/cw1200/ |
A D | bh.c | 446 rx = atomic_xchg(&priv->bh_rx, 0); in cw1200_bh() 447 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh() 448 term = atomic_xchg(&priv->bh_term, 0); in cw1200_bh()
|
A D | scan.c | 331 atomic_xchg(&priv->recent_scan, 0); in cw1200_clear_recent_scan_work() 338 if (atomic_xchg(&priv->scan.in_progress, 0)) { in cw1200_scan_timeout()
|
/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | opal-prd.c | 92 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open() 257 atomic_xchg(&prd_usage, 0); in opal_prd_release()
|
/linux-6.3-rc2/kernel/locking/ |
A D | osq_lock.c | 107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
|
A D | percpu-rwsem.c | 89 return atomic_xchg(&sem->block, 1) == 0; in __percpu_down_write_trylock()
|
/linux-6.3-rc2/drivers/md/bcache/ |
A D | writeback.h | 137 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
|
A D | stats.c | 155 unsigned int t = atomic_xchg(&acc->collector.name, 0); \ in scale_accounting()
|
/linux-6.3-rc2/drivers/platform/x86/dell/ |
A D | dell-smo8800.c | 63 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
A D | runl.c | 70 rc = atomic_xchg(&runl->rc_pending, 0); in nvkm_runl_rc() 273 if (atomic_xchg(&runl->changed, 0) && runl->func->update) { in nvkm_runl_update_locked()
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | ipoib_tx.c | 83 !atomic_xchg(&txq->tx_ring.ring_full, 1)) { in hfi1_ipoib_check_queue_depth() 108 atomic_xchg(&txq->tx_ring.ring_full, 0)) { in hfi1_ipoib_check_queue_stopped() 635 if (!atomic_xchg(&txq->tx_ring.no_desc, 1)) { in hfi1_ipoib_sdma_sleep() 678 if (atomic_xchg(&txq->tx_ring.no_desc, 0)) in hfi1_ipoib_flush_txq()
|
/linux-6.3-rc2/arch/mips/math-emu/ |
A D | dsemul.c | 154 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup()
|
/linux-6.3-rc2/kernel/ |
A D | hung_task.c | 377 if (!atomic_xchg(&reset_hung_task, 0) && in watchdog()
|
A D | smpboot.c | 417 (void)atomic_xchg(&per_cpu(cpu_hotplug_state, cpu), CPU_ONLINE); in cpu_set_state_online()
|
/linux-6.3-rc2/mm/ |
A D | page_reporting.c | 74 state = atomic_xchg(&prdev->state, PAGE_REPORTING_REQUESTED); in __page_reporting_request()
|
/linux-6.3-rc2/arch/mips/mm/ |
A D | page.c | 285 if (atomic_xchg(&run_once, 1)) { in build_clear_page() 434 if (atomic_xchg(&run_once, 1)) { in build_copy_page()
|
/linux-6.3-rc2/net/ceph/ |
A D | messenger.c | 284 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init() 295 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting() 306 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected() 317 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing() 330 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
|
/linux-6.3-rc2/kernel/debug/ |
A D | debug_core.c | 612 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter() 627 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
|
/linux-6.3-rc2/arch/powerpc/mm/book3s64/ |
A D | hash_pgtable.c | 483 if (atomic_xchg(&parms->master_cpu, 1) == 1) in change_memory_range_fn()
|
/linux-6.3-rc2/arch/sh/drivers/dma/ |
A D | dma-api.c | 198 if (atomic_xchg(&channel->busy, 1)) in request_dma()
|
/linux-6.3-rc2/kernel/rcu/ |
A D | rcu.h | 274 !atomic_xchg(&___rfd_beenhere, 1)) { \
|