Lines Matching refs:table

417 // The default score is from the property table, & may be altered
667 OSDictionary * table;
677 while( (table = (OSDictionary *) newTables->getFirstObject())) {
680 set = (OSSet *) copyExistingServices( table,
698 if( getDebugFlags( table ) & kIOLogMatch)
701 newTables->removeObject(table);
741 * a property table.
744 bool IOService::matchPropertyTable( OSDictionary * table, SInt32 * score )
746 return( matchPropertyTable(table) );
749 bool IOService::matchPropertyTable( OSDictionary * table )
2766 // pass in score from property table
3008 OSDictionary * table;
3016 table = resourceMatching( str );
3017 else if( (table = OSDynamicCast( OSDictionary, matching )))
3018 table->retain();
3029 waitForService( table );
3513 OSDictionary * table;
3525 OSDictionary * table = ctx->table;
3537 ctx->count += table->getCount();
3538 match = service->matchInternal(table, options, &done);
3601 ctx.table = matching;
4087 OSDictionary * table )
4096 if( !table)
4097 table = OSDictionary::withCapacity( 2 );
4098 if( table)
4099 table->setObject(gIOProviderClassKey, (OSObject *)str );
4102 return( table );
4106 OSDictionary * table )
4114 table = serviceMatching( str, table );
4116 return( table );
4120 OSDictionary * table )
4122 if( !table)
4123 table = OSDictionary::withCapacity( 2 );
4124 if( table)
4125 table->setObject( gIONameMatchKey, (OSObject *)name );
4127 return( table );
4131 OSDictionary * table )
4139 table = nameMatching( str, table );
4141 return( table );
4145 OSDictionary * table )
4147 table = serviceMatching( gIOResourcesKey, table );
4148 if( table)
4149 table->setObject( gIOResourceMatchKey, (OSObject *) str );
4151 return( table );
4155 OSDictionary * table )
4163 table = resourceMatching( str, table );
4166 return( table );
4170 OSDictionary * table )
4179 if( !table)
4180 table = OSDictionary::withCapacity( 2 );
4181 if( table)
4182 table->setObject( gIOPropertyMatchKey, properties );
4186 return( table );
4190 OSDictionary * table )
4198 if( !table)
4199 table = OSDictionary::withCapacity( 2 );
4200 if( table)
4201 table->setObject( gIORegistryEntryIDKey, num );
4206 return( table );
4328 bool IOResources::matchPropertyTable( OSDictionary * table )
4336 prop = table->getObject( gIOResourceMatchKey );
4571 /* Helper to add a location matching dict to the table */
4573 OSDictionary * IOService::addLocation( OSDictionary * table )
4577 if( !table)
4582 table->setObject( gIOLocationMatchKey, dict );
4605 bool IOService::matchInternal(OSDictionary * table, uint32_t options, uint32_t * did)
4619 count = table->getCount();
4621 str = OSDynamicCast(OSString, table->getObject(gIOProviderClassKey));
4632 obj = table->getObject( gIONameMatchKey );
4639 table->setObject( gIONameMatchedKey, matched );
4645 str = OSDynamicCast( OSString, table->getObject( gIOLocationMatchKey ));
4659 obj = table->getObject( gIOPropertyMatchKey );
4691 str = OSDynamicCast( OSString, table->getObject( gIOPathMatchKey ));
4701 num = OSDynamicCast( OSNumber, table->getObject( gIORegistryEntryIDKey ));
4708 num = OSDynamicCast( OSNumber, table->getObject( gIOMatchedServiceCountKey ));
4732 obj = table->getObject(key); \
4754 bool IOService::passiveMatch( OSDictionary * table, bool changesOK )
4756 return (matchPassive(table, changesOK ? kIOServiceChangesOK : 0));
4759 bool IOService::matchPassive(OSDictionary * table, uint32_t options)
4770 assert( table );
4773 OSDictionary * root = table;
4781 count = table->getCount();
4784 match = where->matchInternal(table, options, &done);
4785 // don't call family if we've done all the entries in the table
4789 // pass in score from property table
4790 score = IOServiceObjectOrder( table, (void *) gIOProbeScoreKey);
4793 match = where->matchPropertyTable( table, &score );
4797 if( kIOLogMatch & getDebugFlags( table ))
4807 table->setObject( gIOProbeScoreKey, newPri );
4816 table->getObject( gIOParentMatchKey ));
4821 table = nextTable;
4825 table = OSDynamicCast(OSDictionary,
4826 table->getObject( gIOLocationMatchKey ));
4827 if (table) {
5387 // Set the interruptController and interruptSource in the nub's table.