Lines Matching refs:plane
177 IORegistryPlane * plane;
203 plane = new IORegistryPlane;
205 if( plane && plane->init()
209 plane->nameKey = nameKey;
210 plane->keys[ kParentSetIndex ] = parentKey;
211 plane->keys[ kChildSetIndex ] = childKey;
212 plane->pathNameKey = pathNameKey;
213 plane->pathLocationKey = pathLocationKey;
216 gIORegistryPlanes->setObject( nameKey, plane );
221 if( plane)
222 plane->release();
233 plane = 0;
236 return( plane);
241 const IORegistryPlane * plane;
244 plane = (const IORegistryPlane *) gIORegistryPlanes->getObject( name );
247 return( plane );
299 const IORegistryPlane * plane )
317 old->registryTable()->removeObject( plane->keys[ kParentSetIndex ] );
318 old->registryTable()->removeObject( plane->keys[ kChildSetIndex ] );
320 all = getParentSetReference( plane );
324 next->makeLink( this, kChildSetIndex, plane );
325 next->breakLink( old, kChildSetIndex, plane );
328 all = getChildSetReference( plane );
332 next->makeLink( this, kParentSetIndex, plane );
333 next->breakLink( old, kParentSetIndex, plane );
402 const IORegistryPlane * plane, \
407 if ( (0 == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
410 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
426 const IORegistryPlane * plane, \
431 if ( (0 == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
434 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
481 wrap4(const OSSymbol, const) // getProperty() w/plane definition
482 wrap4(const OSString, const) // getProperty() w/plane definition
483 wrap4(const char, const) // getProperty() w/plane definition
485 wrap5(const OSSymbol, const) // copyProperty() w/plane definition
486 wrap5(const OSString, const) // copyProperty() w/plane definition
487 wrap5(const char, const) // copyProperty() w/plane definition
674 const char * IORegistryEntry::getName( const IORegistryPlane * plane ) const
679 if( plane)
680 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey );
692 const IORegistryPlane * plane ) const
697 if( plane)
698 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey );
712 const IORegistryPlane * plane ) const
717 if( plane)
718 sym = (OSSymbol *) registryTable()->getObject( plane->pathLocationKey );
728 const char * IORegistryEntry::getLocation( const IORegistryPlane * plane ) const
730 const OSSymbol * sym = copyLocation( plane );
742 const IORegistryPlane * plane )
747 if( plane)
748 key = plane->pathNameKey;
759 const IORegistryPlane * plane )
763 setName( sym, plane );
769 const IORegistryPlane * plane )
774 if( plane)
775 key = plane->pathLocationKey;
786 const IORegistryPlane * plane )
790 setLocation( sym, plane );
843 const IORegistryPlane * plane ) const
855 if( !path || !length || !plane)
862 len = plane->nameKey->getLength();
865 strlcpy( nextComp, plane->nameKey->getCStringNoCopy(), len + 1);
869 if( (alias = hasAlias( plane ))) {
880 parent = entry->getParentEntry( plane );
882 // Error if not attached in plane
885 stack = OSArray::withCapacity( getDepth( plane ));
891 root = gRegistryRoot->getChildEntry( plane );
896 parent = entry->getParentEntry( plane );
913 if( (alias = entry->hasAlias( plane ))) {
914 len = plane->nameKey->getLength() + 1;
923 ok = entry->getPathComponent( nextComp + 1, &compLen, plane );
946 const IORegistryPlane * plane ) const
955 compName = getName( plane );
957 if( (loc = getLocation( plane )))
978 const IORegistryPlane * plane )
985 str = getLocation( plane );
1023 const IORegistryPlane * plane )
1034 set = getChildSetReference( plane );
1046 str = entry->getName( plane );
1059 if( (cmp = entry->matchPathLocation( cmp, plane )))
1069 const OSSymbol * IORegistryEntry::hasAlias( const IORegistryPlane * plane,
1080 entry = IORegistryEntry::fromPath( path, plane );
1090 if( (entry2 = IORegistryEntry::fromPath( path, plane,
1111 const IORegistryPlane * plane )
1133 entry = IORegistryEntry::fromPath( "/aliases", plane );
1151 const IORegistryPlane * plane,
1169 if( 0 == plane) {
1170 // get plane name
1174 plane = getPlane( temp );
1178 if( 0 == plane)
1183 if( (alias = dealiasPath( &end, plane))) {
1186 aliasEntry = IORegistryEntry::fromPath( alias, plane,
1200 fromEntry = gRegistryRoot->getChildEntry( plane );
1212 next = where->getChildFromComponent( &path, plane );
1246 const IORegistryPlane * plane,
1250 return( IORegistryEntry::fromPath( path, plane, opath, len, this ));
1279 const IORegistryPlane * plane ) const
1285 registryTable()->getObject( plane->keys[ relation ] ))) {
1296 result = registryTable()->setObject( plane->keys[ relation ],
1307 const IORegistryPlane * plane ) const
1313 registryTable()->getObject( plane->keys[ relation ]))) {
1318 registryTable()->removeObject( plane->keys[ relation ]);
1325 const IORegistryPlane * plane ) const
1327 if( plane)
1329 plane->keys[ kParentSetIndex ]));
1335 const IORegistryPlane * plane ) const
1340 if( !plane)
1344 links = getParentSetReference( plane );
1359 IORegistryEntry * IORegistryEntry::copyParentEntry( const IORegistryPlane * plane ) const
1366 if( (links = getParentSetReference( plane ))) {
1376 IORegistryEntry * IORegistryEntry::getParentEntry( const IORegistryPlane * plane ) const
1380 entry = copyParentEntry( plane );
1387 OSArray * IORegistryEntry::getChildSetReference( const IORegistryPlane * plane ) const
1389 if( plane)
1391 plane->keys[ kChildSetIndex ]));
1396 OSIterator * IORegistryEntry::getChildIterator( const IORegistryPlane * plane ) const
1401 if( !plane)
1405 links = getChildSetReference( plane );
1422 const IORegistryPlane * plane ) const
1429 if( (links = getChildSetReference( plane ))) {
1440 const IORegistryPlane * plane ) const
1444 entry = copyChildEntry( plane );
1453 const IORegistryPlane * plane ) const
1459 if( !plane)
1463 array = OSArray::withArray( getChildSetReference( plane ));
1476 const IORegistryPlane * plane ) const
1482 if( !plane)
1486 array = OSArray::withArray( getParentSetReference( plane ));
1498 const IORegistryPlane * plane,
1506 if( (links = getChildSetReference( plane ))) {
1510 if( ret && (links = child->getParentSetReference( plane )))
1519 const IORegistryPlane * plane,
1528 if( (links = getParentSetReference( plane ))) {
1532 if( ret && (links = parent->getChildSetReference( plane )))
1540 bool IORegistryEntry::inPlane( const IORegistryPlane * plane ) const
1546 if( plane)
1547 ret = (0 != getParentSetReference( plane ));
1550 // Check to see if this is in any plane. If it is in a plane
1585 const IORegistryPlane * plane )
1596 ret = makeLink( parent, kParentSetIndex, plane );
1598 if( (links = parent->getChildSetReference( plane )))
1631 ret &= parent->attachToChild( this, plane );
1637 const IORegistryPlane * plane )
1648 ret = makeLink( child, kChildSetIndex, plane );
1650 if( (links = child->getParentSetReference( plane )))
1658 ret &= child->attachToParent( this, plane );
1664 const IORegistryPlane * plane )
1673 breakLink( parent, kParentSetIndex, plane );
1675 if( (links = parent->getChildSetReference( plane )))
1680 // parent->breakLink( this, kChildSetIndex, plane );
1685 parent->detachFromChild( this, plane );
1691 const IORegistryPlane * plane )
1700 breakLink( child, kChildSetIndex, plane );
1702 if( (links = child->getParentSetReference( plane )))
1710 child->detachFromParent( this, plane );
1715 void IORegistryEntry::detachAbove( const IORegistryPlane * plane )
1720 while( (parent = getParentEntry( plane )))
1721 detachFromParent( parent, plane );
1725 void IORegistryEntry::detachAll( const IORegistryPlane * plane )
1731 regIter = IORegistryIterator::iterateOver( this, plane, true );
1737 detachAbove( plane );
1744 next->detachAbove( plane );
1751 unsigned int IORegistryEntry::getDepth( const IORegistryPlane * plane ) const
1763 while( (parents = next->getParentSetReference( plane ))) {
1777 oneDepth = one->getDepth( plane );
1804 const IORegistryPlane * plane,
1811 if( 0 == plane)
1822 create->plane = plane;
1834 IORegistryIterator::iterateOver( const IORegistryPlane * plane,
1837 return( iterateOver( gRegistryRoot, plane, options ));
1873 plane = enterPlane;
1879 enterEntry( plane );
1940 where->current->getParentSetReference( plane ) :
1941 where->current->getChildSetReference( plane ) )) )