Home
last modified time | relevance | path

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

1234

/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c35 static int atomic_xchg(int *cnt, int val) in atomic_xchg() function
183 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
190 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
207 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
237 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
254 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
284 cnt = atomic_xchg(&sample_cnt, 0); in test_ringbuf()
/Linux-v5.15/drivers/gpu/host1x/
Dfence.c111 if (atomic_xchg(&f->signaling, 1)) in host1x_fence_signal()
132 if (atomic_xchg(&f->signaling, 1)) in do_fence_timeout()
Dintr.c153 WARN_ON(atomic_xchg(&waiter->state, WLS_HANDLED) != in run_handlers()
/Linux-v5.15/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.15/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.15/drivers/net/wireless/st/cw1200/
Dbh.c454 rx = atomic_xchg(&priv->bh_rx, 0); in cw1200_bh()
455 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh()
456 term = atomic_xchg(&priv->bh_term, 0); in cw1200_bh()
Dscan.c331 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-v5.15/arch/powerpc/platforms/powernv/
Dopal-prd.c92 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open()
257 atomic_xchg(&prd_usage, 0); in opal_prd_release()
/Linux-v5.15/arch/x86/kernel/cpu/
Daperfmperf.c79 if (!atomic_xchg(&s->scfpending, 1) || wait) in aperfmperf_snapshot_cpu()
/Linux-v5.15/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.15/drivers/md/bcache/
Dwriteback.h137 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
Dstats.c154 unsigned int t = atomic_xchg(&acc->collector.name, 0); \ in scale_accounting()
/Linux-v5.15/drivers/platform/x86/dell/
Ddell-smo8800.c63 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dipoib_tx.c95 !atomic_xchg(&txq->ring_full, 1)) { in hfi1_ipoib_check_queue_depth()
120 atomic_xchg(&txq->ring_full, 0)) { in hfi1_ipoib_check_queue_stopped()
649 if (!atomic_xchg(&txq->no_desc, 1)) { in hfi1_ipoib_sdma_sleep()
692 if (atomic_xchg(&txq->no_desc, 0)) in hfi1_ipoib_flush_txq()
/Linux-v5.15/kernel/
Dhung_task.c293 if (!atomic_xchg(&reset_hung_task, 0) && in watchdog()
Dsmpboot.c410 (void)atomic_xchg(&per_cpu(cpu_hotplug_state, cpu), CPU_ONLINE); in cpu_set_state_online()
/Linux-v5.15/drivers/gpu/drm/nouveau/
Dnouveau_usif.c209 if (atomic_xchg(&ntfy->enabled, 1)) in usif_notify_get()
247 if (ret == 0 && atomic_xchg(&ntfy->enabled, 0)) in usif_notify_put()
/Linux-v5.15/arch/mips/math-emu/
Ddsemul.c157 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup()
/Linux-v5.15/mm/
Dpage_reporting.c42 state = atomic_xchg(&prdev->state, PAGE_REPORTING_REQUESTED); in __page_reporting_request()
/Linux-v5.15/arch/mips/mm/
Dpage.c284 if (atomic_xchg(&run_once, 1)) { in build_clear_page()
433 if (atomic_xchg(&run_once, 1)) { in build_copy_page()
/Linux-v5.15/kernel/debug/
Ddebug_core.c623 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
638 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
/Linux-v5.15/net/ceph/
Dmessenger.c283 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init()
294 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting()
305 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected()
316 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing()
329 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
/Linux-v5.15/kernel/rcu/
Drcu.h257 !atomic_xchg(&___rfd_beenhere, 1)) { \
/Linux-v5.15/tools/memory-model/
Dlinux-kernel.def104 atomic_xchg(X,V) __xchg{mb}(X,V)

1234