Home | History | Annotate | Download | only in UsbMassStorageDxe

Lines Matching refs:Media

25   @retval EFI_NO_RESPONSE        The device media doesn't response this request.

28 @retval EFI_MEDIA_CHANGED The device media has been changed.
38 EFI_BLOCK_IO_MEDIA *Media;
76 // and update the media status if necessary.
78 Media = &UsbMass->BlockIoMedia;
96 Media->MediaPresent = FALSE;
114 Media->ReadOnly = FALSE;
115 Media->MediaId++;
121 Media->ReadOnly = TRUE;
224 @retval EFI_MEDIA_CHANGED The device media has been changed.
350 EFI_BLOCK_IO_MEDIA *Media;
353 Media = &(UsbMass->BlockIoMedia);
380 Media->RemovableMedia = (BOOLEAN) (USB_BOOT_REMOVABLE (UsbMass->InquiryData.Removable));
382 // Set block size to the default value of 512 Bytes, in case no media is present at first time.
384 Media->BlockSize = 0x0200;
394 of the USB mass storage media, including the presence, block size,
411 EFI_BLOCK_IO_MEDIA *Media;
415 Media = &UsbMass->BlockIoMedia;
417 Media->MediaPresent = FALSE;
418 Media->LastBlock = 0;
419 Media->BlockSize = 0;
447 // Get the information on media presence, block size, and last block number
450 Media->MediaPresent = TRUE;
451 Media->LastBlock = SwapBytes64 (ReadUnaligned64 ((CONST UINT64 *) &(CapacityData.LastLba7)));
455 Media->LowestAlignedLba = (CapacityData.LowestAlignLogic2 << 8) |
457 Media->LogicalBlocksPerPhysicalBlock = (1 << CapacityData.LogicPerPhysical);
464 Media->BlockSize = BlockSize;
476 of the USB mass storage media, including the presence, block size,
493 EFI_BLOCK_IO_MEDIA *Media;
497 Media = &UsbMass->BlockIoMedia;
519 // Get the information on media presence, block size, and last block number
522 Media->MediaPresent = TRUE;
523 Media->LastBlock = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.LastLba));
532 Media->BlockSize = BlockSize;
535 if (Media->LastBlock == 0xFFFFFFFF) {
562 EFI_BLOCK_IO_MEDIA *Media;
564 Media = &UsbMass->BlockIoMedia;
593 Media->ReadOnly = (BOOLEAN) ((ModeParaHeader.DevicePara & BIT7) != 0);
601 Get the parameters for the USB mass storage media.
603 This function get the parameters for the USB mass storage media,
604 It is used both to initialize the media during the Start() phase
605 of Driver Binding Protocol and to re-initialize it when the media is
620 EFI_BLOCK_IO_MEDIA *Media;
623 Media = &(UsbMass->BlockIoMedia);
644 // Don't use the Removable bit in inquiry data to test whether the media
653 // Default value 2048 Bytes, in case no media present at first time
655 Media->BlockSize = 0x0800;
665 Detect whether the removable media is present and whether it has changed.
669 @retval EFI_SUCCESS The media status is successfully checked.
670 @retval Other Failed to detect media.
679 EFI_BLOCK_IO_MEDIA *Media;
684 Media = &UsbMass->BlockIoMedia;
723 if ((Media->MediaId != OldMedia.MediaId) ||
724 (Media->MediaPresent != OldMedia.MediaPresent) ||
725 (Media->ReadOnly != OldMedia.ReadOnly) ||
726 (Media->BlockSize != OldMedia.BlockSize) ||
727 (Media->LastBlock != OldMedia.LastBlock)) {
749 if (Media->MediaPresent != OldMedia.MediaPresent) {
750 if (Media->MediaPresent) {
751 Media->MediaId = 1;
753 Media->MediaId = 0;
757 if ((Media->ReadOnly != OldMedia.ReadOnly) ||
758 (Media->BlockSize != OldMedia.BlockSize) ||
759 (Media->LastBlock != OldMedia.LastBlock)) {
760 Media->MediaId++;