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

Lines Matching refs:media

38 //   o for media without a driver map:
40 // o for media with a driver map:
48 // o the dpme_pblock_start block value is relative to the media container
88 // Determine whether the provider media contains an Apple partition map.
99 // Scan the provider media for an Apple partition map.
109 // Publish the new media objects which represent our partitions.
123 // Attach and register the new media objects representing our partitions.
146 // Clean up after the media objects we published before terminating.
156 // Detach the media objects we previously attached to the device tree.
176 // Request that the provider media be re-scanned for partitions.
183 // Scan the provider media for partitions.
212 // Scan the provider media for an Apple partition map. Returns the set
213 // of media objects representing each of the partitions (the retain for
229 IOMedia * media = getProvider();
230 UInt64 mediaBlockSize = media->getPreferredBlockSize();
235 // Determine whether this media is formatted.
237 if ( media->isFormatted() == false ) goto scanErr;
239 // Determine whether this media has an appropriate block size.
243 // Allocate a buffer large enough to hold one map, rounded to a media block.
251 // Allocate a set to hold the set of media objects representing partitions.
256 // Open the media with read access.
265 status = media->read(this, bufferReadAt, buffer);
301 status = media->read(this, bufferReadAt, buffer);
316 // Scan the media for Apple partition entries.
330 status = media->read(this, bufferReadAt, buffer);
393 // Create a media object to represent this partition.
454 IOMedia * media = getProvider();
469 // Determine whether the partition starts at (or past) the end-of-media.
471 if ( partitionBase >= media->getSize() ) return true;
482 // Instantiate a new media object to represent the given partition.
485 IOMedia * media = getProvider();
486 UInt64 mediaBlockSize = media->getPreferredBlockSize();
489 bool partitionIsWritable = media->isWritable();
506 // Clip the size of the new partition if it extends past the end-of-media.
508 if ( partitionBase + partitionSize > media->getSize() )
510 partitionSize = media->getSize() - partitionBase;
532 // Create the new media object.
545 /* attributes */ media->getAttributes(),
586 // Allocate a new media object (called from instantiateMediaObject).
593 bool IOApplePartitionScheme::attachMediaObjectToDeviceTree(IOMedia * media)
596 // Attach the given media object to the device tree plane.
599 return super::attachMediaObjectToDeviceTree(media);
602 void IOApplePartitionScheme::detachMediaObjectFromDeviceTree(IOMedia * media)
605 // Detach the given media object from the device tree plane.
608 super::detachMediaObjectFromDeviceTree(media);