| /xnu-8020.140.41/osfmk/arm/ |
| H A D | machine_routines_apple.c | 74 if (os_atomic_xchg(&initialized, true, relaxed)) { in vmapple_pac_get_default_keys()
|
| H A D | pmap.c | 1613 uint16_t hw_asid = os_atomic_xchg(&pmap->hw_asid, 0, relaxed); in free_asid()
|
| /xnu-8020.140.41/libkern/os/ |
| H A D | atomic_private.h | 637 #define os_atomic_xchg(p, v, m) _os_atomic_c11_op_orig(p, v, m, exchange) macro 813 #define os_atomic_xchg(p, v, m) _os_atomic_error_is_starvable(os_atomic_xchg) macro
|
| /xnu-8020.140.41/osfmk/kern/ |
| H A D | smr.h | 247 os_atomic_xchg(&(ptr)->__smr_ptr, value, release); \
|
| H A D | mpsc_queue.h | 218 return os_atomic_xchg(&q->mpqh_tail, elm, release); in __mpsc_queue_append_update_tail()
|
| H A D | hazard.c | 205 os_atomic_xchg(&guard->hg_val, value, seq_cst); in hazard_guard_set() 217 os_atomic_xchg(&guard->hg_val, value, seq_cst); in hazard_guard_replace()
|
| H A D | mpsc_queue.c | 97 *tail_out = os_atomic_xchg(&q->mpqh_tail, &q->mpqh_head, seq_cst); in mpsc_queue_dequeue_batch()
|
| H A D | bsd_kern.c | 783 return os_atomic_xchg(&task->loadTag, loadTag, relaxed); in set_task_loadTag()
|
| H A D | zalloc.c | 2968 if (os_atomic_xchg(&zone->z_pcpu_cache, caches, release)) { in zone_enable_caching() 5204 t = os_atomic_xchg(&pgz_slot_tail, m, relaxed); in pgz_slot_free() 5295 tmp.zm_bits = os_atomic_xchg(&meta->zm_bits, tmp.zm_bits, relaxed); in pgz_unprotect() 10133 if (os_atomic_xchg(&any_zone_test_running, true, relaxed)) { in zone_ro_basic_test_run() 10226 if (os_atomic_xchg(&any_zone_test_running, true, relaxed)) { in zone_basic_test_run() 10510 if (os_atomic_xchg(&any_zone_test_running, true, relaxed)) { in zone_stress_test_run()
|
| H A D | waitq.c | 2363 if (os_atomic_xchg(&wqt_running, true, acquire)) { in wqt_start()
|
| H A D | sched_prim.c | 7466 return os_atomic_xchg(&sched_perfcontrol_callback_deadline, new_deadline, in sched_perfcontrol_update_callback_deadline() 7543 …uint64_t old_shared_load = os_atomic_xchg(&pset->pset_cluster_shared_rsrc_load[shared_rsrc_type], … in sched_update_pset_load_average()
|
| /xnu-8020.140.41/tests/ |
| H A D | restartable_ranges.c | 263 old = os_atomic_xchg(&cls[2], arena_alloc(), release);
|
| /xnu-8020.140.41/bsd/dev/arm64/ |
| H A D | fasttrap_isa.c | 225 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) { 1018 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) {
|
| /xnu-8020.140.41/bsd/dev/arm/ |
| H A D | fasttrap_isa.c | 286 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) { 506 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) {
|
| /xnu-8020.140.41/bsd/dev/i386/ |
| H A D | fasttrap_isa.c | 718 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) { in fasttrap_return_common() 1049 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) { in fasttrap_pid_probe32() 1592 if (os_atomic_xchg(&probe->ftp_triggered, 1, relaxed)) { in fasttrap_pid_probe64()
|
| /xnu-8020.140.41/doc/ |
| H A D | atomics.md | 218 `os_atomic_xchg` is a simple wrapper around `atomic_exchange_explicit`.
|
| /xnu-8020.140.41/bsd/pthread/ |
| H A D | pthread_workqueue.c | 252 wq = os_atomic_xchg(&p->p_wqptr, wq, release); in proc_set_wqptr() 2203 wq = os_atomic_xchg(&p->p_wqptr, NULL, relaxed); in workq_exit()
|
| /xnu-8020.140.41/bsd/dev/dtrace/ |
| H A D | fasttrap.c | 517 work = os_atomic_xchg(&fasttrap_cleanup_work, 0, relaxed); in fasttrap_pid_cleanup_cb()
|
| H A D | dtrace.c | 19179 uint32_t clients = os_atomic_xchg(&dtrace_wake_clients, 0, relaxed); in dtrace_ast()
|
| /xnu-8020.140.41/bsd/kern/ |
| H A D | kern_exec.c | 1272 if (!os_atomic_xchg(&logged_once, true, relaxed)) { in exec_mach_imgact()
|