Home
last modified time | relevance | path

Searched refs:Lba (Results 1 – 25 of 133) sorted by relevance

123456

/device/linaro/bootloader/edk2/FatPkg/FatPei/
DFatLiteLib.c66 IN EFI_PEI_LBA Lba, in FatReadBlock() argument
81 if (BufferSize > MultU64x32 (BlockDev->LastBlock - Lba + 1, BlockDev->BlockSize)) { in FatReadBlock()
95 Lba, in FatReadBlock()
104 Lba, in FatReadBlock()
114 BlockDev->StartingPos + MultU64x32 (Lba, BlockDev->BlockSize), in FatReadBlock()
142 IN UINT64 Lba, in FatGetCacheBlock() argument
159 …if (CacheBuffer->Valid && CacheBuffer->BlockDeviceNo == BlockDeviceNo && CacheBuffer->Lba == Lba) { in FatGetCacheBlock()
193 CacheBuffer->Lba = Lba; in FatGetCacheBlock()
202 Lba, in FatGetCacheBlock()
244 UINT64 Lba; in FatReadDisk() local
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/
DQemuFlash.c41 IN EFI_LBA Lba, in QemuFlashPtr() argument
45 return mFlashBase + ((UINTN)Lba * mFdBlockSize) + Offset; in QemuFlashPtr()
129 IN EFI_LBA Lba, in QemuFlashRead() argument
141 if (Lba >= mFdBlockCount) { in QemuFlashRead()
148 Ptr = (UINT8*) QemuFlashPtr (Lba, Offset); in QemuFlashRead()
168 IN EFI_LBA Lba, in QemuFlashWrite() argument
181 if (Lba >= mFdBlockCount) { in QemuFlashWrite()
188 Ptr = QemuFlashPtr (Lba, Offset); in QemuFlashWrite()
214 IN EFI_LBA Lba in QemuFlashEraseBlock() argument
219 if (Lba >= mFdBlockCount) { in QemuFlashEraseBlock()
[all …]
DQemuFlash.h35 IN EFI_LBA Lba,
54 IN EFI_LBA Lba,
69 IN EFI_LBA Lba
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/
DIsaFloppyBlock.c119 IN EFI_LBA Lba, in FddReadBlocks() argument
126 Status = FddReadWriteBlocks (This, MediaId, Lba, BufferSize, READ, Buffer); in FddReadBlocks()
160 IN EFI_LBA Lba, in FddWriteBlocks() argument
167 Status = FddReadWriteBlocks (This, MediaId, Lba, BufferSize, WRITE, Buffer); in FddWriteBlocks()
201 IN EFI_LBA Lba, in FddReadWriteBlocks() argument
224 if (Lba == 0) { in FddReadWriteBlocks()
286 if (Lba > Media->LastBlock) { in FddReadWriteBlocks()
291 if (((BufferSize / BlockSize) + Lba - 1) > Media->LastBlock) { in FddReadWriteBlocks()
301 if (Lba == 0 && BufferSize == BlockSize) { in FddReadWriteBlocks()
318 Lba0 = Lba; in FddReadWriteBlocks()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/
DBlockIo.c79 IN EFI_LBA Lba, in XenPvBlkDxeBlockIoReadWriteBlocks() argument
103 if (Lba > Media->LastBlock || in XenPvBlkDxeBlockIoReadWriteBlocks()
104 (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) { in XenPvBlkDxeBlockIoReadWriteBlocks()
107 IsWrite ? "Write" : "Read", Lba, (UINT64)BufferSize)); in XenPvBlkDxeBlockIoReadWriteBlocks()
129 Lba, BufferSize, NewBuffer); in XenPvBlkDxeBlockIoReadWriteBlocks()
134 Lba, BufferSize, NewBuffer); in XenPvBlkDxeBlockIoReadWriteBlocks()
141 Sector = (UINTN)MultU64x32 (Lba, Media->BlockSize / 512); in XenPvBlkDxeBlockIoReadWriteBlocks()
192 IN EFI_LBA Lba, in XenPvBlkDxeBlockIoReadBlocks() argument
198 MediaId, Lba, BufferSize, Buffer, FALSE); in XenPvBlkDxeBlockIoReadBlocks()
226 IN EFI_LBA Lba, in XenPvBlkDxeBlockIoWriteBlocks() argument
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/
DFlashBlockIoDxe.c27 IN EFI_LBA Lba, in FlashBlockIoReadBlocks() argument
37 …, Lba=%ld, BufferSize=0x%x bytes (%d kB), BufferPtr @ 0x%08x)\n", MediaId, Lba, BufferSizeInBytes,… in FlashBlockIoReadBlocks()
49 Status = FlashReadBlocks (Instance, Lba, BufferSizeInBytes, Buffer); in FlashBlockIoReadBlocks()
63 IN EFI_LBA Lba, in FlashBlockIoWriteBlocks() argument
73 …, Lba=%ld, BufferSize=0x%x bytes (%d kB), BufferPtr @ 0x%08x)\n", MediaId, Lba, BufferSizeInBytes,… in FlashBlockIoWriteBlocks()
89 Status = FlashWriteBlocks (Instance, Lba, BufferSizeInBytes, Buffer); in FlashBlockIoWriteBlocks()
DFlashFvbDxe.h60 #define GET_BLOCK_ADDRESS(BaseAddr,Lba,LbaSize)( BaseAddr + (UINTN)((Lba) * LbaSize) ) argument
107 IN EFI_LBA Lba,
120 IN EFI_LBA Lba,
170 IN EFI_LBA Lba,
179 IN EFI_LBA Lba,
189 IN EFI_LBA Lba,
215 IN EFI_LBA Lba,
223 IN EFI_LBA Lba,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/
DFvb.c63 IN EFI_LBA Lba, in EfiFvbReadBlock() argument
90 …return EfiCallEsalService (&Guid, Read, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer,… in EfiFvbReadBlock()
96 IN EFI_LBA Lba, in EfiFvbWriteBlock() argument
123 …return EfiCallEsalService (&Guid, Write, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer… in EfiFvbWriteBlock()
129 IN UINTN Lba in EfiFvbEraseBlock() argument
147 return EfiCallEsalService (&Guid, EraseBlock, Instance, Lba, 0, 0, 0, 0, 0).Status; in EfiFvbEraseBlock()
233 IN EFI_LBA Lba, in EfiFvbGetBlockSize() argument
265 Lba, in EfiFvbGetBlockSize()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/RamDiskDxe/
DRamDiskBlockIo.c132 IN EFI_LBA Lba, in RamDiskBlkIoReadBlocks() argument
158 if (Lba > PrivateData->Media.LastBlock) { in RamDiskBlkIoReadBlocks()
163 if ((Lba + NumberOfBlocks - 1) > PrivateData->Media.LastBlock) { in RamDiskBlkIoReadBlocks()
169 (VOID *)(UINTN)(PrivateData->StartingAddr + MultU64x32 (Lba, PrivateData->Media.BlockSize)), in RamDiskBlkIoReadBlocks()
207 IN EFI_LBA Lba, in RamDiskBlkIoWriteBlocks() argument
237 if (Lba > PrivateData->Media.LastBlock) { in RamDiskBlkIoWriteBlocks()
242 if ((Lba + NumberOfBlocks - 1) > PrivateData->Media.LastBlock) { in RamDiskBlkIoWriteBlocks()
247 (VOID *)(UINTN)(PrivateData->StartingAddr + MultU64x32 (Lba, PrivateData->Media.BlockSize)), in RamDiskBlkIoWriteBlocks()
337 IN EFI_LBA Lba, in RamDiskBlkIo2ReadBlocksEx() argument
351 Lba, in RamDiskBlkIo2ReadBlocksEx()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/
DNorFlashBlockIoDxe.c47 IN EFI_LBA Lba, in NorFlashBlockIoReadBlocks() argument
63 …, Lba=%ld, BufferSize=0x%x bytes (%d kB), BufferPtr @ 0x%08x)\n", MediaId, Lba, BufferSizeInBytes,… in NorFlashBlockIoReadBlocks()
74 Status = NorFlashReadBlocks (Instance, Lba, BufferSizeInBytes, Buffer); in NorFlashBlockIoReadBlocks()
88 IN EFI_LBA Lba, in NorFlashBlockIoWriteBlocks() argument
98 …, Lba=%ld, BufferSize=0x%x bytes (%d kB), BufferPtr @ 0x%08x)\n", MediaId, Lba, BufferSizeInBytes,… in NorFlashBlockIoWriteBlocks()
107 Status = NorFlashWriteBlocks (Instance,Lba,BufferSizeInBytes,Buffer); in NorFlashBlockIoWriteBlocks()
DNorFlashDxe.h53 #define GET_NOR_BLOCK_ADDRESS(BaseAddr,Lba,LbaSize)( BaseAddr + (UINTN)((Lba) * LbaSize) ) argument
189 IN EFI_LBA Lba,
202 IN EFI_LBA Lba,
277 IN EFI_LBA Lba,
286 IN EFI_LBA Lba,
296 IN EFI_LBA Lba,
322 IN EFI_LBA Lba,
331 IN EFI_LBA Lba,
339 IN EFI_LBA Lba,
347 IN EFI_LBA Lba,
[all …]
DNorFlashDxe.c578 IN EFI_LBA Lba, in NorFlashWriteFullBlock() argument
596 BlockAddress = GET_NOR_BLOCK_ADDRESS (Instance->RegionBaseAddress, Lba, BlockSizeInWords * 4); in NorFlashWriteFullBlock()
682 IN EFI_LBA Lba, in NorFlashWriteBlocks() argument
718 …WriteBlocks: NumBlocks=%d, LastBlock=%ld, Lba=%ld.\n", NumBlocks, Instance->Media.LastBlock, Lba)); in NorFlashWriteBlocks()
720 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) { in NorFlashWriteBlocks()
731 CurrentBlock = Lba; in NorFlashWriteBlocks()
809 IN EFI_LBA Lba, in NorFlashReadBlocks() argument
818 BufferSizeInBytes, Instance->Media.BlockSize, Instance->Media.LastBlock, Lba)); in NorFlashReadBlocks()
838 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) { in NorFlashReadBlocks()
845 Lba, in NorFlashReadBlocks()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/
DMmcBlockIo.c136 IN EFI_LBA Lba, in MmcTransferBlock() argument
154 CmdArg = Lba; in MmcTransferBlock()
156 CmdArg = Lba * This->Media->BlockSize; in MmcTransferBlock()
167 Status = MmcHost->ReadBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
180 Status = MmcHost->WriteBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
224 IN EFI_LBA Lba, in MmcIoBlocks() argument
264 if ((Lba + (BufferSize / This->Media->BlockSize)) > (This->Media->LastBlock + 1)) { in MmcIoBlocks()
330 Status = MmcTransferBlock (This, Cmd, Transfer, MediaId, Lba, ConsumeSize, Buffer); in MmcIoBlocks()
337 Lba += BlockCount; in MmcIoBlocks()
350 IN EFI_LBA Lba, in MmcReadBlocks() argument
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxSpiFvDxe/
DStyxSpiFvDxe.c189 IN EFI_LBA Lba, in StyxSpiFvDxeGetBlockSize() argument
195 *NumberOfBlocks = mNvStorageSize / BLOCK_SIZE - (UINTN)Lba; in StyxSpiFvDxeGetBlockSize()
251 IN EFI_LBA Lba, in StyxSpiFvDxeRead() argument
263 Base = (VOID *)mNvStorageBase + Lba * BLOCK_SIZE + Offset; in StyxSpiFvDxeRead()
274 Lba += mNvStorageLbaOffset; in StyxSpiFvDxeRead()
276 Lba * BLOCK_SIZE + Offset, Buffer, *NumBytes); in StyxSpiFvDxeRead()
349 IN EFI_LBA Lba, in StyxSpiFvDxeWrite() argument
362 Base = (VOID *)mNvStorageBase + Lba * BLOCK_SIZE + Offset; in StyxSpiFvDxeWrite()
364 Lba += mNvStorageLbaOffset; in StyxSpiFvDxeWrite()
366 Lba * BLOCK_SIZE + Offset, Buffer, *NumBytes); in StyxSpiFvDxeWrite()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/
DNvmExpressBlockIo.c34 IN UINT64 Lba, in ReadSectors() argument
65 CommandPacket.NvmeCmd->Cdw10 = (UINT32)Lba; in ReadSectors()
66 CommandPacket.NvmeCmd->Cdw11 = (UINT32)RShiftU64(Lba, 32); in ReadSectors()
97 IN UINT64 Lba, in WriteSectors() argument
128 CommandPacket.NvmeCmd->Cdw10 = (UINT32)Lba; in WriteSectors()
129 CommandPacket.NvmeCmd->Cdw11 = (UINT32)RShiftU64(Lba, 32); in WriteSectors()
166 IN UINT64 Lba, in NvmeRead() argument
206 Status = ReadSectors (Device, (UINT64)(UINTN)Buffer, Lba, MaxTransferBlocks); in NvmeRead()
210 Lba += MaxTransferBlocks; in NvmeRead()
212 Status = ReadSectors (Device, (UINT64)(UINTN)Buffer, Lba, (UINT32)Blocks); in NvmeRead()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
DFlashUpdate.c34 IN EFI_LBA Lba, in UpdateOneBlock() argument
47 Lba, // Lba in UpdateOneBlock()
61 Lba, // Lba in UpdateOneBlock()
90 IN EFI_LBA Lba, in UpdateBufferInOneBlock() argument
107 Lba, in UpdateBufferInOneBlock()
133 Lba, in UpdateBufferInOneBlock()
150 Lba, in UpdateBufferInOneBlock()
189 IN OUT EFI_LBA *Lba, in RetrieveLastWrite() argument
210 Lba, in RetrieveLastWrite()
236 Lba, in RetrieveLastWrite()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdDxe/
DSdBlockIo.h63 IN EFI_LBA Lba,
93 IN EFI_LBA Lba,
163 IN EFI_LBA Lba,
196 IN EFI_LBA Lba,
252 IN EFI_LBA Lba,
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/
DFvbService.c198 IN EFI_LBA Lba, in FvbGetLbaAddress()
240 if (Lba >= StartLba && Lba < NextLba) { in FvbGetLbaAddress()
241 Offset = Offset + (UINTN)MultU64x32((Lba - StartLba), BlockLength); in FvbGetLbaAddress()
251 *NumOfBlocks = (UINTN)(NextLba - Lba); in FvbGetLbaAddress()
291 IN EFI_LBA Lba, in FvbReadBlock()
309 Status = FvbGetLbaAddress (Instance, Lba, &LbaAddress, &LbaLength, NULL); in FvbReadBlock()
359 IN EFI_LBA Lba, in FvbWriteBlock()
378 Status = FvbGetLbaAddress (Instance, Lba, &LbaAddress, &LbaLength, NULL); in FvbWriteBlock()
440 IN EFI_LBA Lba in FvbEraseBlock()
460 Status = FvbGetLbaAddress (Instance, Lba, &LbaAddress, &LbaLength, NULL); in FvbEraseBlock()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/
DBiosBlkIo.h185 IN EFI_LBA Lba,
215 IN EFI_LBA Lba,
278 IN EFI_LBA Lba,
308 IN EFI_LBA Lba,
337 IN EFI_LBA Lba,
367 IN EFI_LBA Lba,
DBiosInt13.c418 IN EFI_LBA Lba, in Edd30BiosReadBlocks() argument
448 if (Lba > Media->LastBlock) { in Edd30BiosReadBlocks()
452 if ((Lba + (BufferSize / BlockSize) - 1) > Media->LastBlock) { in Edd30BiosReadBlocks()
485 AddressPacket->Lba = (UINT64) Lba; in Edd30BiosReadBlocks()
535 Lba += NumberOfBlocks; in Edd30BiosReadBlocks()
566 IN EFI_LBA Lba, in Edd30BiosWriteBlocks() argument
596 if (Lba > Media->LastBlock) { in Edd30BiosWriteBlocks()
600 if ((Lba + (BufferSize / BlockSize) - 1) > Media->LastBlock) { in Edd30BiosWriteBlocks()
633 AddressPacket->Lba = (UINT64) Lba; in Edd30BiosWriteBlocks()
691 Lba += NumberOfBlocks; in Edd30BiosWriteBlocks()
[all …]
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/
DFwBlockService.h77 IN EFI_LBA Lba,
88 IN CONST EFI_LBA Lba,
99 IN EFI_LBA Lba,
146 IN EFI_LBA Lba,
182 IN CONST EFI_LBA Lba,
191 IN CONST EFI_LBA Lba,
201 IN EFI_LBA Lba,
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/
DFwBlockService.h66 IN EFI_LBA Lba,
78 IN EFI_LBA Lba,
90 IN EFI_LBA Lba,
143 IN EFI_LBA Lba,
183 IN EFI_LBA Lba,
193 IN EFI_LBA Lba,
204 IN EFI_LBA Lba,
/device/linaro/bootloader/edk2/OvmfPkg/BlockMmioToBlockIoDxe/
DBlockIo.c83 IN EFI_LBA Lba, in ReadOrWriteBlocks() argument
121 if (Lba + TotalBlock - 1 > Media->LastBlock) { in ReadOrWriteBlocks()
134 Address += MultU64x32 (Lba, Media->BlockSize); in ReadOrWriteBlocks()
185 IN EFI_LBA Lba, in BlockIoReadBlocks() argument
191 Lba, (UINT64)BufferSize)); in BlockIoReadBlocks()
196 Lba, in BlockIoReadBlocks()
233 IN EFI_LBA Lba, in BlockIoWriteBlocks() argument
239 Lba, (UINT64)BufferSize)); in BlockIoWriteBlocks()
244 Lba, in BlockIoWriteBlocks()
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/
DFvb.c181 IN EFI_LBA Lba, in FvbProtocolGetBlockSize() argument
188 if (Lba > 1) { in FvbProtocolGetBlockSize()
195 *NumberOfBlocks = (UINTN) (2 - (UINTN) Lba); in FvbProtocolGetBlockSize()
455 IN EFI_LBA Lba, in FvbProtocolWrite() argument
467 if ((Lba > 1) || (Offset > FvbDevice->BlockSize)) { in FvbProtocolWrite()
477 MultU64x32 (Lba, (UINT32) FvbDevice->BlockSize) + in FvbProtocolWrite()
482 PlatformFvbDataWritten (This, Lba, Offset, *NumBytes, Buffer); in FvbProtocolWrite()
540 IN EFI_LBA Lba, in FvbProtocolRead() argument
551 if ((Lba > 1) || (Offset > FvbDevice->BlockSize)) { in FvbProtocolRead()
561 MultU64x32 (Lba, (UINT32) FvbDevice->BlockSize) + in FvbProtocolRead()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DDblk.c31 IN CONST UINT64 Lba, in DisplayTheBlocks() argument
62 Status = BlockIo->ReadBlocks(BlockIo, BlockIo->Media->MediaId, Lba, BufferSize, Buffer); in DisplayTheBlocks()
70 Lba, in DisplayTheBlocks()
109 UINT64 Lba; in ShellCommandRunDblk() local
153 Lba = 0; in ShellCommandRunDblk()
159 ShellConvertStringToUint64(LbaString, &Lba, TRUE, FALSE); in ShellCommandRunDblk()
191 …ShellStatus = DisplayTheBlocks(gEfiShellProtocol->GetDevicePathFromMap(BlockName), Lba, (UINT8)Blo… in ShellCommandRunDblk()

123456