Home
last modified time | relevance | path

Searched refs:Bytes (Results 1 – 25 of 35) sorted by relevance

12

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/
DDiskImage.c181 UINTN Bytes; in HDiskImageRead() local
217 Bytes = BlkIo->Media->BlockSize * Size; in HDiskImageRead()
218 Buffer = AllocateZeroPool (Bytes); in HDiskImageRead()
232 Bytes, in HDiskImageRead()
247 Status = HBufferImageBufferToList (Buffer, Bytes); in HDiskImageRead()
350 UINTN Bytes; in HDiskImageSave() local
383 Bytes = BlkIo->Media->BlockSize * Size; in HDiskImageSave()
384 Buffer = AllocateZeroPool (Bytes); in HDiskImageSave()
392 Status = HBufferImageListToBuffer (Buffer, Bytes); in HDiskImageSave()
405 Bytes, in HDiskImageSave()
DBufferImage.h221 IN UINTN Bytes
236 IN UINTN Bytes
DBufferImage.c2186 IN UINTN Bytes in HBufferImageBufferToList() argument
2202 while (TempI < Bytes) { in HBufferImageBufferToList()
2203 if (Bytes - TempI >= 0x10) { in HBufferImageBufferToList()
2206 Left = Bytes - TempI; in HBufferImageBufferToList()
2229 if (Left == 0x10 || Bytes == 0) { in HBufferImageBufferToList()
2251 IN UINTN Bytes in HBufferImageListToBuffer() argument
2279 if (Count + Line->Size > Bytes) { in HBufferImageListToBuffer()
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DCommand.c582 IN UINTN Bytes in GetBytes() argument
587 if (Bytes >= 1) { in GetBytes()
590 if (Bytes >= 2) { in GetBytes()
593 if (Bytes >= 3) { in GetBytes()
613 UINTN Bytes; in OutputData() local
621 Bytes = EndAddress - Address; in OutputData()
625 if (Bytes >= 4) { in OutputData()
632 AsciiPrint ("%08x ", GetBytes(Address, Bytes)); in OutputData()
633 Address += Bytes; in OutputData()
634 Line += Bytes; in OutputData()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Variable/BlockVariableDxe/
DBlockVariableDxe.c113 UINTN Bytes; in FvbRead() local
118Bytes = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instanc… in FvbRead()
119 DataPtr = AllocateZeroPool (Bytes); in FvbRead()
124 WriteBackDataCacheRange (DataPtr, Bytes); in FvbRead()
127 Bytes, DataPtr); in FvbRead()
153 UINTN Bytes; in FvbWrite() local
158Bytes = (Offset + *NumBytes + Instance->Media.BlockSize - 1) / Instance->Media.BlockSize * Instanc… in FvbWrite()
159 DataPtr = AllocateZeroPool (Bytes); in FvbWrite()
164 WriteBackDataCacheRange (DataPtr, Bytes); in FvbWrite()
166 Bytes, DataPtr); in FvbWrite()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/
DNvmExpressPassthru.c231 UINTN Bytes; in NvmeCreatePrpList() local
266 Bytes = EFI_PAGES_TO_SIZE (*PrpListNo); in NvmeCreatePrpList()
271 &Bytes, in NvmeCreatePrpList()
276 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (*PrpListNo))) { in NvmeCreatePrpList()
283 ZeroMem (*PrpListHost, Bytes); in NvmeCreatePrpList()
366 UINT32 Bytes; in NvmExpressPassThru() local
486 Bytes = Packet->TransferLength; in NvmExpressPassThru()
488 if ((Offset + Bytes) > (EFI_PAGE_SIZE * 2)) { in NvmExpressPassThru()
493 …Prp = NvmeCreatePrpList (PciIo, PhyAddr, EFI_SIZE_TO_PAGES(Offset + Bytes) - 1, &PrpListHost, &Prp… in NvmExpressPassThru()
499 } else if ((Offset + Bytes) > EFI_PAGE_SIZE) { in NvmExpressPassThru()
DNvmExpressBlockIo.c39 UINT32 Bytes; in ReadSectors() local
48 Bytes = Blocks * BlockSize; in ReadSectors()
61 CommandPacket.TransferLength = Bytes; in ReadSectors()
106 UINT32 Bytes; in WriteSectors() local
111 Bytes = Blocks * BlockSize; in WriteSectors()
124 CommandPacket.TransferLength = Bytes; in WriteSectors()
DNvmExpress.c684 UINTN Bytes; in NvmExpressDriverBindingStart() local
751 Bytes = EFI_PAGES_TO_SIZE (4); in NvmExpressDriverBindingStart()
756 &Bytes, in NvmExpressDriverBindingStart()
761 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (4))) { in NvmExpressDriverBindingStart()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DUsbHcMem.c40 UINTN Bytes; in UsbHcAllocMemBlock() local
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
87 &Bytes, in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
636 UINTN Bytes; in UsbHcAllocateAlignedPages() local
708 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocateAlignedPages()
713 &Bytes, in UsbHcAllocateAlignedPages()
718 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUsbHcMem.c39 UINTN Bytes; in UsbHcAllocMemBlock() local
81 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
86 &Bytes, in UsbHcAllocMemBlock()
91 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
DUhciSched.c39 UINTN Bytes; in UhciInitFrameList() local
49 Bytes = 4096; in UhciInitFrameList()
50 Pages = EFI_SIZE_TO_PAGES (Bytes); in UhciInitFrameList()
69 &Bytes, in UhciInitFrameList()
74 if (EFI_ERROR (Status) || (Bytes != 4096)) { in UhciInitFrameList()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/
DUsbHcMem.c40 UINTN Bytes; in UsbHcAllocMemBlock() local
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
87 &Bytes, in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
DOhci.c2025 UINTN Bytes; in OhciAllocateDev() local
2066 Bytes = 4096; in OhciAllocateDev()
2067 Pages = EFI_SIZE_TO_PAGES (Bytes); in OhciAllocateDev()
2086 &Bytes, in OhciAllocateDev()
2091 if (EFI_ERROR (Status) || (Bytes != 4096)) { in OhciAllocateDev()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DUsbHcMem.c40 UINTN Bytes; in UsbHcAllocMemBlock() local
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
87 &Bytes, in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
DEhciSched.c118 UINTN Bytes; in EhcInitSched() local
132 Bytes = 4096; in EhcInitSched()
133 Pages = EFI_SIZE_TO_PAGES (Bytes); in EhcInitSched()
152 &Bytes, in EhcInitSched()
157 if (EFI_ERROR (Status) || (Bytes != 4096)) { in EhcInitSched()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DEmuThunk.c110 int Bytes; in SecPollStdIn() local
112 Result = ioctl (STDIN_FILENO, FIONREAD, &Bytes); in SecPollStdIn()
117 return (BOOLEAN)(Bytes > 0); in SecPollStdIn()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/
DAhciMode.c1977 UINTN Bytes; in AhciCreateTransferDescriptor() local
2030 Bytes = (UINTN)MaxReceiveFisSize; in AhciCreateTransferDescriptor()
2036 &Bytes, in AhciCreateTransferDescriptor()
2041 if (EFI_ERROR (Status) || (Bytes != MaxReceiveFisSize)) { in AhciCreateTransferDescriptor()
2085 Bytes = (UINTN)MaxCommandListSize; in AhciCreateTransferDescriptor()
2091 &Bytes, in AhciCreateTransferDescriptor()
2096 if (EFI_ERROR (Status) || (Bytes != MaxCommandListSize)) { in AhciCreateTransferDescriptor()
2141 Bytes = (UINTN)MaxCommandTableSize; in AhciCreateTransferDescriptor()
2147 &Bytes, in AhciCreateTransferDescriptor()
2152 if (EFI_ERROR (Status) || (Bytes != MaxCommandTableSize)) { in AhciCreateTransferDescriptor()
/device/linaro/bootloader/edk2/DuetPkg/BiosVideoThunkDxe/
DBiosVideo.c2373 UINTN Bytes; in BiosVideoGraphicsOutputVgaBlt() local
2503 Bytes = Width >> 3; in BiosVideoGraphicsOutputVgaBlt()
2512 Bytes in BiosVideoGraphicsOutputVgaBlt()
2535 Bytes = ((DestinationX + Width - 1) >> 3) - (DestinationX >> 3); in BiosVideoGraphicsOutputVgaBlt()
2538 if (Bytes == 0) { in BiosVideoGraphicsOutputVgaBlt()
2545 Bytes++; in BiosVideoGraphicsOutputVgaBlt()
2550 Bytes++; in BiosVideoGraphicsOutputVgaBlt()
2610 if (Bytes > 1) { in BiosVideoGraphicsOutputVgaBlt()
2626 Bytes - 1, in BiosVideoGraphicsOutputVgaBlt()
2642 …for (Index = 0, Address = StartAddress + Bytes; Index < Height; Index++, Address += BytesPerScanLi… in BiosVideoGraphicsOutputVgaBlt()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/
DBiosVideo.c2770 UINTN Bytes; in BiosVideoGraphicsOutputVgaBlt() local
2900 Bytes = Width >> 3; in BiosVideoGraphicsOutputVgaBlt()
2909 Bytes in BiosVideoGraphicsOutputVgaBlt()
2932 Bytes = ((DestinationX + Width - 1) >> 3) - (DestinationX >> 3); in BiosVideoGraphicsOutputVgaBlt()
2935 if (Bytes == 0) { in BiosVideoGraphicsOutputVgaBlt()
2942 Bytes++; in BiosVideoGraphicsOutputVgaBlt()
2947 Bytes++; in BiosVideoGraphicsOutputVgaBlt()
3007 if (Bytes > 1) { in BiosVideoGraphicsOutputVgaBlt()
3023 Bytes - 1, in BiosVideoGraphicsOutputVgaBlt()
3039 …for (Index = 0, Address = StartAddress + Bytes; Index < Height; Index++, Address += BytesPerScanLi… in BiosVideoGraphicsOutputVgaBlt()
/device/linaro/bootloader/edk2/OvmfPkg/
DVarStore.fdf.inc36 # Blockmap[0]: 0x20 Blocks * 0x1000 Bytes / Block
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DUefiShellDebug1CommandsLib.uni105 " Reserved : %,14ld Pages (%,ld Bytes)\r\n"
106 " LoaderCode: %,14ld Pages (%,ld Bytes)\r\n"
107 " LoaderData: %,14ld Pages (%,ld Bytes)\r\n"
108 " BS_Code : %,14ld Pages (%,ld Bytes)\r\n"
109 " BS_Data : %,14ld Pages (%,ld Bytes)\r\n"
110 " RT_Code : %,14ld Pages (%,ld Bytes)\r\n"
111 " RT_Data : %,14ld Pages (%,ld Bytes)\r\n"
112 " ACPI_Recl : %,14ld Pages (%,ld Bytes)\r\n"
113 " ACPI_NVS : %,14ld Pages (%,ld Bytes)\r\n"
114 " MMIO : %,14ld Pages (%,ld Bytes)\r\n"
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecCryptIo.c785 IN UINTN Bytes in IpSecCryptoIoGenerateRandomBytes() argument
792 if (RandomBytes (OutBuffer, Bytes)) { in IpSecCryptoIoGenerateRandomBytes()
DIpSecCryptIo.h729 IN UINTN Bytes
/device/linaro/bootloader/edk2/DuetPkg/Library/DuetBdsLib/
DBdsPlatform.c98 UINT64 Bytes;
115 Bytes = LShiftU64 (MemMap->NumberOfPages, 12);
118 MemMap->PhysicalStart + Bytes - 1,
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/
DUfsPassThruHci.c1747 UINTN Bytes; in UfsAllocateAlignCommonBuffer() local
1773 Bytes = EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (Size)); in UfsAllocateAlignCommonBuffer()
1778 &Bytes, in UfsAllocateAlignCommonBuffer()
1783 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (Size)))) { in UfsAllocateAlignCommonBuffer()

12