Home
last modified time | relevance | path

Searched refs:OSRetain (Results 1 – 19 of 19) sorted by relevance

/xnu-11215/libkern/libkern/c++/
H A DOSSharedPtr.h63 inline constexpr auto OSRetain = libkern::retain; variable
93 OSSharedPtr<Destination> dest(raw, OSRetain); in OSDynamicPtrCast()
120 OSTaggedSharedPtr<Destination, Tag> dest(raw, OSRetain); in OSDynamicPtrCast()
129 return OSSharedPtr<To>(static_cast<To*>(ptr.get()), OSRetain); in OSStaticPtrCast()
143 return OSSharedPtr<To>(const_cast<To*>(ptr.get()), OSRetain); in OSConstPtrCast()
/xnu-11215/libkern/c++/
H A DOSCollection.cpp96 return OSSharedPtr<OSCollection>(reinterpret_cast<OSCollection *>(obj), OSRetain); in copyCollection()
102 return OSSharedPtr<OSCollection>(this, OSRetain); in copyCollection()
H A DOSArray.cpp106 array[count++].reset(newObject, OSRetain); in initWithObjects()
279 array[index].reset(anObject, OSRetain); in setObject()
314 array[count++].reset(newObject, OSRetain); in merge()
330 array[index].reset(anObject, OSRetain); in replaceObject()
H A DOSDictionary.cpp390 dictionary[i].value.reset(anObject, OSRetain); in setObject()
404 dictionary[i].key.reset(aKey, OSRetain); in setObject()
405 dictionary[i].value.reset(anObject, OSRetain); in setObject()
817 newDict->dictionary[i].value.reset(newColl.get(), OSRetain); in copyCollection()
H A DOSSymbol.cpp428 OSSharedPtr<const OSSymbol> aStringNew((const OSSymbol *)aString, OSRetain); in withString()
539 OSSharedPtr<const OSSymbol> aStringNew((const OSSymbol *)aString, OSRetain); in existingSymbolForString()
H A DOSCollectionIterator.cpp49 collection.reset(inColl, OSRetain); in OSDefineMetaClassAndStructors()
H A DOSOrderedSet.cpp227 array[index].obj.reset(anObject, OSRetain); in setObject()
H A DOSKext.cpp3001 infoDict.reset(aDictionary, OSRetain); in setInfoDictionaryAndPath()
3039 path.reset(aPath, OSRetain); in setInfoDictionaryAndPath()
4284 foundDext.reset(dext, OSRetain); in lookupDextWithIdentifier()
4308 foundKext.reset(thisKext, OSRetain); in lookupKextWithLoadTag()
4352 foundKext.reset(thisKext, OSRetain); in lookupKextWithAddress()
4367 foundKext.reset(thisKext, OSRetain); in lookupKextWithAddress()
4374 foundKext.reset(sKernelKext, OSRetain); in lookupKextWithAddress()
4393 foundKext.reset(thisKext, OSRetain); in lookupKextWithAddress()
4488 foundKext.reset(thisKext, OSRetain); in lookupKextWithUUID()
7783 linkedExecutable.reset(anExecutable, OSRetain);
[all …]
/xnu-11215/iokit/Kernel/
H A DIONVRAMV3Handler.cpp684 …tries[entry].value.reset(OSDynamicCast(OSData, _varDict->getObject(canonicalKey.get())), OSRetain); in handleEphDM()
1102 _varEntries.reset(remainingEntries.get(), OSRetain); in reclaim()
1236 _varEntries.reset(remainingEntries.get(), OSRetain); in syncRaw()
1316 _varEntries.reset(remainingEntries.get(), OSRetain); in syncBlock()
1508 tmpObject.reset(kOSBooleanTrue, OSRetain); in convertPropToObject()
1510 tmpObject.reset(kOSBooleanFalse, OSRetain); in convertPropToObject()
H A DIODMAEventSource.cpp62 dmaController.reset(IODMAController::getController(dmaProvider, inDMAIndex), OSRetain); in init()
H A DIONVRAM.cpp927 existingEntry.reset(OSDynamicCast(OSDictionary, _stats->getObject(entryKey)), OSRetain); in logVariable()
963 currentCount.reset(OSDynamicCast(OSNumber, existingEntry->getObject(opCountKey)), OSRetain); in logVariable()
1718 theObject.reset(_varDict->getObject(canonicalKey.get()), OSRetain); in copyPropertyWithGUIDAndName()
1792 OSSharedPtr<OSObject> sharedObject(anObject, OSRetain); in setPropertyWithGUIDAndName()
H A DIONVRAMCHRPHandler.cpp1042 tmpObject.reset(kOSBooleanTrue, OSRetain); in convertPropToObject()
1044 tmpObject.reset(kOSBooleanFalse, OSRetain); in convertPropToObject()
H A DIODMACommand.cpp337 fMapper.reset(mapper, OSRetain); in setSpecification()
438 fMemory.reset(const_cast<IOMemoryDescriptor *>(mem), OSRetain); in setMemoryDescriptor()
H A DIOPMrootDomain.cpp2234 request->data.service.reset(service, OSRetain); // released by synchronizeAggressives() in joinAggressiveness()
4454 _nextScheduledAlarmType.reset(type, OSRetain);
4500 _nextScheduledAlarmType.reset(type, OSRetain);
4900 obj.reset(fPMSettingsDict->getObject(whichSetting), OSRetain);
5632 obj.reset(optionsDict->getObject(key), OSRetain);
5978 wrangler.reset(service, OSRetain);
8153 systemCapabilityNotifier.reset((IONotifier *) arg0, OSRetain);
9624 notifier->clientName.reset(notifier->identifier.get(), OSRetain);
9665 notifierObject.reset(notifier, OSRetain);
10266 service.reset(OSDynamicCast(IOService, inner->getAnyObject()), OSRetain);
H A DIOService.cpp6782 return OSSharedPtr<OSDictionary>(result, OSRetain); in serviceMatching()
6812 return OSSharedPtr<OSDictionary>(result, OSRetain); in serviceMatching()
6840 return OSSharedPtr<OSDictionary>(result, OSRetain); in nameMatching()
6870 return OSSharedPtr<OSDictionary>(result, OSRetain); in nameMatching()
6896 return OSSharedPtr<OSDictionary>(result, OSRetain); in resourceMatching()
6927 return OSSharedPtr<OSDictionary>(result, OSRetain); in resourceMatching()
6965 return OSSharedPtr<OSDictionary>(result, OSRetain); in propertyMatching()
7004 return OSSharedPtr<OSDictionary>(result, OSRetain); in registryEntryIDMatching()
H A DIOMemoryDescriptor.cpp226 memDesc.reset(ref->dp.memory, OSRetain); in device_data_action()
1863 self.reset(originalMD, OSRetain); in withPersistentMemoryDescriptor()
5153 OSSharedPtr<IOMemoryDescriptor> tempval(_memory, OSRetain); in setMemoryDescriptor()
5631 newMapping->fSuperMap.reset(this, OSRetain); in copyCompatible()
5945 mapDesc.reset(this, OSRetain); in makeMapping()
H A DIOUserClient.cpp2162 targetP.reset(targetPRaw, OSRetain); in getTargetAndMethodForIndex()
2185 targetP.reset(targetPRaw, OSRetain); in getAsyncTargetAndMethodForIndex()
H A DIOUserServer.cpp4493 pCls.reset(pClsRaw, OSRetain); in registerClass()
/xnu-11215/iokit/Tests/
H A DTests.cpp1532 OSTaggedSharedPtr<OSCollection, OSCollection> taggedDict(dict.get(), OSRetain); in OSDynamicPtrCastTests()
1537 OSTaggedSharedPtr<OSCollection, OSCollection> taggedDict(dict.get(), OSRetain); in OSDynamicPtrCastTests()