Home | History | Annotate | Download | only in XenPvBlkDxe

Lines Matching refs:Media

264   EFI_BLOCK_IO_MEDIA *Media;

284 Media = AllocateCopyPool (sizeof (EFI_BLOCK_IO_MEDIA),
287 Media->RemovableMedia = TRUE;
289 Media->MediaPresent = TRUE;
290 Media->ReadOnly = !Dev->MediaInfo.ReadWrite;
297 Media->BlockSize = 2048;
298 Media->LastBlock = DivU64x32 (Dev->MediaInfo.Sectors,
299 Media->BlockSize / Dev->MediaInfo.SectorSize) - 1;
301 Media->BlockSize = Dev->MediaInfo.SectorSize;
302 Media->LastBlock = Dev->MediaInfo.Sectors - 1;
304 ASSERT (Media->BlockSize % 512 == 0);
305 Dev->BlockIo.Media = Media;
320 FreePool (Media);
365 EFI_BLOCK_IO_MEDIA *Media;
384 Media = BlockIo->Media;
388 FreePool (Media);