/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBotPei/ |
D | PeiAtapi.c | 253 UINT32 LastBlock; in PeiUsbReadCapacity() local 277 LastBlock = (Data.LastLba3 << 24) | (Data.LastLba2 << 16) | (Data.LastLba1 << 8) | Data.LastLba0; in PeiUsbReadCapacity() 279 if (LastBlock == 0xFFFFFFFF) { in PeiUsbReadCapacity() 283 PeiBotDevice->Media.LastBlock = LastBlock; in PeiUsbReadCapacity() 286 PeiBotDevice->Media2.LastBlock = LastBlock; in PeiUsbReadCapacity() 313 UINT32 LastBlock; in PeiUsbReadFormattedCapacity() local 344 PeiBotDevice->Media.LastBlock = 0; in PeiUsbReadFormattedCapacity() 346 PeiBotDevice->Media2.LastBlock = 0; in PeiUsbReadFormattedCapacity() 349 …LastBlock = (FormatData.LastLba3 << 24) | (FormatData.LastLba2 << 16) | (FormatData.LastLba1 << 8)… in PeiUsbReadFormattedCapacity() 350 if (LastBlock == 0xFFFFFFFF) { in PeiUsbReadFormattedCapacity() [all …]
|
D | UsbBotPeim.c | 467 if (StartLBA > PeiBotDev->Media2.LastBlock) { in BotReadBlocks() 521 if (StartLBA > PeiBotDev->Media2.LastBlock) { in BotReadBlocks() 525 if ((StartLBA + NumberOfBlocks - 1) > PeiBotDev->Media2.LastBlock) { in BotReadBlocks() 794 PeiBotDev->Media.LastBlock = 0; in PeiBotDetectMedia() 796 PeiBotDev->Media2.LastBlock = 0; in PeiBotDetectMedia() 813 PeiBotDev->Media.LastBlock = 0; in PeiBotDetectMedia() 815 PeiBotDev->Media2.LastBlock = 0; in PeiBotDetectMedia() 892 PeiBotDev->Media.LastBlock = 0; in PeiBotDetectMedia() 894 PeiBotDev->Media2.LastBlock = 0; in PeiBotDetectMedia() 903 PeiBotDev->Media.LastBlock = 0; in PeiBotDetectMedia() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/ |
D | BiosInt13.c | 64 BlockMedia->LastBlock = (EFI_LBA) Bios->Parameters.PhysicalSectors - 1; in BiosInitBlockIo() 76 BlockMedia->LastBlock = (Bios->MaxHead + 1) * Bios->MaxSector * (Bios->MaxCylinder + 1) - 1; in BiosInitBlockIo() 79 …G ((DEBUG_INIT, "BlockSize = %d LastBlock = %d\n", BlockMedia->BlockSize, BlockMedia->LastBlock)); in BiosInitBlockIo() 448 if (Lba > Media->LastBlock) { in Edd30BiosReadBlocks() 452 if ((Lba + (BufferSize / BlockSize) - 1) > Media->LastBlock) { in Edd30BiosReadBlocks() 512 Media->LastBlock = (EFI_LBA) Bios->Parameters.PhysicalSectors - 1; in Edd30BiosReadBlocks() 596 if (Lba > Media->LastBlock) { in Edd30BiosWriteBlocks() 600 if ((Lba + (BufferSize / BlockSize) - 1) > Media->LastBlock) { in Edd30BiosWriteBlocks() 664 Media->LastBlock = (EFI_LBA) Bios->Parameters.PhysicalSectors - 1; in Edd30BiosWriteBlocks() 831 if (Lba > Media->LastBlock) { in Edd11BiosReadBlocks() [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | BlockIo.c | 139 Private->Media->LastBlock = (0x100000000ULL/0x800) - 1; in EmuBlockIoOpenDevice() 141 Private->Media->LastBlock = Private->NumberOfBlocks - 1; in EmuBlockIoOpenDevice() 156 Private->Media->LastBlock = Private->NumberOfBlocks - 1; in EmuBlockIoOpenDevice() 164 Private->Media->LastBlock = Private->NumberOfBlocks - 1; in EmuBlockIoOpenDevice() 209 Media->LastBlock = 0; // Filled in by OpenDevice in EmuBlockIoCreateMapping() 279 UINT64 LastBlock; in EmuBlockIoReadWriteCommon() local 317 LastBlock = Lba + (BufferSize / BlockSize) - 1; in EmuBlockIoReadWriteCommon() 318 if (LastBlock > Private->Media->LastBlock) { in EmuBlockIoReadWriteCommon()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/ |
D | AtapiPeim.c | 203 …NFO, "Atatpi GetInfo LastBlock is 0x%x\n", AtapiBlkIoDev->DeviceInfo[Index].MediaInfo.LastBlock)); in AtapiGetBlockDeviceMediaInfo() 219 …NFO, "Atatpi GetInfo LastBlock is 0x%x\n", AtapiBlkIoDev->DeviceInfo[Index].MediaInfo.LastBlock)); in AtapiGetBlockDeviceMediaInfo() 319 …StartLBA + NumberOfBlocks - 1) > AtapiBlkIoDev->DeviceInfo[DeviceIndex - 1].MediaInfo2.LastBlock) { in AtapiReadBlocks() 617 AtapiBlkIoDev->DeviceInfo[DeviceCount].MediaInfo.LastBlock = 0; in AtapiEnumerateDevices() 619 AtapiBlkIoDev->DeviceInfo[DeviceCount].MediaInfo2.LastBlock = 0; in AtapiEnumerateDevices() 1672 MediaInfo->LastBlock = 0; in Inquiry() 1679 MediaInfo2->LastBlock = 0; in Inquiry() 1688 MediaInfo->LastBlock = 0; in Inquiry() 1695 MediaInfo2->LastBlock = 0; in Inquiry() 1791 MediaInfo->LastBlock = 0; in DetectMedia() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/ |
D | ElTorito.c | 93 VolDescriptorOffset <= MultU64x32 (Media->LastBlock, Media->BlockSize); in PartitionInstallElToritoChildHandles() 136 if (Lba2KB * (SIZE_2KB / Media->BlockSize) > Media->LastBlock) { in PartitionInstallElToritoChildHandles() 236 if (VolSpaceSize > (Media->LastBlock + 1)) { in PartitionInstallElToritoChildHandles() 237 CdDev.PartitionSize = (UINT32)(Media->LastBlock - Catalog->Boot.Lba + 1); in PartitionInstallElToritoChildHandles()
|
D | Mbr.c | 144 EFI_LBA LastBlock; in PartitionInstallMbrChildHandles() local 150 LastBlock = BlockIo->Media->LastBlock; in PartitionInstallMbrChildHandles() 168 if (!PartitionValidMbr (Mbr, LastBlock)) { in PartitionInstallMbrChildHandles()
|
D | Gpt.c | 210 EFI_LBA LastBlock; in PartitionInstallGptChildHandles() local 229 LastBlock = BlockIo->Media->LastBlock; in PartitionInstallGptChildHandles() 233 DEBUG ((EFI_D_INFO, " LastBlock : %lx \n", LastBlock)); in PartitionInstallGptChildHandles() 294 if (!PartitionValidGptTable (BlockIo, DiskIo, LastBlock, BackupHeader)) { in PartitionInstallGptChildHandles()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/BlockIo/ |
D | BlockIo.h | 187 EFI_LBA LastBlock; member 196 #define SIZE_OF_EFI_BLOCK_IO_MEDIA_REV1 ((UINTN)&((EFI_BLOCK_IO_MEDIA *)0)->LastBlock + sizeof(EFI…
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashFvbDxe.c | 104 FirmwareVolumeHeader->BlockMap[0].NumBlocks = Instance->Media.LastBlock + 1; in InitializeFvAndVariableStoreHeaders() 356 …ld, BlockSize=0x%x, LastBlock=%ld)\n", Lba, Instance->Media.BlockSize, Instance->Media.LastBlock)); in FvbGetBlockSize() 358 if (Lba > Instance->Media.LastBlock) { in FvbGetBlockSize() 359 …Size: ERROR - Parameter LBA %ld is beyond the last Lba (%ld).\n", Lba, Instance->Media.LastBlock)); in FvbGetBlockSize() 364 *NumberOfBlocks = (UINTN) (Instance->Media.LastBlock - Lba + 1); in FvbGetBlockSize() 633 …- 1 ) > LastBlock=%ld.\n", Instance->StartLba + StartingLba, NumOfLba, Instance->Media.LastBlock)); in FvbEraseBlocks() 634 …umOfLba == 0) || ((Instance->StartLba + StartingLba + NumOfLba - 1) > Instance->Media.LastBlock)) { in FvbEraseBlocks()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ |
D | Atapi.c | 692 IdeDev->BlkIo.Media->LastBlock = 0; in ATAPIIdentify() 708 IdeDev->BlkIo.Media->LastBlock = 0; in ATAPIIdentify() 1056 IdeDev->BlkIo.Media->LastBlock = (Data.LastLba3 << 24) | in AtapiReadCapacity() 1076 IdeDev->BlkIo.Media->LastBlock = 0; in AtapiReadCapacity() 1079 IdeDev->BlkIo.Media->LastBlock = (FormatData.LastLba3 << 24) | in AtapiReadCapacity() 1083 if (IdeDev->BlkIo.Media->LastBlock != 0) { in AtapiReadCapacity() 1084 IdeDev->BlkIo.Media->LastBlock--; in AtapiReadCapacity() 1257 IdeDev->BlkIo.Media->LastBlock = 0; in AtapiDetectMedia() 1308 IdeDev->BlkIo.Media->LastBlock = 0; in AtapiDetectMedia() 1367 if (IdeDev->BlkIo.Media->LastBlock != OldMediaInfo.LastBlock) { in AtapiDetectMedia() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/ |
D | UsbMassBoot.c | 418 Media->LastBlock = 0; in UsbBootReadCapacity16() 451 Media->LastBlock = SwapBytes64 (ReadUnaligned64 ((CONST UINT64 *) &(CapacityData.LastLba7))); in UsbBootReadCapacity16() 523 Media->LastBlock = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.LastLba)); in UsbBootReadCapacity() 535 if (Media->LastBlock == 0xFFFFFFFF) { in UsbBootReadCapacity() 727 (Media->LastBlock != OldMedia.LastBlock)) { in UsbBootDetectMedia() 759 (Media->LastBlock != OldMedia.LastBlock)) { in UsbBootDetectMedia()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/ |
D | Mtftp4Wrq.c | 71 Instance->LastBlock = BlockNum; in Mtftp4WrqSendBlock() 107 Instance->LastBlock = BlockNum; in Mtftp4WrqSendBlock() 180 if (Instance->LastBlock == AckNum) { in Mtftp4WrqHandleAck() 181 ASSERT (Instance->LastBlock >= 1); in Mtftp4WrqHandleAck()
|
D | Mtftp4Rrq.c | 162 Instance->LastBlock = Block; in Mtftp4RrqSaveBlock() 204 if ((Instance->LastBlock == Block) && Completed) { in Mtftp4RrqSaveBlock() 208 } else if (Instance->LastBlock != 0) { in Mtftp4RrqSaveBlock() 305 BlockNum = Instance->LastBlock; in Mtftp4RrqHandleData()
|
/device/linaro/bootloader/edk2/OvmfPkg/BlockMmioToBlockIoDxe/ |
D | BlockIo.c | 121 if (Lba + TotalBlock - 1 > Media->LastBlock) { in ReadOrWriteBlocks() 315 DEBUG ((EFI_D_INFO, "BlockMmio->Media->LastBlock: 0x%lx\n", BlockMmio->Media->LastBlock)); in BlockIoInit() 326 …UG ((EFI_D_INFO, "Private->BlockIo.Media->LastBlock: 0x%lx\n", Private->BlockIo.Media->LastBlock)); in BlockIoInit()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/ |
D | UfsBlockIoPei.c | 740 …Private->Media[DeviceIndex].LastBlock = (Capacity16.LastLba3 << 24) | (Capacity16.LastLba2 << 16)… in UfsBlockIoPeimGetMediaInfo() 741 …Private->Media[DeviceIndex].LastBlock |= LShiftU64 ((UINT64)Capacity16.LastLba7, 56) | LShiftU64((… in UfsBlockIoPeimGetMediaInfo() 744 …Private->Media[DeviceIndex].LastBlock = (Capacity.LastLba3 << 24) | (Capacity.LastLba2 << 16) | (… in UfsBlockIoPeimGetMediaInfo() 750 MediaInfo->LastBlock = (UINTN)Private->Media[DeviceIndex].LastBlock; in UfsBlockIoPeimGetMediaInfo() 841 if (StartLBA > Private->Media[DeviceIndex].LastBlock) { in UfsBlockIoPeimReadBlocks() 870 if (Private->Media[DeviceIndex].LastBlock < 0xfffffffful) { in UfsBlockIoPeimReadBlocks()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/ |
D | CEATABlockIo.c | 129 …if ((Address + BufferSize) > MultU64x32 (CardData->BlockIoMedia.LastBlock + 1, CardData->BlockIoMe… in CEATABlockReadBlocks() 242 …if ((Address + BufferSize) > MultU64x32 (CardData->BlockIoMedia.LastBlock + 1, CardData->BlockIoMe… in CEATABlockWriteBlocks() 387 CardData->BlockIoMedia.LastBlock = (EFI_LBA)(CardData->BlockNumber - 1); in CEATABlockIoInit()
|
/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/ |
D | BlockIo.c | 103 if (Lba > Media->LastBlock || in XenPvBlkDxeBlockIoReadWriteBlocks() 104 (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) { in XenPvBlkDxeBlockIoReadWriteBlocks()
|
D | XenPvBlkDxe.c | 298 Media->LastBlock = DivU64x32 (Dev->MediaInfo.Sectors, in XenPvBlkDxeDriverBindingStart() 302 Media->LastBlock = Dev->MediaInfo.Sectors - 1; in XenPvBlkDxeDriverBindingStart()
|
/device/linaro/bootloader/edk2/Nt32Pkg/WinNtBlockIoDxe/ |
D | WinNtBlockIo.c | 495 Private->LastBlock = NumberOfBlocks - 1; in WinNtBlockIoCreateMapping() 533 BlockIo->Media->LastBlock = Private->NumberOfBlocks - 1; in WinNtBlockIoCreateMapping() 815 UINT64 LastBlock; in WinNtBlockIoReadWriteCommon() local 853 LastBlock = Lba + (BufferSize / BlockSize) - 1; in WinNtBlockIoReadWriteCommon() 854 if (LastBlock > Private->LastBlock) { in WinNtBlockIoReadWriteCommon()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/Common/ |
D | CapsuleCoalesce.c | 831 EFI_CAPSULE_BLOCK_DESCRIPTOR *LastBlock; in BuildCapsuleDescriptors() local 837 LastBlock = NULL; in BuildCapsuleDescriptors() 849 if (LastBlock == NULL) { in BuildCapsuleDescriptors() 850 LastBlock = TempBlock; in BuildCapsuleDescriptors() 860 LastBlock->Union.DataBlock = (EFI_PHYSICAL_ADDRESS)(UINTN)BlockListBuffer[Index]; in BuildCapsuleDescriptors() 861 LastBlock->Length = 0; in BuildCapsuleDescriptors() 862 LastBlock = TempBlock; in BuildCapsuleDescriptors()
|
/device/linaro/bootloader/edk2/MdePkg/Include/Ppi/ |
D | BlockIo2.h | 70 EFI_PEI_LBA LastBlock; member
|
D | BlockIo.h | 86 UINTN LastBlock; member
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Ppi/BlockIo/ |
D | BlockIo.h | 48 UINTN LastBlock; member
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/ |
D | IsaFloppyBlock.c | 286 if (Lba > Media->LastBlock) { in FddReadWriteBlocks() 291 if (((BufferSize / BlockSize) + Lba - 1) > Media->LastBlock) { in FddReadWriteBlocks()
|