Lines Matching defs:plane

188     IORegistryPlane *	plane;
214 plane = new IORegistryPlane;
216 if( plane && plane->init()
220 plane->nameKey = nameKey;
221 plane->keys[ kParentSetIndex ] = parentKey;
222 plane->keys[ kChildSetIndex ] = childKey;
223 plane->pathNameKey = pathNameKey;
224 plane->pathLocationKey = pathLocationKey;
227 gIORegistryPlanes->setObject( nameKey, plane );
232 if( plane)
233 plane->release();
244 plane = 0;
247 return( plane);
252 const IORegistryPlane * plane;
255 plane = (const IORegistryPlane *) gIORegistryPlanes->getObject( name );
258 return( plane );
322 const IORegistryPlane * plane )
343 old->registryTable()->removeObject( plane->keys[ kParentSetIndex ] );
344 old->registryTable()->removeObject( plane->keys[ kChildSetIndex ] );
346 all = getParentSetReference( plane );
350 next->makeLink( this, kChildSetIndex, plane );
351 next->breakLink( old, kChildSetIndex, plane );
354 all = getChildSetReference( plane );
358 next->makeLink( this, kParentSetIndex, plane );
359 next->breakLink( old, kParentSetIndex, plane );
423 const IORegistryPlane * plane, \
428 if ( (0 == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
431 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
447 const IORegistryPlane * plane, \
452 if ( (0 == obj) && plane && (options & kIORegistryIterateRecursively) ) { \
455 iter = IORegistryIterator::iterateOver( entry, plane, options ); \
502 wrap4(const OSSymbol, const) // getProperty() w/plane definition
503 wrap4(const OSString, const) // getProperty() w/plane definition
504 wrap4(const char, const) // getProperty() w/plane definition
506 wrap5(const OSSymbol, const) // copyProperty() w/plane definition
507 wrap5(const OSString, const) // copyProperty() w/plane definition
508 wrap5(const char, const) // copyProperty() w/plane definition
715 const char * IORegistryEntry::getName( const IORegistryPlane * plane ) const
720 if( plane)
721 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey );
733 const IORegistryPlane * plane ) const
738 if( plane)
739 sym = (OSSymbol *) registryTable()->getObject( plane->pathNameKey );
753 const IORegistryPlane * plane ) const
758 if( plane)
759 sym = (OSSymbol *) registryTable()->getObject( plane->pathLocationKey );
769 const char * IORegistryEntry::getLocation( const IORegistryPlane * plane ) const
771 const OSSymbol * sym = copyLocation( plane );
783 const IORegistryPlane * plane )
788 if( plane)
789 key = plane->pathNameKey;
800 const IORegistryPlane * plane )
804 setName( sym, plane );
810 const IORegistryPlane * plane )
815 if( plane)
816 key = plane->pathLocationKey;
827 const IORegistryPlane * plane )
831 setLocation( sym, plane );
884 const IORegistryPlane * plane ) const
896 if( !path || !length || !plane)
903 len = plane->nameKey->getLength();
906 strlcpy( nextComp, plane->nameKey->getCStringNoCopy(), len + 1);
910 if( (alias = hasAlias( plane ))) {
921 parent = entry->getParentEntry( plane );
923 // Error if not attached in plane
926 stack = OSArray::withCapacity( getDepth( plane ));
932 root = gRegistryRoot->getChildEntry( plane );
937 parent = entry->getParentEntry( plane );
954 if( (alias = entry->hasAlias( plane ))) {
955 len = plane->nameKey->getLength() + 1;
964 ok = entry->getPathComponent( nextComp + 1, &compLen, plane );
987 const IORegistryPlane * plane ) const
996 compName = getName( plane );
998 if( (loc = getLocation( plane )))
1019 const IORegistryPlane * plane )
1026 str = getLocation( plane );
1064 const IORegistryPlane * plane )
1075 set = getChildSetReference( plane );
1087 str = entry->getName( plane );
1100 if( (cmp = entry->matchPathLocation( cmp, plane )))
1110 const OSSymbol * IORegistryEntry::hasAlias( const IORegistryPlane * plane,
1121 entry = IORegistryEntry::fromPath( path, plane );
1131 if( (entry2 = IORegistryEntry::fromPath( path, plane,
1152 const IORegistryPlane * plane )
1174 entry = IORegistryEntry::fromPath( "/aliases", plane );
1192 const IORegistryPlane * plane,
1210 if( 0 == plane) {
1211 // get plane name
1215 plane = getPlane( temp );
1219 if( 0 == plane)
1224 if( (alias = dealiasPath( &end, plane))) {
1227 aliasEntry = IORegistryEntry::fromPath( alias, plane,
1241 fromEntry = gRegistryRoot->getChildEntry( plane );
1253 next = where->getChildFromComponent( &path, plane );
1287 const IORegistryPlane * plane,
1291 return( IORegistryEntry::fromPath( path, plane, opath, len, this ));
1320 const IORegistryPlane * plane ) const
1326 registryTable()->getObject( plane->keys[ relation ] ))) {
1337 result = registryTable()->setObject( plane->keys[ relation ],
1348 const IORegistryPlane * plane ) const
1354 registryTable()->getObject( plane->keys[ relation ]))) {
1359 registryTable()->removeObject( plane->keys[ relation ]);
1366 const IORegistryPlane * plane ) const
1368 if( plane)
1370 plane->keys[ kParentSetIndex ]));
1376 const IORegistryPlane * plane ) const
1381 if( !plane)
1385 links = getParentSetReference( plane );
1400 IORegistryEntry * IORegistryEntry::copyParentEntry( const IORegistryPlane * plane ) const
1407 if( (links = getParentSetReference( plane ))) {
1417 IORegistryEntry * IORegistryEntry::getParentEntry( const IORegistryPlane * plane ) const
1421 entry = copyParentEntry( plane );
1428 OSArray * IORegistryEntry::getChildSetReference( const IORegistryPlane * plane ) const
1430 if( plane)
1432 plane->keys[ kChildSetIndex ]));
1437 OSIterator * IORegistryEntry::getChildIterator( const IORegistryPlane * plane ) const
1442 if( !plane)
1446 links = getChildSetReference( plane );
1463 const IORegistryPlane * plane ) const
1470 if( (links = getChildSetReference( plane ))) {
1481 const IORegistryPlane * plane ) const
1485 entry = copyChildEntry( plane );
1494 const IORegistryPlane * plane ) const
1500 if( !plane)
1504 array = OSArray::withArray( getChildSetReference( plane ));
1517 const IORegistryPlane * plane ) const
1523 if( !plane)
1527 array = OSArray::withArray( getParentSetReference( plane ));
1539 const IORegistryPlane * plane,
1547 if( (links = getChildSetReference( plane ))) {
1551 if( ret && (links = child->getParentSetReference( plane )))
1560 const IORegistryPlane * plane,
1569 if( (links = getParentSetReference( plane ))) {
1573 if( ret && (links = parent->getChildSetReference( plane )))
1581 bool IORegistryEntry::inPlane( const IORegistryPlane * plane ) const
1587 if( plane)
1588 ret = (0 != getParentSetReference( plane ));
1591 // Check to see if this is in any plane. If it is in a plane
1626 const IORegistryPlane * plane )
1640 ret = makeLink( parent, kParentSetIndex, plane );
1642 if( (links = parent->getChildSetReference( plane )))
1675 ret &= parent->attachToChild( this, plane );
1689 const IORegistryPlane * plane )
1700 ret = makeLink( child, kChildSetIndex, plane );
1702 if( (links = child->getParentSetReference( plane )))
1710 ret &= child->attachToParent( this, plane );
1716 const IORegistryPlane * plane )
1725 breakLink( parent, kParentSetIndex, plane );
1727 if( (links = parent->getChildSetReference( plane )))
1732 // parent->breakLink( this, kChildSetIndex, plane );
1737 parent->detachFromChild( this, plane );
1743 const IORegistryPlane * plane )
1752 breakLink( child, kChildSetIndex, plane );
1754 if( (links = child->getParentSetReference( plane )))
1762 child->detachFromParent( this, plane );
1767 void IORegistryEntry::detachAbove( const IORegistryPlane * plane )
1772 while( (parent = getParentEntry( plane )))
1773 detachFromParent( parent, plane );
1777 void IORegistryEntry::detachAll( const IORegistryPlane * plane )
1783 regIter = IORegistryIterator::iterateOver( this, plane, true );
1789 detachAbove( plane );
1796 next->detachAbove( plane );
1803 unsigned int IORegistryEntry::getDepth( const IORegistryPlane * plane ) const
1815 while( (parents = next->getParentSetReference( plane ))) {
1829 oneDepth = one->getDepth( plane );
1856 const IORegistryPlane * plane,
1863 if( 0 == plane)
1874 create->plane = plane;
1886 IORegistryIterator::iterateOver( const IORegistryPlane * plane,
1889 return( iterateOver( gRegistryRoot, plane, options ));
1925 plane = enterPlane;
1931 enterEntry( plane );
1992 where->current->getParentSetReference( plane ) :
1993 where->current->getChildSetReference( plane ) )) )