| /xnu-8796.141.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-8796.141.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-8796.141.3/bsd/netinet/ |
| H A D | tcp_ccdbg.c | 53 if (OSCompareAndSwap(old_value, new_value, &tcp_ccdbg_unit)) { in tcp_ccdbg_control_connect() 72 if (!OSCompareAndSwap(old_value, new_value, in tcp_ccdbg_control_disconnect()
|
| H A D | in_pcb.c | 2949 OSCompareAndSwap(origwant, newwant, wantcnt); in in_pcb_checkstate() 2966 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate() 2993 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate()
|
| /xnu-8796.141.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-8796.141.3/libkern/gen/ |
| H A D | OSAtomicOperations.c | 68 #undef OSCompareAndSwap 70 OSCompareAndSwap(UInt32 oldValue, UInt32 newValue, volatile UInt32 *address) in OSCompareAndSwap() function
|
| /xnu-8796.141.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 | 462 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu() 481 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu()
|
| /xnu-8796.141.3/bsd/kern/ |
| H A D | kern_shutdown.c | 186 if (!OSCompareAndSwap(0, 1, &system_inshutdown)) { in reboot_kernel() 329 if (!OSCompareAndSwap(0, 1, &final_shutdown_stage)) { in reboot_kernel()
|
| H A D | kdebug_common.c | 545 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-8796.141.3/tools/cocci/ |
| H A D | OSAtomic_rewrite.cocci | 180 - OSCompareAndSwap(F, E, A)
|
| /xnu-8796.141.3/bsd/sys/ |
| H A D | mcache.h | 89 OSCompareAndSwap(o, n, (volatile UInt32 *)a)
|
| /xnu-8796.141.3/bsd/dev/dtrace/ |
| H A D | fbt_blacklist.c | 70 CLOSURE(OSCompareAndSwap)
|
| H A D | dtrace_glue.c | 898 if (OSCompareAndSwap((UInt32)cmp, (UInt32)new, (volatile UInt32 *)target )) { in dtrace_cas32()
|
| /xnu-8796.141.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-8796.141.3/osfmk/kern/ |
| H A D | mach_node.c | 106 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 | 2564 } while (!OSCompareAndSwap(current_override, policy, &thread->iotier_override)); in set_thread_iotier_override()
|
| /xnu-8796.141.3/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable_test.c | 149 if (OSCompareAndSwap(0, 1, &cht_inited)) { in cht_test_init()
|
| /xnu-8796.141.3/iokit/Kernel/ |
| H A D | IOPMrootDomain.cpp | 869 if (OSCompareAndSwap(0, 1, &gWillShutdown)) { in IOPMRootDomainWillShutdown() 872 if (OSCompareAndSwap(0, 1, &gSleepOrShutdownPending)) { in IOPMRootDomainWillShutdown() 1023 if (OSCompareAndSwap(0, 1, &gPagingOff)) { in IOSystemShutdownNotification() 3825 if (!OSCompareAndSwap( 0, 1, &gSleepOrShutdownPending )) { in sysPowerDownHandler() 11957 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in saveFailureData2File() 12268 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in deleteStackshot() 12317 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in takeStackshot() 12510 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in sleepWakeDebugMemAlloc() 12558 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { in sleepWakeDebugSpinDumpMemAlloc()
|
| /xnu-8796.141.3/osfmk/vm/ |
| H A D | vm_fault.c | 489 if (!OSCompareAndSwap(orig_sequential, sequential, (UInt32 *)&object->sequential)) { in vm_fault_is_sequential() 7926 if (!OSCompareAndSwap(0, 1, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 7937 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 8041 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose()
|
| /xnu-8796.141.3/osfmk/i386/AT386/ |
| H A D | model_dep.c | 1228 if (OSCompareAndSwap(0, 1, &config_displayed)) { in panic_display_system_configuration()
|
| /xnu-8796.141.3/osfmk/ipc/ |
| H A D | mach_port.c | 2480 if (OSCompareAndSwap(behavior, new_behavior, &task->task_exc_guard)) { in mach_port_guard_ast()
|
| /xnu-8796.141.3/bsd/nfs/gss/ |
| H A D | gss_krb5_mech.c | 217 if (!OSCompareAndSwap(GSS_KRB5_NOT_INITIALIZED, GSS_KRB5_INITIALIZING, &gss_krb5_mech_initted)) { in gss_krb5_mech_init()
|