| /xnu-12377.61.12/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-12377.61.12/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-12377.61.12/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 | 3006 OSCompareAndSwap(origwant, newwant, wantcnt); in in_pcb_checkstate() 3023 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate() 3050 } while (!OSCompareAndSwap(origwant, newwant, wantcnt)); in in_pcb_checkstate()
|
| /xnu-12377.61.12/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-12377.61.12/libkern/gen/ |
| H A D | OSAtomicOperations.c | 68 #undef OSCompareAndSwap 70 OSCompareAndSwap(UInt32 oldValue, UInt32 newValue, volatile UInt32 *address) in OSCompareAndSwap() function
|
| /xnu-12377.61.12/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 | 514 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu() 533 if (OSCompareAndSwap(0, 1, &cpuid_reevaluated)) { in init_fpu()
|
| /xnu-12377.61.12/bsd/kern/ |
| H A D | kern_shutdown.c | 195 if (!OSCompareAndSwap(0, 1, &system_inshutdown)) { in reboot_kernel() 343 if (!OSCompareAndSwap(0, 1, &final_shutdown_stage)) { in reboot_kernel()
|
| H A D | kdebug_triage.c | 160 if (OSCompareAndSwap(bindx, bindx + 1, &kdsp_actual->kds_bufindx)) { in _write_triage_record_nopreempt()
|
| H A D | mcache.c | 1384 !OSCompareAndSwap(0, 1, flag)) { in mcache_reap()
|
| /xnu-12377.61.12/tools/cocci/ |
| H A D | OSAtomic_rewrite.cocci | 180 - OSCompareAndSwap(F, E, A)
|
| /xnu-12377.61.12/bsd/dev/dtrace/ |
| H A D | fbt_blacklist.c | 70 CLOSURE(OSCompareAndSwap)
|
| H A D | dtrace_glue.c | 895 if (OSCompareAndSwap((UInt32)cmp, (UInt32)new, (volatile UInt32 *)target )) { in dtrace_cas32()
|
| /xnu-12377.61.12/osfmk/x86_64/ |
| H A D | copyio.c | 124 } while (!OSCompareAndSwap(index, (index + 1) % SMAPLOG_BUFFER_SIZE, &smaplog_head)); in smaplog_add_entry()
|
| /xnu-12377.61.12/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable_test.c | 149 if (OSCompareAndSwap(0, 1, &cht_inited)) { in cht_test_init()
|
| /xnu-12377.61.12/iokit/Kernel/ |
| H A D | IOPMrootDomain.cpp | 876 if (OSCompareAndSwap(0, 1, &gWillShutdown)) { in IOPMRootDomainWillShutdown() 879 if (OSCompareAndSwap(0, 1, &gSleepOrShutdownPending)) { in IOPMRootDomainWillShutdown() 1030 if (OSCompareAndSwap(0, 1, &gPagingOff)) { in IOSystemShutdownNotification() 3986 if (!OSCompareAndSwap( 0, 1, &gSleepOrShutdownPending )) { in sysPowerDownHandler() 12561 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { 12874 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { 12923 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { 13116 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) { 13164 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
|
| /xnu-12377.61.12/osfmk/vm/ |
| H A D | vm_fault.c | 555 if (!OSCompareAndSwap(orig_sequential, sequential, (UInt32 *)&object->sequential)) { in vm_fault_is_sequential() 8700 if (!OSCompareAndSwap(0, 1, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 8711 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose_setup() 8815 if (!OSCompareAndSwap(1, 0, &vmtc_diagnosing)) { in vmtc_text_page_diagnose()
|
| H A D | vm_object.c | 756 atomic_swap = OSCompareAndSwap( in vm_object_deallocate()
|
| /xnu-12377.61.12/osfmk/i386/AT386/ |
| H A D | model_dep.c | 1229 if (OSCompareAndSwap(0, 1, &config_displayed)) { in panic_display_system_configuration()
|
| /xnu-12377.61.12/osfmk/kern/ |
| H A D | ledger.c | 262 while (OSCompareAndSwap(0, 1, &((t)->lt_inuse))) \
|
| H A D | thread_policy.c | 2581 } while (!OSCompareAndSwap(current_override, policy, &thread->iotier_override)); in set_thread_iotier_override()
|
| /xnu-12377.61.12/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()
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | ntstat.c | 1719 } while (!OSCompareAndSwap(_old_val, _avg, _val_addr)); \ 1731 } while (!OSCompareAndSwap(_old_val, _new_val, _val_addr)); \
|
| /xnu-12377.61.12/bsd/nfs/ |
| H A D | nfs_serv.c | 195 if (!OSCompareAndSwap(NFSRV_NOT_INITIALIZED, NFSRV_INITIALIZING, &nfsrv_initted)) { in nfsrv_init()
|