/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/FatPkg/FatPei/ |
D | Part.c | 152 if (VolDescriptorLba > ParentBlockDev->LastBlock) { in FatFindEltoritoPartitions() 200 if (Lba > ParentBlockDev->LastBlock) { in FatFindEltoritoPartitions() 278 …SectorCount = (VolSpaceSize > ParentBlockDev->LastBlock + 1) ? (UINT32) (ParentBlockDev->LastBlock… in FatFindEltoritoPartitions() 290 BlockDev->LastBlock = SectorCount - 1; in FatFindEltoritoPartitions() 425 if (EFI_ERROR (Status) || !PartitionValidMbr (Mbr, ParentBlockDev->LastBlock)) { in FatFindMbrPartitions() 448 BlockDev->LastBlock = UNPACK_INT32 (Mbr->Partition[Index].SizeInLBA) - 1; in FatFindMbrPartitions()
|
/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/MdeModulePkg/Universal/Disk/RamDiskDxe/ |
D | RamDiskBlockIo.c | 73 Media->LastBlock = DivU64x32 ( in RamDiskInitBlockIo() 158 if (Lba > PrivateData->Media.LastBlock) { in RamDiskBlkIoReadBlocks() 163 if ((Lba + NumberOfBlocks - 1) > PrivateData->Media.LastBlock) { in RamDiskBlkIoReadBlocks() 237 if (Lba > PrivateData->Media.LastBlock) { in RamDiskBlkIoWriteBlocks() 242 if ((Lba + NumberOfBlocks - 1) > PrivateData->Media.LastBlock) { in RamDiskBlkIoWriteBlocks()
|
/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/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 * (SIZE_2KB / Media->BlockSize) > (Media->LastBlock + 1)) { in PartitionInstallElToritoChildHandles() 237 …CdDev.PartitionSize = (UINT32)(Media->LastBlock - Catalog->Boot.Lba * (SIZE_2KB / Media->BlockSize… in PartitionInstallElToritoChildHandles()
|
D | Mbr.c | 143 EFI_LBA LastBlock; in PartitionInstallMbrChildHandles() local 149 LastBlock = BlockIo->Media->LastBlock; in PartitionInstallMbrChildHandles() 167 if (!PartitionValidMbr (Mbr, LastBlock)) { in PartitionInstallMbrChildHandles()
|
/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/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/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashFvbDxe.c | 104 FirmwareVolumeHeader->BlockMap[0].NumBlocks = Instance->Media.LastBlock + 1; in InitializeFvAndVariableStoreHeaders() 357 …ld, BlockSize=0x%x, LastBlock=%ld)\n", Lba, Instance->Media.BlockSize, Instance->Media.LastBlock)); in FvbGetBlockSize() 359 if (Lba > Instance->Media.LastBlock) { in FvbGetBlockSize() 360 …Size: ERROR - Parameter LBA %ld is beyond the last Lba (%ld).\n", Lba, Instance->Media.LastBlock)); in FvbGetBlockSize() 365 *NumberOfBlocks = (UINTN) (Instance->Media.LastBlock - Lba + 1); in FvbGetBlockSize() 634 …- 1 ) > LastBlock=%ld.\n", Instance->StartLba + StartingLba, NumOfLba, Instance->Media.LastBlock)); in FvbEraseBlocks() 635 …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/Bus/Sd/SdBlockIoPei/ |
D | SdBlockIoPei.c | 184 MediaInfo->LastBlock = (UINTN)Private->Slot[DeviceIndex - 1].Media.LastBlock; in SdBlockIoPeimGetMediaInfo() 265 if (StartLBA > Private->Slot[DeviceIndex - 1].Media.LastBlock) { in SdBlockIoPeimReadBlocks() 604 Slot->Media.LastBlock = DivU64x32 (Capacity, Slot->Media.BlockSize) - 1; in InitializeSdBlockIoPeim()
|
/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()
|
/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/OpenPlatformPkg/Drivers/Block/ramdisk/ |
D | ramdisk.c | 268 RamDiskDev->Media.LastBlock = RamDiskSize/BlockSize - 1; in InitializeRamDiskDriver() 475 if(LBA > Media->LastBlock) in RamDiskReadBlocks() 478 if(LBA + BufferSize / Media->BlockSize - 1 > Media->LastBlock) in RamDiskReadBlocks() 508 if(LBA > Media->LastBlock) in RamDiskWriteBlocks() 511 if(LBA + BufferSize / Media->BlockSize - 1 > Media->LastBlock) in RamDiskWriteBlocks()
|
/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/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/ |
D | FlashFvbDxe.c | 182 FirmwareVolumeHeader->BlockMap[0].NumBlocks = Instance->Media.LastBlock + 1; in InitializeFvAndVariableStoreHeaders() 430 if (Lba > Instance->Media.LastBlock) in FvbGetBlockSize() 438 *NumberOfBlocks = (UINTN) (Instance->Media.LastBlock - Lba + 1); in FvbGetBlockSize() 774 …(NumOfLba == 0) || ((Instance->StartLba + StartingLba + NumOfLba - 1) > Instance->Media.LastBlock)) in FvbEraseBlocks() 926 Instance->Media.LastBlock = (FlashSize / BlockSize) - 1; in FlashCreateInstance() 1074 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) in FlashWriteBlocks() 1127 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) in FlashReadBlocks()
|
/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()
|
/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() 386 CardData->BlockIoMedia.LastBlock = (EFI_LBA)(CardData->BlockNumber - 1); in CEATABlockIoInit()
|
/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/EdkCompatibilityPkg/Foundation/Framework/Ppi/BlockIo/ |
D | BlockIo.h | 48 UINTN LastBlock; member
|
/device/linaro/bootloader/edk2/MdePkg/Include/Ppi/ |
D | BlockIo2.h | 70 EFI_PEI_LBA LastBlock; member
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/Common/ |
D | CapsuleCoalesce.c | 872 EFI_CAPSULE_BLOCK_DESCRIPTOR *LastBlock; in BuildCapsuleDescriptors() local 878 LastBlock = NULL; in BuildCapsuleDescriptors() 890 if (LastBlock == NULL) { in BuildCapsuleDescriptors() 891 LastBlock = TempBlock; in BuildCapsuleDescriptors() 901 LastBlock->Union.DataBlock = (EFI_PHYSICAL_ADDRESS)(UINTN)BlockListBuffer[Index]; in BuildCapsuleDescriptors() 902 LastBlock->Length = 0; in BuildCapsuleDescriptors() 903 LastBlock = TempBlock; in BuildCapsuleDescriptors()
|