Home
last modified time | relevance | path

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

12345

/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/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/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/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/EmbeddedPkg/Universal/MmcDxe/
DMmcBlockIo.c135 IN EFI_LBA Lba, in MmcTransferBlock() argument
152 CmdArg = Lba; in MmcTransferBlock()
154 CmdArg = Lba * This->Media->BlockSize; in MmcTransferBlock()
165 Status = MmcHost->ReadBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
178 Status = MmcHost->WriteBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
223 IN EFI_LBA Lba, in MmcIoBlocks() argument
263 if ((Lba + (BufferSize / This->Media->BlockSize)) > (This->Media->LastBlock + 1)) { in MmcIoBlocks()
329 Status = MmcTransferBlock (This, Cmd, Transfer, MediaId, Lba, ConsumeSize, Buffer); in MmcIoBlocks()
336 Lba += BlockCount; in MmcIoBlocks()
349 IN EFI_LBA Lba, in MmcReadBlocks() argument
[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
191 IN EFI_LBA Lba,
204 IN EFI_LBA Lba,
279 IN EFI_LBA Lba,
288 IN EFI_LBA Lba,
298 IN EFI_LBA Lba,
324 IN EFI_LBA Lba,
333 IN EFI_LBA Lba,
341 IN EFI_LBA Lba,
349 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()
750 IN EFI_LBA Lba, in NorFlashReadBlocks() argument
759 BufferSizeInBytes, Instance->Media.BlockSize, Instance->Media.LastBlock, Lba)); in NorFlashReadBlocks()
779 if ((Lba + NumBlocks) > (Instance->Media.LastBlock + 1)) { in NorFlashReadBlocks()
786 Lba, in NorFlashReadBlocks()
[all …]
/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()
163 IN UINT64 Lba, in NvmeRead() argument
186 Status = ReadSectors (Device, (UINT64)(UINTN)Buffer, Lba, MaxTransferBlocks); in NvmeRead()
190 Lba += MaxTransferBlocks; in NvmeRead()
192 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/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()
381 Status = FvbGetLbaAddress (Instance, Lba, &LbaAddress, &LbaLength, NULL); in FvbWriteBlock()
443 IN EFI_LBA Lba in FvbEraseBlock()
469 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/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/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/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.c32 IN CONST UINT64 Lba, in DisplayTheBlocks() argument
63 Status = BlockIo->ReadBlocks(BlockIo, BlockIo->Media->MediaId, Lba, BufferSize, Buffer); in DisplayTheBlocks()
71 Lba, in DisplayTheBlocks()
110 UINT64 Lba; in ShellCommandRunDblk() local
154 Lba = 0; in ShellCommandRunDblk()
160 ShellConvertStringToUint64(LbaString, &Lba, TRUE, FALSE); in ShellCommandRunDblk()
192 …ShellStatus = DisplayTheBlocks(gEfiShellProtocol->GetDevicePathFromMap(BlockName), Lba, (UINT8)Blo… in ShellCommandRunDblk()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
DUsbMassBoot.c783 IN UINT32 Lba, in UsbBootReadBlocks() argument
819 WriteUnaligned32 ((UINT32 *) ReadCmd.Lba, SwapBytes32 (Lba)); in UsbBootReadBlocks()
834 DEBUG ((EFI_D_BLKIO, "UsbBootReadBlocks: LBA (0x%x), Blk (0x%x)\n", Lba, Count)); in UsbBootReadBlocks()
835 Lba += Count; in UsbBootReadBlocks()
859 IN UINT32 Lba, in UsbBootWriteBlocks() argument
895 WriteUnaligned32 ((UINT32 *) WriteCmd.Lba, SwapBytes32 (Lba)); in UsbBootWriteBlocks()
910 DEBUG ((EFI_D_BLKIO, "UsbBootWriteBlocks: LBA (0x%x), Blk (0x%x)\n", Lba, Count)); in UsbBootWriteBlocks()
912 Lba += Count; in UsbBootWriteBlocks()
935 IN UINT64 Lba, in UsbBootReadBlocks16() argument
969 WriteUnaligned64 ((UINT64 *) &ReadCmd[2], SwapBytes64 (Lba)); in UsbBootReadBlocks16()
[all …]
DUsbMassBoot.h158 UINT8 Lba[4]; ///< Logical block address member
168 UINT8 Lba[4]; member
288 IN UINT32 Lba,
308 IN UINT32 Lba,
328 IN UINT64 Lba,
348 IN UINT64 Lba,
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/
DBlockVariableDxe.c87 IN EFI_LBA Lba, in FvbGetBlockSize() argument
104 IN EFI_LBA Lba, in FvbRead() argument
126 Status = BlockIo->ReadBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba, in FvbRead()
130 Instance->StartLba, Lba, Offset, Status)); in FvbRead()
144 IN EFI_LBA Lba, in FvbWrite() argument
165 Status = BlockIo->ReadBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba, in FvbWrite()
173 Status = BlockIo->WriteBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba, in FvbWrite()
177 Instance->StartLba, Lba, Offset, Status)); in FvbWrite()
181 Status = BlockIo->WriteBlocks (BlockIo, BlockIo->Media->MediaId, Instance->StartLba + Lba, in FvbWrite()
185 Instance->StartLba, Lba, Offset, Status)); in FvbWrite()
[all …]
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/
DFwBlockService.h157 IN EFI_LBA Lba,
168 IN EFI_LBA Lba,
179 IN EFI_LBA Lba,
230 IN EFI_LBA Lba,
266 IN EFI_LBA Lba,
275 IN EFI_LBA Lba,
285 IN EFI_LBA Lba,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/
DFvb.c335 IN EFI_LBA Lba, in EfiFvbReadBlock() argument
367 return mFvbEntry[Instance].Fvb->Read (mFvbEntry[Instance].Fvb, Lba, Offset, NumBytes, Buffer); in EfiFvbReadBlock()
373 IN EFI_LBA Lba, in EfiFvbWriteBlock() argument
405 return mFvbEntry[Instance].Fvb->Write (mFvbEntry[Instance].Fvb, Lba, Offset, NumBytes, Buffer); in EfiFvbWriteBlock()
411 IN EFI_LBA Lba in EfiFvbEraseBlock() argument
434 return mFvbEntry[Instance].Fvb->EraseBlocks (mFvbEntry[Instance].Fvb, Lba, -1); in EfiFvbEraseBlock()
533 IN EFI_LBA Lba, in EfiFvbGetBlockSize() argument
565 …return mFvbEntry[Instance].Fvb->GetBlockSize (mFvbEntry[Instance].Fvb, Lba, BlockSize, NumOfBlocks… in EfiFvbGetBlockSize()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/
DFvb.c332 IN EFI_LBA Lba, in EfiFvbReadBlock() argument
364 return mFvbEntry[Instance].Fvb->Read (mFvbEntry[Instance].Fvb, Lba, Offset, NumBytes, Buffer); in EfiFvbReadBlock()
370 IN EFI_LBA Lba, in EfiFvbWriteBlock() argument
402 return mFvbEntry[Instance].Fvb->Write (mFvbEntry[Instance].Fvb, Lba, Offset, NumBytes, Buffer); in EfiFvbWriteBlock()
408 IN EFI_LBA Lba in EfiFvbEraseBlock() argument
431 return mFvbEntry[Instance].Fvb->EraseBlocks (mFvbEntry[Instance].Fvb, Lba, -1); in EfiFvbEraseBlock()
530 IN EFI_LBA Lba, in EfiFvbGetBlockSize() argument
562 …return mFvbEntry[Instance].Fvb->GetBlockSize (mFvbEntry[Instance].Fvb, Lba, BlockSize, NumOfBlocks… in EfiFvbGetBlockSize()

12345