/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/SpiFvbServices/ |
D | FvbInfo.c | 245 …mPlatformFtwFvbInfo[0].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashNvStorageFtwWorkingSize) … in GetFtwFvbInfo() 251 …mPlatformFtwFvbInfo[1].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashNvStorageFtwSpareSize) / … in GetFtwFvbInfo() 268 DEBUG ((EFI_D_INFO, "FvBlockMap[0].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[0].NumBlocks)); in GetFtwFvbInfo() 270 DEBUG ((EFI_D_INFO, "FvBlockMap[1].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[1].NumBlocks)); in GetFtwFvbInfo() 294 …mPlatformFvbMediaInfo[0].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashFvMainSize) / FVB_MEDIA… in GetFvbInfo() 300 …mPlatformFvbMediaInfo[1].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashNvStorageVariableSize) … in GetFvbInfo() 306 …mPlatformFvbMediaInfo[2].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashFvRecoverySize) / FVB_M… in GetFvbInfo() 312 …mPlatformFvbMediaInfo[3].FvbInfo.BlockMap[0].NumBlocks = PcdGet32 (PcdFlashFvPayloadSize) / FVB_ME… in GetFvbInfo() 329 DEBUG ((EFI_D_INFO, "FvBlockMap[0].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[0].NumBlocks)); in GetFvbInfo() 331 DEBUG ((EFI_D_INFO, "FvBlockMap[1].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[1].NumBlocks)); in GetFvbInfo()
|
D | FwBlockService.c | 364 UINT32 NumBlocks; in FvbGetLbaAddress() local 389 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 392 if ((NumBlocks == 0) || (BlockLength == 0)) { in FvbGetLbaAddress() 396 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 423 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1885 …for (PtrBlockMapEntry = FwVolHeader->BlockMap; PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry+… in FvbInitialize() 1895 NumOfBlocks = NumOfBlocks + PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/ |
D | FwVolBlock.c | 227 if (LbaIndex >= FvbDevice->NumBlocks) { in FwVolBlockReadBlock() 376 if (Lba >= FvbDevice->NumBlocks) { in FwVolBlockGetBlockSize() 388 while ((PtrBlockMapEntry->NumBlocks != 0) || (PtrBlockMapEntry->Length !=0 )) { in FwVolBlockGetBlockSize() 389 TotalBlocks += PtrBlockMapEntry->NumBlocks; in FwVolBlockGetBlockSize() 528 FvbDev->NumBlocks = 0; in ProduceFVBProtocolOnBuffer() 530 PtrBlockMapEntry->NumBlocks != 0; in ProduceFVBProtocolOnBuffer() 532 FvbDev->NumBlocks += PtrBlockMapEntry->NumBlocks; in ProduceFVBProtocolOnBuffer() 538 if (FvbDev->NumBlocks >= (MAX_ADDRESS / sizeof (LBA_CACHE))) { in ProduceFVBProtocolOnBuffer() 542 FvbDev->LbaCache = AllocatePool (FvbDev->NumBlocks * sizeof (LBA_CACHE)); in ProduceFVBProtocolOnBuffer() 554 PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry++) { in ProduceFVBProtocolOnBuffer() [all …]
|
D | FwVolBlock.h | 46 UINTN NumBlocks; member
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
D | FlashUpdate.c | 370 if ((PtrMap->NumBlocks == 0) || (PtrMap->Length == 0)) { in FaultTolerantUpdateOnWholeFv() 376 NumOfBlocks = NumOfBlocks + PtrMap->NumBlocks; in FaultTolerantUpdateOnWholeFv() 459 if ((PtrMap->NumBlocks == 0) || (PtrMap->Length == 0)) { in FaultTolerantUpdateOnWholeFv() 463 for (Index = 0; Index < PtrMap->NumBlocks; Index++) { in FaultTolerantUpdateOnWholeFv() 553 if ((PtrMap->NumBlocks == 0) || (PtrMap->Length == 0)) { in NonFaultTolerantUpdateOnWholeFv() 557 for (Index = 0; Index < PtrMap->NumBlocks; Index++) { in NonFaultTolerantUpdateOnWholeFv() 876 if ((PtrMap->NumBlocks == 0) || (PtrMap->Length == 0)) { in FaultTolerantUpdateOnPartFv() 881 for (Index = 0; Index < PtrMap->NumBlocks; Index++) { in FaultTolerantUpdateOnPartFv() 1015 if ((PtrMap->NumBlocks == 0) || (PtrMap->Length == 0)) { in FaultTolerantUpdateOnPartFv() 1020 for (Index = 0; Index < PtrMap->NumBlocks; Index++) { in FaultTolerantUpdateOnPartFv() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/ |
D | FvbInfo.c | 175 DEBUG ((EFI_D_INFO, "FvBlockMap[0].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[0].NumBlocks)); 177 DEBUG ((EFI_D_INFO, "FvBlockMap[1].NumBlocks: 0x%x \n", (*FvbInfo)->BlockMap[1].NumBlocks));
|
D | FvbService.c | 204 UINT32 NumBlocks = 0; in FvbGetLbaAddress() 227 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 231 if ( NumBlocks == 0 || BlockLength == 0) { in FvbGetLbaAddress() 235 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 257 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1085 …for (PtrBlockMapEntry = FwVolHeader->BlockMap; PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry+… in FvbInitialize() 1092 FwhInstance->NumOfBlocks += PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/ |
D | FwBlockService.c | 269 UINT32 NumBlocks; in FvbGetLbaAddress() local 292 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 295 if (NumBlocks == 0 || BlockLength == 0) { in FvbGetLbaAddress() 299 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 322 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1034 PtrBlockMapEntry->NumBlocks != 0; in FvbInitialize() 1043 NumOfBlocks = NumOfBlocks + PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/edk2/Omap35xxPkg/MMCHSDxe/ |
D | MMCHS.c | 181 UINTN *NumBlocks in GetBlockInformation() argument 195 *NumBlocks = ((CardSize + 1) * 1024); in GetBlockInformation() 202 *NumBlocks = (CardSize + 1) * (1 << (gCardInfo.CSDData.C_SIZE_MULT + 2)); in GetBlockInformation() 207 *NumBlocks = MultU64x32(*NumBlocks, *BlockSize/2); in GetBlockInformation() 211 …NFO, "Card type: %x, BlockSize: %x, NumBlocks: %x\n", gCardInfo.CardType, *BlockSize, *NumBlocks)); in GetBlockInformation() 335 UINTN NumBlocks; in GetCardConfigurationData() local 339 GetBlockInformation(&BlockSize, &NumBlocks); in GetCardConfigurationData() 341 gCardInfo.NumBlocks = NumBlocks; in GetCardConfigurationData() 1104 gMMCHSMedia.LastBlock = (gCardInfo.NumBlocks - 1); in DetectCard()
|
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 294 UINT32 NumBlocks; in FvbGetLbaAddress() local 317 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 320 if (NumBlocks == 0 || BlockLength == 0) { in FvbGetLbaAddress() 324 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 347 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1262 …for (PtrBlockMapEntry = FwVolHeader->BlockMap; PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry+… in FvbInitialize() 1272 NumOfBlocks = NumOfBlocks + PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 335 UINT32 NumBlocks; in FvbGetLbaAddress() local 358 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 361 if (NumBlocks == 0 || BlockLength == 0) { in FvbGetLbaAddress() 365 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 388 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1280 …for (PtrBlockMapEntry = FwVolHeader->BlockMap; PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry+… in FvbInitialize() 1288 NumOfBlocks = NumOfBlocks + PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/ |
D | FlashFvbDxe.c | 182 FirmwareVolumeHeader->BlockMap[0].NumBlocks = Instance->Media.LastBlock + 1; in InitializeFvAndVariableStoreHeaders() 184 FirmwareVolumeHeader->BlockMap[1].NumBlocks = 0; in InitializeFvAndVariableStoreHeaders() 1046 UINT32 NumBlocks; in FlashWriteBlocks() local 1073 NumBlocks = ((UINT32)BufferSizeInBytes) / Instance->Media.BlockSize ; in FlashWriteBlocks() 1074 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) in FlashWriteBlocks() 1102 UINT32 NumBlocks; in FlashReadBlocks() local 1126 NumBlocks = ((UINT32)BufferSizeInBytes) / Instance->Media.BlockSize ; in FlashReadBlocks() 1127 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) in FlashReadBlocks()
|
/device/linaro/bootloader/edk2/Omap35xxPkg/Flash/ |
D | Flash.c | 579 UINTN NumBlocks; in NandFlashReadBlocks() local 599 NumBlocks = DivU64x32(BufferSize, gNandFlashInfo->BlockSize); in NandFlashReadBlocks() 600 EndBlockIndex = ((UINTN)Lba + NumBlocks) - 1; in NandFlashReadBlocks() 634 UINTN NumBlocks; in NandFlashWriteBlocks() local 654 NumBlocks = DivU64x32(BufferSize, gNandFlashInfo->BlockSize); in NandFlashWriteBlocks() 655 EndBlockIndex = ((UINTN)Lba + NumBlocks) - 1; in NandFlashWriteBlocks()
|
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/ |
D | FWBlockService.c | 377 UINT32 NumBlocks; in FvbGetLbaAddress() local 400 NumBlocks = BlockMap->NumBlocks; in FvbGetLbaAddress() 403 if (NumBlocks == 0 || BlockLength == 0) { in FvbGetLbaAddress() 407 NextLba = StartLba + NumBlocks; in FvbGetLbaAddress() 431 Offset = Offset + NumBlocks * BlockLength; in FvbGetLbaAddress() 1526 …for (PtrBlockMapEntry = FwVolHeader->BlockMap; PtrBlockMapEntry->NumBlocks != 0; PtrBlockMapEntry+… in FvbInitialize() 1528 LbaAddress += PtrBlockMapEntry->NumBlocks * PtrBlockMapEntry->Length; in FvbInitialize() 1538 NumOfBlocks += PtrBlockMapEntry->NumBlocks; in FvbInitialize()
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashDxe.c | 691 UINT32 NumBlocks; in NorFlashWriteBlocks() local 716 NumBlocks = ((UINT32)BufferSizeInBytes) / Instance->Media.BlockSize ; in NorFlashWriteBlocks() 718 …DEBUG((DEBUG_BLKIO, "NorFlashWriteBlocks: NumBlocks=%d, LastBlock=%ld, Lba=%ld.\n", NumBlocks, Ins… in NorFlashWriteBlocks() 720 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) { in NorFlashWriteBlocks() 732 …for (BlockCount=0; BlockCount < NumBlocks; BlockCount++, CurrentBlock++, pWriteBuffer = pWriteBuff… in NorFlashWriteBlocks() 814 UINT32 NumBlocks; in NorFlashReadBlocks() local 836 NumBlocks = ((UINT32)BufferSizeInBytes) / Instance->Media.BlockSize ; in NorFlashReadBlocks() 838 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) { in NorFlashReadBlocks()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/ |
D | FwVol.c | 397 while ((BlockMap->NumBlocks != 0) || (BlockMap->Length != 0)) { in FvCheck() 404 for (; Index < BlockMap->NumBlocks && HeaderSize >= BlockMap->Length; Index ++) { in FvCheck() 412 if (Index >= BlockMap->NumBlocks) { in FvCheck() 425 for (; Index < BlockMap->NumBlocks; Index ++) { in FvCheck()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/ |
D | MmcIdentification.c | 310 UINTN NumBlocks; in InitializeSdMmcDevice() local 341 NumBlocks = ((CardSize + 1) * 1024); in InitializeSdMmcDevice() 345 NumBlocks = (CardSize + 1) * (1 << (MMC_CSD_GET_DEVICESIZEMULT (Response) + 2)); in InitializeSdMmcDevice() 351 NumBlocks = MultU64x32 (NumBlocks, BlockSize / 512); in InitializeSdMmcDevice() 355 MmcHostInstance->BlockIo.Media->LastBlock = (NumBlocks - 1); in InitializeSdMmcDevice()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | FirmwareVolumeBuffer.c | 453 blk->NumBlocks += (UINT32)BlockCount; in FvBufExtend() 546 while (blk->Length != 0 || blk->NumBlocks != 0) { in FvBufGetSize() 547 *Size = *Size + (blk->Length * blk->NumBlocks); in FvBufGetSize() 1566 FvHdr->BlockMap[0].NumBlocks = BlockCount; in FvBufShrinkWrap() 1616 blk->NumBlocks != 0 in FvBufUnifyBlockSizes() 1618 Size = Size + (blk->Length * blk->NumBlocks); in FvBufUnifyBlockSizes() 1645 hdr->BlockMap[0].NumBlocks = Size / (UINT32)BlockSize; in FvBufUnifyBlockSizes()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/Common/ |
D | PiFirmwareVolume.h | 91 UINT32 NumBlocks; member
|
/device/linaro/bootloader/edk2/MdePkg/Include/Pi/ |
D | PiFirmwareVolume.h | 95 UINT32 NumBlocks; member
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/ |
D | GenFvImageLib.c | 984 FvInfo->FvBlocks[Index].NumBlocks = (UINT32) Value64; in ParseFvInf() 1072 for (Index = 0; FvInfo->FvBlocks[Index].NumBlocks; Index++) { in ParseFvInf() 1074 (FvInfo->FvBlocks[Index].NumBlocks == (UINT32) -1 && Index > 0) in ParseFvInf() 1087 if (FvInfo->FvBlocks[Index].NumBlocks == (UINT32) -1) { in ParseFvInf() 1090 FvInfo->Size += FvInfo->FvBlocks[Index].NumBlocks * FvInfo->FvBlocks[Index].BlockLength; in ParseFvInf() 1883 assert (OldSize == FvInfo->FvBlocks[0].NumBlocks * FvInfo->FvBlocks[0].BlockLength); in ReallocateFvImage() 1947 FvInfo->FvBlocks[0].NumBlocks ++; in ReallocateFvImage() 1953 FvHeader->FvBlockMap[0].NumBlocks = FvInfo->FvBlocks[0].NumBlocks; in ReallocateFvImage() 2970 FvInfo.FvBlocks[0].NumBlocks = 1; in GenerateFvImage() 3028 for (Index = 0; FvInfo.FvBlocks[Index].NumBlocks != 0; Index++) { in GenerateFvImage() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/ |
D | Reclaim.c | 79 for (LbaIndex = 1; LbaIndex <= FvbMapEntry->NumBlocks; LbaIndex += 1) { in GetLbaAndOffsetByAddress()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/ |
D | EfiFirmwareVolumeHeader.h | 188 UINT32 NumBlocks; member
|
/device/linaro/bootloader/edk2/ArmVirtPkg/ |
D | ArmVirtQemu.fdf | 34 # This one is tricky, it must be: BlockSize * NumBlocks = Size 36 NumBlocks = 0x200
|
D | ArmVirtXen.fdf | 34 # This one is tricky, it must be: BlockSize * NumBlocks = Size 36 NumBlocks = 0x200 109 NumBlocks = 0 # This FV gets compressed so make it just big enough
|