/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/ |
D | UsbMassBoot.c | 384 Media->BlockSize = 0x0200; in UsbBootInquiry() 413 UINT32 BlockSize; in UsbBootReadCapacity16() local 419 Media->BlockSize = 0; in UsbBootReadCapacity16() 453 BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) &(CapacityData.BlockSize3))); in UsbBootReadCapacity16() 458 if (BlockSize == 0) { in UsbBootReadCapacity16() 464 Media->BlockSize = BlockSize; in UsbBootReadCapacity16() 495 UINT32 BlockSize; in UsbBootReadCapacity() local 525 BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.BlockLen)); in UsbBootReadCapacity() 526 if (BlockSize == 0) { in UsbBootReadCapacity() 532 Media->BlockSize = BlockSize; in UsbBootReadCapacity() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashFvbDxe.c | 74 …geVariableSize) > 0) && (PcdGet32(PcdFlashNvStorageVariableSize) / Instance->Media.BlockSize > 0)); in InitializeFvAndVariableStoreHeaders() 75 …wWorkingSize) > 0) && (PcdGet32(PcdFlashNvStorageFtwWorkingSize) / Instance->Media.BlockSize > 0)); in InitializeFvAndVariableStoreHeaders() 76 …geFtwSpareSize) > 0) && (PcdGet32(PcdFlashNvStorageFtwSpareSize) / Instance->Media.BlockSize > 0)); in InitializeFvAndVariableStoreHeaders() 79 ASSERT(PcdGet32(PcdFlashNvStorageVariableBase) % Instance->Media.BlockSize == 0); in InitializeFvAndVariableStoreHeaders() 80 ASSERT(PcdGet32(PcdFlashNvStorageFtwWorkingBase) % Instance->Media.BlockSize == 0); in InitializeFvAndVariableStoreHeaders() 81 ASSERT(PcdGet32(PcdFlashNvStorageFtwSpareBase) % Instance->Media.BlockSize == 0); in InitializeFvAndVariableStoreHeaders() 105 FirmwareVolumeHeader->BlockMap[0].Length = Instance->Media.BlockSize; in InitializeFvAndVariableStoreHeaders() 347 OUT UINTN *BlockSize, in FvbGetBlockSize() argument 356 …ckSize(Lba=%ld, BlockSize=0x%x, LastBlock=%ld)\n", Lba, Instance->Media.BlockSize, Instance->Media… in FvbGetBlockSize() 363 *BlockSize = (UINTN) Instance->Media.BlockSize; in FvbGetBlockSize() [all …]
|
D | NorFlashDxe.c | 107 IN UINT32 BlockSize, in NorFlashCreateInstance() argument 129 Instance->Media.BlockSize = BlockSize; in NorFlashCreateInstance() 130 Instance->Media.LastBlock = (NorFlashSize / BlockSize)-1; in NorFlashCreateInstance() 134 Instance->ShadowBuffer = AllocateRuntimePool (BlockSize);; in NorFlashCreateInstance() 710 …DEBUG((DEBUG_BLKIO, "NorFlashWriteBlocks: BlockSize in bytes =0x%x\n", Instance->Media.BlockSize)); in NorFlashWriteBlocks() 711 if ((BufferSizeInBytes % Instance->Media.BlockSize) != 0) { in NorFlashWriteBlocks() 716 NumBlocks = ((UINT32)BufferSizeInBytes) / Instance->Media.BlockSize ; in NorFlashWriteBlocks() 725 BlockSizeInWords = Instance->Media.BlockSize / 4; in NorFlashWriteBlocks() 759 BufferSizeInBytes, Instance->Media.BlockSize, Instance->Media.LastBlock, Lba)); in NorFlashReadBlocks() 772 if ((BufferSizeInBytes % Instance->Media.BlockSize) != 0) { in NorFlashReadBlocks() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/ |
D | ElTorito.c | 76 if (((SIZE_2KB % Media->BlockSize) != 0) || (Media->BlockSize > SIZE_2KB)) { in PartitionInstallElToritoChildHandles() 93 VolDescriptorOffset <= MultU64x32 (Media->LastBlock, Media->BlockSize); in PartitionInstallElToritoChildHandles() 136 if (Lba2KB * (SIZE_2KB / Media->BlockSize) > Media->LastBlock) { in PartitionInstallElToritoChildHandles() 171 MaxIndex = Media->BlockSize / sizeof (ELTORITO_CATALOG); in PartitionInstallElToritoChildHandles() 186 SectorCount = Catalog->Boot.SectorCount * (SIZE_2KB / Media->BlockSize); in PartitionInstallElToritoChildHandles() 191 SubBlockSize = Media->BlockSize; in PartitionInstallElToritoChildHandles() 212 SubBlockSize = Media->BlockSize; in PartitionInstallElToritoChildHandles() 231 CdDev.PartitionStart = Catalog->Boot.Lba * (SIZE_2KB / Media->BlockSize); in PartitionInstallElToritoChildHandles() 246 ) + Media->BlockSize - 1, in PartitionInstallElToritoChildHandles() 247 Media->BlockSize in PartitionInstallElToritoChildHandles() [all …]
|
D | Gpt.c | 209 UINT32 BlockSize; in PartitionInstallGptChildHandles() local 228 BlockSize = BlockIo->Media->BlockSize; in PartitionInstallGptChildHandles() 232 DEBUG ((EFI_D_INFO, " BlockSize : %d \n", BlockSize)); in PartitionInstallGptChildHandles() 240 ProtectiveMbr = AllocatePool (BlockSize); in PartitionInstallGptChildHandles() 252 BlockSize, in PartitionInstallGptChildHandles() 335 MultU64x32(PrimaryHeader->PartitionEntryLBA, BlockSize), in PartitionInstallGptChildHandles() 398 DEBUG ((EFI_D_INFO, " Start : %lx", MultU64x32 (Entry->StartingLBA, BlockSize))); in PartitionInstallGptChildHandles() 399 DEBUG ((EFI_D_INFO, " End : %lx\n", MultU64x32 (Entry->EndingLBA, BlockSize))); in PartitionInstallGptChildHandles() 412 BlockSize, in PartitionInstallGptChildHandles() 464 UINT32 BlockSize; in PartitionValidGptTable() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/ |
D | NvmExpressBlockIo.c | 44 UINT32 BlockSize; in ReadSectors() local 47 BlockSize = Device->Media.BlockSize; in ReadSectors() 48 Bytes = Blocks * BlockSize; in ReadSectors() 107 UINT32 BlockSize; in WriteSectors() local 110 BlockSize = Device->Media.BlockSize; in WriteSectors() 111 Bytes = Blocks * BlockSize; in WriteSectors() 168 UINT32 BlockSize; in NvmeRead() local 175 BlockSize = Device->Media.BlockSize; in NvmeRead() 179 …ferBlocks = (1 << (Private->ControllerData->Mdts)) * (1 << (Private->Cap.Mpsmin + 12)) / BlockSize; in NvmeRead() 189 Buffer = (VOID *)(UINTN)((UINT64)(UINTN)Buffer + MaxTransferBlocks * BlockSize); in NvmeRead() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/ |
D | BiosInt13.c | 65 BlockMedia->BlockSize = (UINT32) Bios->Parameters.BytesPerSector; in BiosInitBlockIo() 75 BlockMedia->BlockSize = 512; in BiosInitBlockIo() 79 …DEBUG ((DEBUG_INIT, "BlockSize = %d LastBlock = %d\n", BlockMedia->BlockSize, BlockMedia->LastBlo… in BiosInitBlockIo() 433 UINTN BlockSize; in Edd30BiosReadBlocks() local 440 BlockSize = Media->BlockSize; in Edd30BiosReadBlocks() 452 if ((Lba + (BufferSize / BlockSize) - 1) > Media->LastBlock) { in Edd30BiosReadBlocks() 456 if (BufferSize % BlockSize != 0) { in Edd30BiosReadBlocks() 471 MaxTransferBlocks = MAX_EDD11_XFER / BlockSize; in Edd30BiosReadBlocks() 475 NumberOfBlocks = BufferSize / BlockSize; in Edd30BiosReadBlocks() 513 Media->BlockSize = (UINT32) Bios->Parameters.BytesPerSector; in Edd30BiosReadBlocks() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/ |
D | MMCSDBlockIo.c | 93 if (ModU64x32 (BufferSize,CardData->BlockIoMedia.BlockSize) != 0) { in MMCSDBlockReadBlocks() 105 Address = (UINT32)DivU64x32 (MultU64x32 (LBA, CardData->BlockIoMedia.BlockSize), 512); in MMCSDBlockReadBlocks() 110 Address = (UINT32)MultU64x32 (LBA, CardData->BlockIoMedia.BlockSize); in MMCSDBlockReadBlocks() 112 TotalBlock = (UINTN) DivU64x32 (BufferSize, CardData->BlockIoMedia.BlockSize); in MMCSDBlockReadBlocks() 124 if ((BufferSize % CardData->BlockIoMedia.BlockSize) != 0) { in MMCSDBlockReadBlocks() 142 if ((BufferSize > CardData->BlockIoMedia.BlockSize)) { in MMCSDBlockReadBlocks() 154 CardData->BlockIoMedia.BlockSize, in MMCSDBlockReadBlocks() 169 TransferLength / CardData->BlockIoMedia.BlockSize, in MMCSDBlockReadBlocks() 198 if (RemainingLength > CardData->BlockIoMedia.BlockSize) { in MMCSDBlockReadBlocks() 199 TransferLength = CardData->BlockIoMedia.BlockSize; in MMCSDBlockReadBlocks() [all …]
|
D | CEATABlockIo.c | 103 Address = MultU64x32(LBA, CardData->BlockIoMedia.BlockSize); in CEATABlockReadBlocks() 118 if ((BufferSize % CardData->BlockIoMedia.BlockSize) != 0) { in CEATABlockReadBlocks() 129 …ufferSize) > MultU64x32 (CardData->BlockIoMedia.LastBlock + 1, CardData->BlockIoMedia.BlockSize)) { in CEATABlockReadBlocks() 213 Address = MultU64x32(LBA, CardData->BlockIoMedia.BlockSize); in CEATABlockWriteBlocks() 227 if ((BufferSize % CardData->BlockIoMedia.BlockSize) != 0) { in CEATABlockWriteBlocks() 242 …ufferSize) > MultU64x32 (CardData->BlockIoMedia.LastBlock + 1, CardData->BlockIoMedia.BlockSize)) { in CEATABlockWriteBlocks() 376 CardData->BlockIoMedia.BlockSize = (1 << CardData->IndentifyDeviceData.Sectorsize); in CEATABlockIoInit() 377 ASSERT(CardData->BlockIoMedia.BlockSize >= 12); in CEATABlockIoInit() 384 …CardData->BlockNumber = DivU64x32Remainder (MaxSize, CardData->BlockIoMedia.BlockSize, &Remainder); in CEATABlockIoInit()
|
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/ |
D | PxeBcMtftp.c | 124 IN UINTN *BlockSize, in PxeBcMtftp6GetFileSize() argument 158 if (BlockSize != NULL) { in PxeBcMtftp6GetFileSize() 161 …PxeBcUintnToAscDec (*BlockSize, ReqOpt[1].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX - (AsciiStrLen (… in PxeBcMtftp6GetFileSize() 252 IN UINTN *BlockSize, in PxeBcMtftp6ReadFile() argument 275 if (BlockSize != NULL) { in PxeBcMtftp6ReadFile() 278 PxeBcUintnToAscDec (*BlockSize, ReqOpt[0].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX); in PxeBcMtftp6ReadFile() 336 IN UINTN *BlockSize, in PxeBcMtftp6WriteFile() argument 358 if (BlockSize != NULL) { in PxeBcMtftp6WriteFile() 361 PxeBcUintnToAscDec (*BlockSize, ReqOpt[0].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX); in PxeBcMtftp6WriteFile() 410 IN UINTN *BlockSize, in PxeBcMtftp6ReadDirectory() argument [all …]
|
D | PxeBcMtftp.h | 50 IN UINTN *BlockSize, 76 IN UINTN *BlockSize, 105 IN UINTN *BlockSize, 132 IN UINTN *BlockSize,
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | BlockIo.c | 32 UINT32 BlockSize; member 131 UINT32 BlockSize; in EmuBlockIoOpenDevice() local 133 if (ioctl (Private->fd, DKIOCGETBLOCKSIZE, &BlockSize) == 0) { in EmuBlockIoOpenDevice() 134 Private->Media->BlockSize = BlockSize; in EmuBlockIoOpenDevice() 137 if ((Private->NumberOfBlocks == 0) && (BlockSize == 0x800)) { in EmuBlockIoOpenDevice() 148 size_t BlockSize; in EmuBlockIoOpenDevice() 151 if (ioctl (Private->fd, BLKSSZGET, &BlockSize) == 0) { in EmuBlockIoOpenDevice() 152 Private->Media->BlockSize = BlockSize; in EmuBlockIoOpenDevice() 155 Private->NumberOfBlocks = DivU64x32 (DiskSize, (UINT32)BlockSize); in EmuBlockIoOpenDevice() 162 Private->Media->BlockSize = Private->BlockSize; in EmuBlockIoOpenDevice() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/ |
D | IsaFloppyBlock.c | 209 UINTN BlockSize; in FddReadWriteBlocks() local 220 BlockSize = Media->BlockSize; in FddReadWriteBlocks() 281 if (BufferSize % BlockSize != 0) { in FddReadWriteBlocks() 291 if (((BufferSize / BlockSize) + Lba - 1) > Media->LastBlock) { in FddReadWriteBlocks() 301 if (Lba == 0 && BufferSize == BlockSize) { in FddReadWriteBlocks() 303 CopyMem ((UINT8 *) Buffer, (UINT8 *) FdcDev->Cache, BlockSize); in FddReadWriteBlocks() 317 NumberOfBlocks = BufferSize / BlockSize; in FddReadWriteBlocks() 336 Buffer = (VOID *) ((UINTN) Buffer + BlockCount * BlockSize); in FddReadWriteBlocks() 352 FdcDev->Cache = AllocateCopyPool (BlockSize, Buffer); in FddReadWriteBlocks()
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/ |
D | BlockVariableDxe.c | 88 OUT UINTN *BlockSize, in FvbGetBlockSize() argument 95 *BlockSize = (UINTN) Instance->Media.BlockSize; in FvbGetBlockSize() 118 … = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instance->Me… in FvbRead() 158 … = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instance->Me… in FvbWrite() 211 .BlockSize = 0, 300 …0) && (PcdGet32(PcdFlashNvStorageVariableSize) / Instance->BlockIoProtocol->Media->BlockSize > 0)); in InitNonVolatileVariableStore() 301 … && (PcdGet32(PcdFlashNvStorageFtwWorkingSize) / Instance->BlockIoProtocol->Media->BlockSize > 0)); in InitNonVolatileVariableStore() 302 …0) && (PcdGet32(PcdFlashNvStorageFtwSpareSize) / Instance->BlockIoProtocol->Media->BlockSize > 0)); in InitNonVolatileVariableStore() 326 FirmwareVolumeHeader->BlockMap[0].Length = Instance->BlockIoProtocol->Media->BlockSize; in InitNonVolatileVariableStore() 374 Instance->Media.BlockSize = PcdGet32 (PcdNvStorageVariableBlockSize); in BlockVariableDxeInitialize() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/ |
D | Fvb.c | 182 OUT UINTN *BlockSize, in FvbProtocolGetBlockSize() argument 194 *BlockSize = FvbDevice->BlockSize; in FvbProtocolGetBlockSize() 368 EraseSize = EraseSize + FvbDevice->BlockSize; in FvbProtocolEraseBlocks() 370 ErasePtr = (VOID*) ((UINT8*)ErasePtr + FvbDevice->BlockSize); in FvbProtocolEraseBlocks() 374 EraseSize = EraseSize + FvbDevice->BlockSize; in FvbProtocolEraseBlocks() 467 if ((Lba > 1) || (Offset > FvbDevice->BlockSize)) { in FvbProtocolWrite() 471 if ((Offset + *NumBytes) > FvbDevice->BlockSize) { in FvbProtocolWrite() 472 *NumBytes = FvbDevice->BlockSize - Offset; in FvbProtocolWrite() 477 MultU64x32 (Lba, (UINT32) FvbDevice->BlockSize) + in FvbProtocolWrite() 551 if ((Lba > 1) || (Offset > FvbDevice->BlockSize)) { in FvbProtocolRead() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
D | FlashUpdate.c | 35 IN UINTN BlockSize, in UpdateOneBlock() argument 58 Size = BlockSize; in UpdateOneBlock() 66 if ((EFI_ERROR (Status)) || (Size != BlockSize)) { in UpdateOneBlock() 93 IN UINTN BlockSize, in UpdateBufferInOneBlock() argument 104 if ((Offset == 0) && (Length == BlockSize)) { in UpdateBufferInOneBlock() 108 BlockSize, in UpdateBufferInOneBlock() 123 ReservedBuffer = AllocatePool (BlockSize); in UpdateBufferInOneBlock() 130 Size = BlockSize; in UpdateBufferInOneBlock() 138 if ((EFI_ERROR (Status)) || (Size != BlockSize)) { in UpdateBufferInOneBlock() 151 BlockSize, in UpdateBufferInOneBlock() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
D | BootMonFsOpenClose.c | 87 UINTN BlockSize; in WriteFileDescription() local 92 BlockSize = File->Instance->BlockIo->Media->BlockSize; in WriteFileDescription() 93 ASSERT (FileStart % BlockSize == 0); in WriteFileDescription() 102 Description->BlockStart = FileStart / BlockSize; in WriteFileDescription() 103 Description->BlockEnd = Description->BlockStart + (FileSize / BlockSize); in WriteFileDescription() 117 Description->Region[0].Offset = Description->BlockStart * BlockSize; in WriteFileDescription() 125 File->HwDescAddress = ((Description->BlockEnd + 1) * BlockSize) - sizeof (HW_IMAGE_DESCRIPTION); in WriteFileDescription() 164 UINTN BlockSize; in BootMonFsFindSpaceForNewFile() local 168 BlockSize = Media->BlockSize; in BootMonFsFindSpaceForNewFile() 190 if (((FileEntry->HwDescription.BlockStart * BlockSize) - *FileStart) in BootMonFsFindSpaceForNewFile() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioBlkDxe/ |
D | VirtioBlk.c | 162 PositiveBufferSize % Media->BlockSize > 0) { in VerifyReadWriteRequest() 165 BlockCount = PositiveBufferSize / Media->BlockSize; in VerifyReadWriteRequest() 249 UINT32 BlockSize; in SynchronousRequest() local 254 BlockSize = Dev->BlockIoMedia.BlockSize; in SynchronousRequest() 259 ASSERT (BlockSize > 0); in SynchronousRequest() 260 ASSERT (BlockSize % 512 == 0); in SynchronousRequest() 265 ASSERT (BufferSize % BlockSize == 0); in SynchronousRequest() 275 Request.Sector = MultU64x32(Lba, BlockSize / 512); in SynchronousRequest() 597 UINT32 BlockSize; in VirtioBlkInit() local 654 Status = VIRTIO_CFG_READ (Dev, BlkSize, &BlockSize); in VirtioBlkInit() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/DiskIoDxe/ |
D | DiskIo.c | 180 (Instance->BlockIo->Media->BlockSize == Instance->BlockIo2->Media->BlockSize) in DiskIoDriverBindingStart() 186 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize), in DiskIoDriverBindingStart() 217 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize) in DiskIoDriverBindingStart() 327 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize) in DiskIoDriverBindingStop() 382 Subtask->Length < Instance->BlockIo->Media->BlockSize in DiskIoDestroySubtask() 383 ? EFI_SIZE_TO_PAGES (Instance->BlockIo->Media->BlockSize) in DiskIoDestroySubtask() 536 UINT32 BlockSize; in DiskIoCreateSubtaskList() local 551 BlockSize = Instance->BlockIo->Media->BlockSize; in DiskIoCreateSubtaskList() 557 Lba = DivU64x32Remainder (Offset, BlockSize, &UnderRun); in DiskIoCreateSubtaskList() 573 Length = MIN (BlockSize - UnderRun, BufferSize); in DiskIoCreateSubtaskList() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/ |
D | PxeBcMtftp.h | 48 IN UINTN *BlockSize, 74 IN UINTN *BlockSize, 103 IN UINTN *BlockSize, 130 IN UINTN *BlockSize,
|
D | PxeBcMtftp.c | 109 IN UINTN *BlockSize, in PxeBcTftpGetFileSize() argument 141 if (BlockSize != NULL) { in PxeBcTftpGetFileSize() 144 …UtoA10 (*BlockSize, (CHAR8 *) ReqOpt[1].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX - (AsciiStrLen ((C… in PxeBcTftpGetFileSize() 237 IN UINTN *BlockSize, in PxeBcTftpReadFile() argument 261 if (BlockSize != NULL) { in PxeBcTftpReadFile() 265 UtoA10 (*BlockSize, (CHAR8 *) ReqOpt[0].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX); in PxeBcTftpReadFile() 321 IN UINTN *BlockSize, in PxeBcTftpWriteFile() argument 344 if (BlockSize != NULL) { in PxeBcTftpWriteFile() 348 UtoA10 (*BlockSize, (CHAR8 *) ReqOpt[0].ValueStr, PXE_MTFTP_OPTBUF_MAXNUM_INDEX); in PxeBcTftpWriteFile() 394 IN UINTN *BlockSize, in PxeBcTftpReadDirectory() argument [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ |
D | Atapi.c | 693 IdeDev->BlkIo.Media->BlockSize = 0x200; in ATAPIIdentify() 709 IdeDev->BlkIo.Media->BlockSize = 0x800; in ATAPIIdentify() 1069 IdeDev->BlkIo.Media->BlockSize = 0x800; in AtapiReadCapacity() 1086 IdeDev->BlkIo.Media->BlockSize = (FormatData.BlockSize2 << 16) | in AtapiReadCapacity() 1099 IdeDev->BlkIo.Media->BlockSize = 0x200; in AtapiReadCapacity() 1362 if (IdeDev->BlkIo.Media->BlockSize != OldMediaInfo.BlockSize) { in AtapiDetectMedia() 1443 UINT32 BlockSize; in AtapiReadSectors() local 1458 BlockSize = IdeDev->BlkIo.Media->BlockSize; in AtapiReadSectors() 1500 ByteCount = SectorCount * BlockSize; in AtapiReadSectors() 1520 PtrBuffer = (UINT8 *) PtrBuffer + SectorCount * BlockSize; in AtapiReadSectors() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWriteDxe/ |
D | FaultTolerantWrite.h | 53 #define FTW_BLOCKS(Length, BlockSize) ((UINTN) ((Length) / (BlockSize) + (((Length) & ((BlockSize) … argument 136 OUT UINTN *BlockSize 377 UINTN BlockSize, 457 IN UINTN BlockSize, 738 IN UINTN BlockSize, 762 IN UINTN BlockSize,
|
D | FaultTolerantWrite.c | 37 OUT UINTN *BlockSize in FtwGetMaxBlockSize() argument 48 *BlockSize = FtwDevice->SpareAreaLength; in FtwGetMaxBlockSize() 190 IN UINTN BlockSize in FtwWriteRecord() argument 240 NumberOfWriteBlocks = FTW_BLOCKS ((UINTN) (Record->Offset + Record->Length), BlockSize); in FtwWriteRecord() 241 …Status = FlushSpareBlockToTargetBlock (FtwDevice, Fvb, Record->Lba, BlockSize, NumberOfWriteBlocks… in FtwWriteRecord() 337 UINTN BlockSize; in FtwWrite() local 412 Status = Fvb->GetBlockSize (Fvb, 0, &BlockSize, &NumberOfBlocks); in FtwWrite() 418 NumberOfWriteBlocks = FTW_BLOCKS (Offset + Length, BlockSize); in FtwWrite() 419 …DEBUG ((EFI_D_INFO, "Ftw: Write(), BlockSize - 0x%x, NumberOfWriteBlock - 0x%x\n", BlockSize, Numb… in FtwWrite() 420 WriteLength = NumberOfWriteBlocks * BlockSize; in FtwWrite() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/WinNtBlockIoDxe/ |
D | WinNtBlockIo.c | 229 UINTN BlockSize; in WinNtBlockIoDriverBindingStart() local 293 BlockSize = StrDecimalToUintn (Str); in WinNtBlockIoDriverBindingStart() 294 if (BlockSize != 0) { in WinNtBlockIoDriverBindingStart() 305 BlockSize, in WinNtBlockIoDriverBindingStart() 454 IN UINTN BlockSize, in WinNtBlockIoCreateMapping() argument 496 Private->BlockSize = BlockSize; in WinNtBlockIoCreateMapping() 532 BlockIo->Media->BlockSize = (UINT32)Private->BlockSize; in WinNtBlockIoCreateMapping() 661 FileSize = MultU64x32 (Private->NumberOfBlocks, (UINT32)Private->BlockSize); in WinNtBlockIoOpenDevice() 670 Private->NumberOfBlocks = DivU64x32 (FileSize, (UINT32)Private->BlockSize); in WinNtBlockIoOpenDevice() 673 EndOfFile = MultU64x32 (Private->NumberOfBlocks, (UINT32)Private->BlockSize); in WinNtBlockIoOpenDevice() [all …]
|