| /xnu-8020.121.3/iokit/Kernel/i386/ |
| H A D | IOKeyStoreHelper.cpp | 94 if (!OSCompareAndSwap(0, 1, &alreadyFetched)) { in IOGetBootKeyStoreData() 146 if (!OSCompareAndSwap(0, 1, &apfsKeyFetched)) { in IOGetAPFSKeyStoreData() 184 if (!OSCompareAndSwap(0, 1, &ARVRootHashFetched)) { in IOGetARVRootHashData() 213 if (!OSCompareAndSwap(0, 1, &bsARVRootHashFetched)) { in IOGetBaseSystemARVRootHashData() 259 if (!OSCompareAndSwap(0, 1, &ARVManifestFetched)) { in IOGetARVManifestData() 288 if (!OSCompareAndSwap(0, 1, &bsARVManifestFetched)) { in IOGetBaseSystemARVManifestData()
|
| /xnu-8020.121.3/libkern/libkern/ |
| H A D | OSAtomic.h | 246 extern Boolean OSCompareAndSwap( 250 #define OSCompareAndSwap(a, b, c) \ macro 251 (OSCompareAndSwap(a, b, __SAFE_CAST_PTR(volatile UInt32*,c)))
|
| /xnu-8020.121.3/libkern/gen/ |
| H A D | OSAtomicOperations.c | 72 #undef OSCompareAndSwap 74 OSCompareAndSwap(UInt32 oldValue, UInt32 newValue, volatile UInt32 *address) in OSCompareAndSwap() function
|
| /xnu-8020.121.3/libkern/c++/ |
| H A D | OSObject.cpp | 146 } while (!OSCompareAndSwap(origCount, newCount, const_cast<UInt32 *>(countP))); in taggedTryRetain() 209 } while (!OSCompareAndSwap(origCount, newCount, const_cast<UInt32 *>(countP))); in taggedRelease()
|
| /xnu-8020.121.3/osfmk/i386/ |
| H A D | trap_native.c | 178 …(void)OSCompareAndSwap((UInt32) - 1, (UInt32) cpu_number(), (volatile UInt32 *)&panic_double_fault… in panic_double_fault64()
|
| H A D | fpu.c | 461 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu() 480 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu()
|
| /xnu-8020.121.3/bsd/netinet/ |
| H A D | tcp_cc.c | 158 if (OSCompareAndSwap(old_value, new_value, &tcp_ccdbg_unit)) { in tcp_ccdbg_control_connect() 177 if (!OSCompareAndSwap(old_value, new_value, in tcp_ccdbg_control_disconnect()
|
| H A D | in_pcb.c | 2866 OSCompareAndSwap(origwant, newwant, wantcnt); in in_pcb_checkstate() 2883 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate() 2910 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate()
|
| /xnu-8020.121.3/osfmk/arm/ |
| H A D | cpu_common.c | 443 swap_success = OSCompareAndSwap(current_signals & (~signal), current_signals | signal, in cpu_signal_internal() 487 swap_success = OSCompareAndSwap(current_signals, current_signals | signal, in cpu_signal_internal()
|
| /xnu-8020.121.3/tools/cocci/ |
| H A D | OSAtomic_rewrite.cocci | 180 - OSCompareAndSwap(F, E, A)
|
| /xnu-8020.121.3/bsd/sys/ |
| H A D | mcache.h | 89 OSCompareAndSwap(o, n, (volatile UInt32 *)a)
|
| /xnu-8020.121.3/bsd/dev/dtrace/ |
| H A D | fbt_blacklist.c | 70 CLOSURE(OSCompareAndSwap)
|
| H A D | dtrace_glue.c | 899 if (OSCompareAndSwap((UInt32)cmp, (UInt32)new, (volatile UInt32 *)target )) { in dtrace_cas32()
|
| /xnu-8020.121.3/osfmk/x86_64/ |
| H A D | copyio.c | 124 } while (!OSCompareAndSwap(index, (index + 1) % SMAPLOG_BUFFER_SIZE, &smaplog_head)); in smaplog_add_entry()
|
| /xnu-8020.121.3/bsd/kern/ |
| H A D | kern_shutdown.c | 178 if (!OSCompareAndSwap(0, 1, &system_inshutdown)) { in reboot_kernel()
|
| H A D | kdebug_common.c | 536 if (!OSCompareAndSwap(bindx, bindx + 1, &kdsp_actual->kds_bufindx)) { in kernel_debug_write()
|
| H A D | mcache.c | 1379 !OSCompareAndSwap(0, 1, flag)) { in mcache_reap()
|
| /xnu-8020.121.3/osfmk/kern/ |
| H A D | mach_node.c | 107 if (OSCompareAndSwap((UInt32)(HOST_LOCAL_NODE), in mach_node_init()
|
| H A D | ledger.c | 235 while (OSCompareAndSwap(0, 1, &((t)->lt_inuse))) \
|
| H A D | thread_policy.c | 2453 } while (!OSCompareAndSwap(current_override, policy, &thread->iotier_override)); in set_thread_iotier_override()
|
| /xnu-8020.121.3/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable_test.c | 149 if (OSCompareAndSwap(0, 1, &cht_inited)) { in cht_test_init()
|
| /xnu-8020.121.3/iokit/Kernel/ |
| H A D | IOPMrootDomain.cpp | 863 if (OSCompareAndSwap(0, 1, &gWillShutdown)) { in IOPMRootDomainWillShutdown() 866 if (OSCompareAndSwap(0, 1, &gSleepOrShutdownPending)) { in IOPMRootDomainWillShutdown() 1017 if (OSCompareAndSwap(0, 1, &gPagingOff)) { in IOSystemShutdownNotification() 3780 if (!OSCompareAndSwap( 0, 1, &gSleepOrShutdownPending )) { in sysPowerDownHandler() 11846 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in saveFailureData2File() 12157 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in deleteStackshot() 12206 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in takeStackshot() 12397 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in sleepWakeDebugMemAlloc() 12445 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in sleepWakeDebugSpinDumpMemAlloc()
|
| /xnu-8020.121.3/osfmk/vm/ |
| H A D | vm_fault.c | 496 if (!OSCompareAndSwap(orig_sequential, sequential, (UInt32 *)&object->sequential)) { in vm_fault_is_sequential() 7868 if (!OSCompareAndSwap(0, 1, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 7879 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 7983 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose()
|
| /xnu-8020.121.3/osfmk/i386/AT386/ |
| H A D | model_dep.c | 1223 if (OSCompareAndSwap(0, 1, &config_displayed)) { in panic_display_system_configuration()
|
| /xnu-8020.121.3/osfmk/ipc/ |
| H A D | mach_port.c | 2490 if (OSCompareAndSwap(behavior, new_behavior, &task->task_exc_guard)) { in mach_port_guard_ast()
|