• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/IOStorageFamily-182.1.1/

Lines Matching refs:media

38 // o the al_offset value is relative to the media container
78 // Determine whether the provider media contains an Apple label scheme.
89 // Scan the provider media for an Apple label scheme.
99 // Publish the new media object which represents our content.
110 // Attach and register the new media object representing our content.
124 // Clean up after the media object we published before terminating.
131 // Detach the media objects we previously attached to the device tree.
141 // Scan the provider media for an Apple label scheme.
152 IOMedia * media = getProvider();
153 UInt64 mediaBlockSize = media->getPreferredBlockSize();
159 // Determine whether this media is formatted.
161 if ( media->isFormatted() == false ) goto scanErr;
163 // Determine whether this media has an appropriate block size.
167 // Allocate a buffer large enough to hold one map, rounded to a media block.
175 // Open the media with read access.
177 mediaIsOpen = media->open(this, 0, kIOStorageAccessReader);
182 status = media->read(this, 0, buffer);
212 // Allocate a buffer large enough to hold one map, rounded to a media block.
225 if ( bufferBase + bufferSize > media->getSize() ) goto scanErr;
229 status = media->read(this, bufferBase, buffer);
264 // Create a media object to represent the content.
275 media->close(this);
285 if ( mediaIsOpen ) media->close(this);
309 IOMedia * media = getProvider();
334 if ( contentBase + contentSize > media->getSize() ) return true;
342 // Instantiate a new media object to represent the given content.
352 IOMedia * media = getProvider();
356 contentAttributes = media->getAttributes();
357 contentBlockSize = media->getPreferredBlockSize();
358 contentIsWhole = media->isWhole();
359 contentIsWritable = media->isWritable();
360 contentSize = media->getSize();
462 // Create the new media object.
501 // Allocate a new media object (called from instantiateMediaObject).
507 bool IOAppleLabelScheme::attachMediaObjectToDeviceTree( IOMedia * media )
510 // Attach the given media object to the device tree plane.
524 if ( media->attachToParent(parent, gIODTPlane) )
526 media->setLocation(location, gIODTPlane);
527 media->setName(name, gIODTPlane);
539 void IOAppleLabelScheme::detachMediaObjectFromDeviceTree( IOMedia * media )
542 // Detach the given media object from the device tree plane.
551 if ( (parent = media->getParentEntry(gIODTPlane)) )
553 const char * location = media->getLocation(gIODTPlane);
554 const char * name = media->getName(gIODTPlane);
562 media->detachFromParent(parent, gIODTPlane);