• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/IONetworkingFamily-101/

Lines Matching defs:medium

45 // type:  The medium type, the fields are encoded with bits defined in
48 // speed: The maximum (or the only) link speed supported over this medium
51 // flags: An optional flag for the medium object.
58 // name: An name to assign to this medium object. If 0, then a name
59 // will be created based on the medium type given using nameForType().
94 IONetworkMedium * IONetworkMedium::medium(IOMediumType type,
100 IONetworkMedium * medium = new IONetworkMedium;
102 if (medium && !medium->init(type, speed, flags, index, name))
104 medium->release();
105 medium = 0;
108 return medium;
125 // Return the assigned medium type.
133 // Return the medium flags.
141 // Return the maximum medium speed.
165 // Given a medium type, create an unique OSymbol name for the medium.
168 // type: A medium type. See IONetworkMedium.h for type encoding.
188 // medium: An IONetworkMedium to test against the IONetworkMedium
193 bool IONetworkMedium::isEqualTo(const IONetworkMedium * medium) const
195 return ( (medium->_name == _name) &&
196 (medium->_type == _type) &&
197 (medium->_flags == _flags) &&
198 (medium->_speed == _speed) &&
199 (medium->_index == _index) );
214 IONetworkMedium * medium;
215 if ((medium = OSDynamicCast(IONetworkMedium, obj)))
216 return isEqualTo(medium);
264 // The name of the medium is used as the key for the new dictionary entry.
266 // dict: An OSDictionary object where the medium object should be added to.
267 // medium: The IONetworkMedium object to add to the dictionary.
272 const IONetworkMedium * medium)
277 !OSDynamicCast(IONetworkMedium, medium))
280 return dict->setObject(medium->getName(), medium);
287 // dict: An OSDictionary object where the medium object should be removed
289 // medium: The name of this medium object is used as the removal key.
292 const IONetworkMedium * medium)
297 !OSDynamicCast(IONetworkMedium, medium))
300 dict->removeObject(medium->getName());
314 IONetworkMedium * medium;
327 medium = OSDynamicCast(IONetworkMedium, dict->getObject(key));
328 if (medium == 0) continue;
330 if ( ( (medium->getType() ^ type) & ~mask) == 0 )
332 match = medium;
349 IONetworkMedium * medium;
362 medium = OSDynamicCast(IONetworkMedium, dict->getObject(key));
363 if (medium == 0) continue;
365 if ( ( (medium->getIndex() ^ index) & ~mask) == 0 )
367 match = medium;