• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/IOHIDFamily-606.1.7/IOHIDFamily/

Lines Matching defs:matching

44 bool CompareProperty( IOService * owner, OSDictionary * matching, const char * key, SInt32 * score, SInt32 increment)
53 value = matching->getObject( key );
75 bool CompareDeviceUsage( IOService * owner, OSDictionary * matching, SInt32 * score, SInt32 increment)
87 usage = matching->getObject( kIOHIDDeviceUsageKey );
88 usagePage = matching->getObject( kIOHIDDeviceUsagePageKey );
131 bool CompareDeviceUsagePairs( IOService * owner, OSDictionary * matching, SInt32 * score, SInt32 increment)
141 pairArray = OSDynamicCast(OSArray, matching->getObject( kIOHIDDeviceUsagePairsKey ));
162 bool CompareProductID( IOService * owner, OSDictionary * matching, SInt32 * score)
174 // Compare each of the types of productID matching. Then in order of highest score to least
177 pidMatch = CompareProperty(owner, matching, kIOHIDProductIDKey, &pidScore, kHIDVendor2ScoreIncrement);
178 arrayMatch = CompareNumberPropertyArray(owner, matching, kIOHIDProductIDArrayKey, kIOHIDProductIDKey, &arrayScore, kHIDVendor2ArrayScoreIncrement);
179 maskMatch = CompareNumberPropertyMask(owner, matching, kIOHIDProductIDKey, kIOHIDProductIDMaskKey, &maskScore, kHIDVendor2MaskScoreIncrement);
180 maskArrayMatch = CompareNumberPropertyArrayWithMask(owner, matching, kIOHIDProductIDArrayKey, kIOHIDProductIDKey, kIOHIDProductIDMaskKey, &maskArrayScore, kHIDVendor2ArrayMaskScoreIncrement);
206 // explicitly fail the matching. This will only return true if the
213 bool CompareNumberPropertyMask( IOService *owner, OSDictionary *matching, const char *key, const char *maskKey, SInt32 *score, SInt32 increment)
220 dictionaryProperty = OSDynamicCast(OSNumber, matching->getObject(key));
221 valueMask = OSDynamicCast(OSNumber, matching->getObject(maskKey));
249 bool CompareNumberPropertyArray( IOService * owner, OSDictionary * matching, const char * arrayName, const char * key, SInt32 * score, SInt32 increment)
252 OSArray *propertyArray = (OSArray *)matching->getObject(arrayName);
255 // If the property in the matching doesn't exist return true
281 bool CompareNumberPropertyArrayWithMask( IOService * owner, OSDictionary * matching, const char * arrayName, const char * key, const char * maskKey, SInt32 * score, SInt32 increment)
284 OSArray *propertyArray = (OSArray *)matching->getObject(arrayName);
285 OSNumber *valueMask = (OSNumber *)matching->getObject(maskKey);