Home
last modified time | relevance | path

Searched refs:newCount (Results 1 – 5 of 5) sorted by relevance

/xnu-11215/libkern/c++/
H A DOSObject.cpp113 UInt32 newCount; in taggedTryRetain() local
145 newCount = origCount + inc; in taggedTryRetain()
146 } while (!OSCompareAndSwap(origCount, newCount, const_cast<UInt32 *>(countP))); in taggedTryRetain()
171 UInt32 newCount; in taggedRelease() local
205 newCount = 0xffff; in taggedRelease()
207 newCount = actualCount; in taggedRelease()
209 } while (!OSCompareAndSwap(origCount, newCount, const_cast<UInt32 *>(countP))); in taggedRelease()
228 if (newCount == 0xffff) { in taggedRelease()
H A DOSArray.cpp262 unsigned int newCount = count + 1; in setObject() local
269 if (newCount > capacity && newCount > ensureCapacity(newCount)) { in setObject()
295 unsigned int newCount = count + otherCount; in merge() local
301 if (newCount < count) { in merge()
306 if (newCount > capacity && newCount > ensureCapacity(newCount)) { in merge()
H A DOSOrderedSet.cpp206 unsigned int newCount = count + 1; in setObject() local
217 if (newCount > capacity && newCount > ensureCapacity(newCount)) { in setObject()
H A DOSMetaClass.cpp621 int newCount = oldCount + kKModCapacityIncrement; in OSMetaClass() local
623 sStalled->classes = kalloc_type_tag(OSMetaClass *, newCount, in OSMetaClass()
631 sStalled->capacity = newCount; in OSMetaClass()
635 OSMETA_ACCUMSIZE(sizeof(OSMetaClass *) * (newCount - oldCount)); in OSMetaClass()
/xnu-11215/iokit/Kernel/
H A DIOPMrootDomain.cpp3262 unsigned int newCount; in updatePreventIdleSleepListInternal() local
3293 newCount = idleSleepPreventersCount(); in updatePreventIdleSleepListInternal()
3295 if ((oldCount == 0) && (newCount != 0)) { in updatePreventIdleSleepListInternal()
3301 } else if ((oldCount != 0) && (newCount == 0)) { in updatePreventIdleSleepListInternal()
3309 &newCount, sizeof(newCount)); in updatePreventIdleSleepListInternal()
3341 unsigned int oldCount, newCount; in updatePreventSystemSleepList() local
3376 newCount = preventSystemSleepList->getCount(); in updatePreventSystemSleepList()
3377 if (newCount) { in updatePreventSystemSleepList()
3384 &newCount, sizeof(newCount)); in updatePreventSystemSleepList()