Lines Matching refs:plane
203 IORegistryPlane * plane; in makePlane() local
229 plane = new IORegistryPlane; in makePlane()
231 if (plane && plane->init() in makePlane()
234 plane->nameKey = nameKey; in makePlane()
235 plane->keys[kParentSetIndex] = parentKey; in makePlane()
236 plane->keys[kChildSetIndex] = childKey; in makePlane()
237 plane->pathNameKey = pathNameKey; in makePlane()
238 plane->pathLocationKey = pathLocationKey; in makePlane()
241 gIORegistryPlanes->setObject( nameKey, plane ); in makePlane()
244 if (plane) { in makePlane()
245 plane->release(); in makePlane()
262 plane = NULL; in makePlane()
265 return plane; in makePlane()
271 const IORegistryPlane * plane; in getPlane() local
274 plane = (const IORegistryPlane *) gIORegistryPlanes->getObject( name ); in getPlane()
277 return plane; in getPlane()
349 const IORegistryPlane * plane ) in init() argument
379 fRegistryTable->setObject(plane->nameKey, old->fRegistryTable->getObject(plane->nameKey)); in init()
380 fRegistryTable->setObject(plane->pathNameKey, old->fRegistryTable->getObject(plane->pathNameKey)); in init()
381 …fRegistryTable->setObject(plane->pathLocationKey, old->fRegistryTable->getObject(plane->pathLocati… in init()
382 …fRegistryTable->setObject(plane->keys[kParentSetIndex], old->fRegistryTable->getObject(plane->keys… in init()
383 …fRegistryTable->setObject(plane->keys[kChildSetIndex], old->fRegistryTable->getObject(plane->keys[… in init()
386 old->registryTable()->removeObject( plane->keys[kParentSetIndex] ); in init()
387 old->registryTable()->removeObject( plane->keys[kChildSetIndex] ); in init()
389 all = getParentSetReference( plane ); in init()
394 next->makeLink( this, kChildSetIndex, plane ); in init()
395 next->breakLink( old, kChildSetIndex, plane ); in init()
399 all = getChildSetReference( plane ); in init()
404 next->makeLink( this, kParentSetIndex, plane ); in init()
405 next->breakLink( old, kParentSetIndex, plane ); in init()
497 const IORegistryPlane * plane, \
502 if ( (NULL == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
505 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
521 const IORegistryPlane * plane, \
526 if ( (NULL == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
529 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
663 const IORegistryPlane * plane, in propertyExists() argument
666 return NULL != getProperty(aKey, plane, options); in propertyExists()
671 const IORegistryPlane * plane, in propertyExists() argument
674 return NULL != getProperty(aKey, plane, options); in propertyExists()
678 const IORegistryPlane * plane, in propertyExists() argument
681 return NULL != getProperty(aKey, plane, options); in propertyExists()
688 const IORegistryPlane * plane, in propertyHasValue() argument
694 found = copyProperty(aKey, plane, options); in propertyHasValue()
703 const IORegistryPlane * plane, in propertyHasValue() argument
709 found = copyProperty(aKey, plane, options); in propertyHasValue()
718 const IORegistryPlane * plane, in propertyHasValue() argument
724 found = copyProperty(aKey, plane, options); in propertyHasValue()
1008 IORegistryEntry::getName( const IORegistryPlane * plane ) const in getName()
1013 if (plane) { in getName()
1014 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey ); in getName()
1030 const IORegistryPlane * plane ) const in copyName()
1035 if (plane) { in copyName()
1036 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey ); in copyName()
1055 const IORegistryPlane * plane ) const in copyLocation()
1060 if (plane) { in copyLocation()
1061 sym = (OSSymbol *) registryTable()->getObject( plane->pathLocationKey ); in copyLocation()
1075 IORegistryEntry::getLocation( const IORegistryPlane * plane ) const in getLocation()
1077 const OSSymbol * sym = copyLocation( plane ); in getLocation()
1090 const IORegistryPlane * plane ) in setName() argument
1095 if (plane) { in setName()
1096 key = plane->pathNameKey; in setName()
1121 const IORegistryPlane * plane ) in setName() argument
1125 setName( sym, plane ); in setName()
1132 const IORegistryPlane * plane ) in setName() argument
1136 setName( sym, plane ); in setName()
1143 const IORegistryPlane * plane ) in setLocation() argument
1148 if (plane) { in setLocation()
1149 key = plane->pathLocationKey; in setLocation()
1162 const IORegistryPlane * plane ) in setLocation() argument
1166 setLocation( sym, plane ); in setLocation()
1241 const IORegistryPlane * plane ) const in getPath()
1254 if (!path || !length || !plane) { in getPath()
1263 len = plane->nameKey->getLength(); in getPath()
1267 strlcpy( nextComp.discard_bounds(), plane->nameKey->getCStringNoCopy(), len + 1); in getPath()
1271 if ((alias = hasAlias( plane ))) { in getPath()
1282 stack = OSArray::withCapacity( getDepth( plane )); in getPath()
1290 root = gRegistryRoot->getChildEntry( plane ); in getPath()
1294 parent = entry->getParentEntry( plane ); in getPath()
1310 if ((alias = entry->hasAlias( plane ))) { in getPath()
1311 len = plane->nameKey->getLength() + 1; in getPath()
1322 ok = entry->getPathComponent( nextComp.discard_bounds() + 1, &compLen, plane ); in getPath()
1346 const IORegistryPlane * plane ) const in getPathComponent()
1355 compName = getName( plane ); in getPathComponent()
1357 if ((loc = getLocation( plane ))) { in getPathComponent()
1380 const IORegistryPlane * plane ) in matchPathLocation() argument
1387 str = getLocation( plane ); in matchPathLocation()
1430 const IORegistryPlane * plane ) in getChildFromComponent() argument
1441 set = getChildSetReference( plane ); in getChildFromComponent()
1451 str = entry->getName( plane ); in getChildFromComponent()
1467 if ((cmp = entry->matchPathLocation( cmp, plane ))) { in getChildFromComponent()
1480 IORegistryEntry::hasAlias( const IORegistryPlane * plane, in hasAlias() argument
1491 entry = IORegistryEntry::fromPath( path, plane ); in hasAlias()
1499 if ((entry2 = IORegistryEntry::fromPath( path, plane, in hasAlias()
1522 const IORegistryPlane * plane ) in dealiasPath() argument
1545 entry = IORegistryEntry::fromPath( "/aliases", plane ); in dealiasPath()
1565 const IORegistryPlane * plane, in fromPath() argument
1584 if (NULL == plane) { in fromPath()
1589 plane = getPlane( temp ); in fromPath()
1593 if (NULL == plane) { in fromPath()
1599 if ((alias = dealiasPath( &end, plane))) { in fromPath()
1603 aliasEntry = IORegistryEntry::fromPath( alias, plane, in fromPath()
1618 fromEntry = gRegistryRoot->getChildEntry( plane ); in fromPath()
1633 next = where->getChildFromComponent( &path, plane ); in fromPath()
1673 const IORegistryPlane * plane, in childFromPath() argument
1677 return IORegistryEntry::fromPath( path, plane, opath, len, this ); in childFromPath()
1709 const IORegistryPlane * plane ) const in makeLink()
1715 registryTable()->getObject( plane->keys[relation] ))) { in makeLink()
1724 result = registryTable()->setObject( plane->keys[relation], in makeLink()
1739 const IORegistryPlane * plane ) const in breakLink()
1745 registryTable()->getObject( plane->keys[relation]))) { in breakLink()
1749 registryTable()->removeObject( plane->keys[relation]); in breakLink()
1761 const IORegistryPlane * plane ) const in getParentSetReference()
1763 if (plane) { in getParentSetReference()
1765 plane->keys[kParentSetIndex]); in getParentSetReference()
1773 const IORegistryPlane * plane ) const in getParentIterator()
1778 if (!plane) { in getParentIterator()
1783 links = getParentSetReference( plane ); in getParentIterator()
1801 IORegistryEntry::copyParentEntry( const IORegistryPlane * plane ) const in copyParentEntry()
1808 if ((links = getParentSetReference( plane ))) { in copyParentEntry()
1819 IORegistryEntry::getParentEntry( const IORegistryPlane * plane ) const in getParentEntry()
1823 entry = copyParentEntry( plane ); in getParentEntry()
1832 IORegistryEntry::getChildSetReference( const IORegistryPlane * plane ) const in getChildSetReference()
1834 if (plane) { in getChildSetReference()
1836 plane->keys[kChildSetIndex]); in getChildSetReference()
1843 IORegistryEntry::getChildIterator( const IORegistryPlane * plane ) const in getChildIterator()
1848 if (!plane) { in getChildIterator()
1853 links = getChildSetReference( plane ); in getChildIterator()
1871 IORegistryEntry::getChildCount( const IORegistryPlane * plane ) const in getChildCount()
1877 links = getChildSetReference( plane ); in getChildCount()
1888 const IORegistryPlane * plane ) const in copyChildEntry()
1895 if ((links = getChildSetReference( plane ))) { in copyChildEntry()
1912 const IORegistryPlane * plane ) const in getChildEntry()
1916 entry = copyChildEntry( plane ); in getChildEntry()
1928 const IORegistryPlane * plane ) const in applyToChildren()
1934 if (!plane) { in applyToChildren()
1939 array = OSArray::withArray( getChildSetReference( plane )); in applyToChildren()
1954 const IORegistryPlane * plane ) const in applyToParents()
1960 if (!plane) { in applyToParents()
1965 array = OSArray::withArray( getParentSetReference( plane )); in applyToParents()
1979 const IORegistryPlane * plane, in isChild() argument
1987 if ((links = getChildSetReference( plane ))) { in isChild()
1992 if (ret && (links = child->getParentSetReference( plane ))) { in isChild()
2003 const IORegistryPlane * plane, in isParent() argument
2011 if ((links = getParentSetReference( plane ))) { in isParent()
2016 if (ret && (links = parent->getChildSetReference( plane ))) { in isParent()
2026 IORegistryEntry::inPlane( const IORegistryPlane * plane ) const in inPlane()
2032 if (plane) { in inPlane()
2033 ret = (NULL != getParentSetReference( plane )); in inPlane()
2072 const IORegistryPlane * plane ) in attachToParent() argument
2090 ret = makeLink( parent, kParentSetIndex, plane ); in attachToParent()
2092 if ((links = parent->getChildSetReference( plane ))) { in attachToParent()
2098 ret &= parent->makeLink(this, kChildSetIndex, plane); in attachToParent()
2141 ret &= parent->attachToChild( this, plane ); in attachToParent()
2159 const IORegistryPlane * plane ) in attachToChild() argument
2171 ret = makeLink( child, kChildSetIndex, plane ); in attachToChild()
2173 if ((links = child->getParentSetReference( plane ))) { in attachToChild()
2179 ret &= child->makeLink(this, kParentSetIndex, plane); in attachToChild()
2185 ret &= child->attachToParent( this, plane ); in attachToChild()
2193 const IORegistryPlane * plane ) in detachFromParent() argument
2202 breakLink( parent, kParentSetIndex, plane ); in detachFromParent()
2204 if ((links = parent->getChildSetReference( plane ))) { in detachFromParent()
2210 parent->breakLink( this, kChildSetIndex, plane ); in detachFromParent()
2216 parent->detachFromChild( this, plane ); in detachFromParent()
2224 const IORegistryPlane * plane ) in detachFromChild() argument
2233 breakLink( child, kChildSetIndex, plane ); in detachFromChild()
2235 if ((links = child->getParentSetReference( plane ))) { in detachFromChild()
2241 child->breakLink( this, kParentSetIndex, plane ); in detachFromChild()
2247 child->detachFromParent( this, plane ); in detachFromChild()
2254 IORegistryEntry::detachAbove( const IORegistryPlane * plane ) in detachAbove() argument
2259 while ((parent = copyParentEntry( plane ))) { in detachAbove()
2260 detachFromParent( parent, plane ); in detachAbove()
2267 IORegistryEntry::detachAll( const IORegistryPlane * plane ) in detachAll() argument
2273 regIter = IORegistryIterator::iterateOver( this, plane, true ); in detachAll()
2280 detachAbove( plane ); in detachAll()
2286 next->detachAbove( plane ); in detachAll()
2294 IORegistryEntry::getDepth( const IORegistryPlane * plane ) const in getDepth()
2306 while ((parents = next->getParentSetReference( plane ))) { in getDepth()
2320 oneDepth = one->getDepth( plane ); in getDepth()
2348 const IORegistryPlane * plane, in iterateOver() argument
2356 if (NULL == plane) { in iterateOver()
2367 create->plane = plane; in iterateOver()
2378 IORegistryIterator::iterateOver( const IORegistryPlane * plane, in iterateOver() argument
2381 return iterateOver( gRegistryRoot, plane, options ); in iterateOver()
2420 plane = enterPlane; in enterEntry()
2427 enterEntry( plane ); in enterEntry()
2494 where->current->getParentSetReference( plane ) : in getNextObjectFlat()
2495 where->current->getChildSetReference( plane )))) { in getNextObjectFlat()