Lines Matching refs:dext
4281 OSKext *dext = OSDynamicCast(OSKext, sKextsByID->getObject(dextIdentifier->getCStringNoCopy())); in lookupDextWithIdentifier() local
4282 if (dext != NULL && dext->isDriverKit()) { in lookupDextWithIdentifier()
4283 if (dext->dextUniqueID == NULL || dext->dextUniqueID->isEqualTo(dextUniqueIdentifier)) { in lookupDextWithIdentifier()
4284 foundDext.reset(dext, OSRetain); in lookupDextWithIdentifier()
5542 OSKext::removeDext(OSKext *dext) in removeDext() argument
5544 __assert_only bool dext_isDext = dext->isDriverKit(); in removeDext()
5554 dext->flags.dextToReplace = 1; in removeDext()
5557 dext->getIdentifierCString(), /* unload */ false, /* asynchronous */ true); in removeDext()
5559 OSKextLog(dext, in removeDext()
5563 dext->getIdentifierCString(), result); in removeDext()
5566 dext->removePersonalitiesFromCatalog(); in removeDext()
5567 sDriverKitToUpgradeByID->removeObject(dext->getIdentifier()); in removeDext()
5576 if (dext->dextLaunchedCount == 0) { in removeDext()
5577 replaceDextInternal(dext, NULL); in removeDext()
5585 OSKext::incrementDextLaunchCount(OSKext *dext, OSData *dextUniqueIDToMatch) in incrementDextLaunchCount() argument
5588 __assert_only bool isDext = dext->isDriverKit(); in incrementDextLaunchCount()
5591 const char * dextIDCS = dext->getIdentifierCString(); in incrementDextLaunchCount()
5592 OSData *myDextUniqueID = dext->getDextUniqueID(); in incrementDextLaunchCount()
5595 OSKextLog(dext, in incrementDextLaunchCount()
5615 if (dext->flags.dextToReplace == 0 || dext->dextLaunchedCount > 0) { in incrementDextLaunchCount()
5616 if (dext->dextLaunchedCount == kOSKextMaxDextLaunchedCount) { in incrementDextLaunchCount()
5617 OSKextLog(dext, in incrementDextLaunchCount()
5622 dext->dextLaunchedCount++; in incrementDextLaunchCount()
5625 OSKextLog(dext, in incrementDextLaunchCount()
5631 OSKextLog(dext, in incrementDextLaunchCount()
5637 OSKextLog(dext, in incrementDextLaunchCount()
5662 OSKext* dext = NULL; in decrementDextLaunchCount() local
5679 dext = OSDynamicCast(OSKext, sKextsByID->getObject(dextIDCS)); in decrementDextLaunchCount()
5680 if (!dext || !dext->isDriverKit()) { in decrementDextLaunchCount()
5689 myDextUniqueID = dext->getDextUniqueID(); in decrementDextLaunchCount()
5691 OSKextLog(dext, in decrementDextLaunchCount()
5701 if (dext->dextLaunchedCount == 0) { in decrementDextLaunchCount()
5702 OSKextLog(dext, in decrementDextLaunchCount()
5710 dext->dextLaunchedCount--; in decrementDextLaunchCount()
5712 OSKextLog(dext, in decrementDextLaunchCount()
5717 if (dext->dextLaunchedCount == 0 && dext->flags.dextToReplace == 1) { in decrementDextLaunchCount()
5723 OSKextLog(dext, in decrementDextLaunchCount()
5727 replaceDextInternal(dext, newdext); in decrementDextLaunchCount()
5732 OSKextLog(dext, in decrementDextLaunchCount()
5736 replaceDextInternal(dext, NULL); in decrementDextLaunchCount()