Lines Matching refs:iter

1420 		inst->iter = _iter;  in iterator()
1433 iter->release(); in free()
1449 while ((next = (IOService *) iter->getNextObject())) { in getNextObject()
1466 return iter->isValid(); in isValid()
1476 iter->reset(); in reset()
2551 OSIterator * iter; in terminatePhase1() local
2688 iter = victim->getClientIterator(); in terminatePhase1()
2689 if (iter) { in terminatePhase1()
2690 while ((client = (IOService *) iter->getNextObject())) { in terminatePhase1()
2713 iter->release(); in terminatePhase1()
2988 OSIterator * iter; in actionWillTerminate() local
2993 iter = victim->getClientIterator(); in actionWillTerminate()
2994 if (iter) { in actionWillTerminate()
2995 while ((client = (IOService *) iter->getNextObject())) { in actionWillTerminate()
3013 iter->release(); in actionWillTerminate()
3022 OSIterator * iter; in actionDidTerminate() local
3029 iter = victim->getClientIterator(); in actionDidTerminate()
3030 if (iter) { in actionDidTerminate()
3031 while ((client = (IOService *) iter->getNextObject())) { in actionDidTerminate()
3051 iter->release(); in actionDidTerminate()
3061 OSIterator * iter; in actionWillStop() local
3066 iter = victim->getProviderIterator(); in actionWillStop()
3067 if (iter) { in actionWillStop()
3068 while ((provider = (IOService *) iter->getNextObject())) { in actionWillStop()
3082 iter->release(); in actionWillStop()
3091 OSIterator * iter; in actionDidStop() local
3096 iter = victim->getProviderIterator(); in actionDidStop()
3097 if (iter) { in actionDidStop()
3098 while ((provider = (IOService *) iter->getNextObject())) { in actionDidStop()
3117 iter->release(); in actionDidStop()
3172 OSIterator * iter; in terminateWorker() local
3228 if (doPhase2 && (iter = victim->getClientIterator())) { in terminateWorker()
3229 while (doPhase2 && (client = (IOService *) iter->getNextObject())) { in terminateWorker()
3244 iter->release(); in terminateWorker()
3413 OSIterator * iter; in finalize() local
3417 iter = getProviderIterator(); in finalize()
3418 assert( iter ); in finalize()
3420 if (iter) { in finalize()
3421 while ((provider = (IOService *) iter->getNextObject())) { in finalize()
3450 iter->release(); in finalize()
3738 OSIterator * iter; in copyClientWithCategory() local
3741 iter = getClientIterator(); in copyClientWithCategory()
3742 if (iter) { in copyClientWithCategory()
3743 while ((service = (IOService *) iter->getNextObject())) { in copyClientWithCategory()
3756 iter->release(); in copyClientWithCategory()
3861 OSIterator * iter; in probeCandidates() local
4176 iter = OSCollectionIterator::withCollection( startDict ); in probeCandidates()
4177 assert(startDict || !iter); in probeCandidates()
4178 if (iter) { in probeCandidates()
4179 while ((category = (const OSSymbol *) iter->getNextObject())) { in probeCandidates()
4240 iter->release(); in probeCandidates()
4353 OSIterator * iter; in userSpaceWillReboot() local
4361 iter = IORegistryIterator::iterateOver(gIOServicePlane, kIORegistryIterateRecursively); in userSpaceWillReboot()
4362 if (iter) { in userSpaceWillReboot()
4364 iter->reset(); in userSpaceWillReboot()
4365 while ((service = (IOService *)iter->getNextObject())) { in userSpaceWillReboot()
4378 } while (!service && !iter->isValid()); in userSpaceWillReboot()
4380 OSSafeReleaseNULL(iter); in userSpaceWillReboot()
5124 OSIterator * iter; in checkResources() local
5133 iter = OSCollectionIterator::withCollection( set ); in checkResources()
5134 ok = (NULL != iter); in checkResources()
5135 while (ok && (obj = iter->getNextObject())) { in checkResources()
5138 if (iter) { in checkResources()
5139 iter->release(); in checkResources()
5346 OSIterator * iter; in doServiceMatch() local
5385 iter = OSCollectionIterator::withCollection((OSOrderedSet *) in doServiceMatch()
5387 if (iter) { in doServiceMatch()
5389 iter->getNextObject())) { in doServiceMatch()
5395 iter->release(); in doServiceMatch()
5704 IORegistryIterator * iter; in waitQuietWithOptions() local
5726 iter = IORegistryIterator::iterateOver(this, gIOServicePlane, kIORegistryIterateRecursively); in waitQuietWithOptions()
5728 if (iter) { in waitQuietWithOptions()
5729 set = iter->iterateAll(); in waitQuietWithOptions()
5785 OSSafeReleaseNULL(iter); in waitQuietWithOptions()
6094 OSIterator * iter; in copyExistingServices() local
6175 iter = IORegistryIterator::iterateOver( gIOServicePlane, in copyExistingServices()
6177 if (iter) { in copyExistingServices()
6179 iter->reset(); in copyExistingServices()
6180 while ((service = (IOService *) iter->getNextObject())) { in copyExistingServices()
6197 } while (!service && !iter->isValid()); in copyExistingServices()
6198 iter->release(); in copyExistingServices()
6222 iter = OSCollectionIterator::withCollection((OSSet *)current ); in copyExistingServices()
6224 current = iter; in copyExistingServices()
6234 OSIterator * iter; in getMatchingServices() local
6239 iter = (OSIterator *) copyExistingServices( matching, in getMatchingServices()
6244 return iter; in getMatchingServices()
6707 OSIterator * iter; in copyNotifiers() local
6717 iter = OSCollectionIterator::withCollection((OSOrderedSet *) in copyNotifiers()
6720 if (iter) { in copyNotifiers()
6721 while ((notify = (_IOServiceNotifier *) iter->getNextObject())) { in copyNotifiers()
6732 iter->release(); in copyNotifiers()
7457 OSCollectionIterator * iter; in setProperties() local
7471 iter = OSCollectionIterator::withCollection( dict); in setProperties()
7472 if (NULL == iter) { in setProperties()
7476 while ((key = OSDynamicCast(OSSymbol, iter->getNextObject()))) { in setProperties()
7491 iter->release(); in setProperties()
7557 OSCollectionIterator * iter; in compareProperties() local
7565 iter = OSCollectionIterator::withCollection( keys ); in compareProperties()
7567 if (iter) { in compareProperties()
7568 while (ok && (key = OSDynamicCast( OSString, iter->getNextObject()))) { in compareProperties()
7572 iter->release(); in compareProperties()
7737 OSIterator * iter; in matchInternal() local
7746 iter = NULL; in matchInternal()
7748 iter = OSCollectionIterator::withCollection( in matchInternal()
7753 || (iter && (NULL != (nextDict = OSDynamicCast(OSDictionary, in matchInternal()
7754 iter->getNextObject()))))) { in matchInternal()
7761 if (iter) { in matchInternal()
7762 iter->release(); in matchInternal()
7773 OSIterator * iter; in matchInternal() local
7782 iter = NULL; in matchInternal()
7784 iter = OSCollectionIterator::withCollection( in matchInternal()
7789 || (iter && (NULL != (nextKey = OSDynamicCast(OSString, in matchInternal()
7790 iter->getNextObject()))))) { in matchInternal()
7797 if (iter) { in matchInternal()
7798 iter->release(); in matchInternal()
7833 OSIterator * iter; in matchInternal() local
7838 iter = getClientIterator(); in matchInternal()
7839 if (iter) { in matchInternal()
7840 while ((service = (IOService *) iter->getNextObject())) { in matchInternal()
7849 iter->release(); in matchInternal()