Home
last modified time | relevance | path

Searched refs:BufferSize (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/
DBlockIo.c80 IN UINTN BufferSize, in XenPvBlkDxeBlockIoReadWriteBlocks() argument
93 if (BufferSize == 0) { in XenPvBlkDxeBlockIoReadWriteBlocks()
97 if (BufferSize % Media->BlockSize != 0) { in XenPvBlkDxeBlockIoReadWriteBlocks()
99 (UINT64)BufferSize)); in XenPvBlkDxeBlockIoReadWriteBlocks()
104 (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) { in XenPvBlkDxeBlockIoReadWriteBlocks()
107 IsWrite ? "Write" : "Read", Lba, (UINT64)BufferSize)); in XenPvBlkDxeBlockIoReadWriteBlocks()
125 NewBuffer = AllocateAlignedPages((BufferSize + EFI_PAGE_SIZE) / EFI_PAGE_SIZE, in XenPvBlkDxeBlockIoReadWriteBlocks()
129 Lba, BufferSize, NewBuffer); in XenPvBlkDxeBlockIoReadWriteBlocks()
130 CopyMem (Buffer, NewBuffer, BufferSize); in XenPvBlkDxeBlockIoReadWriteBlocks()
132 CopyMem (NewBuffer, Buffer, BufferSize); in XenPvBlkDxeBlockIoReadWriteBlocks()
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/BasePrintLib/
DPrintLib.c66 IN UINTN BufferSize, in UnicodeVSPrint() argument
73 …return BasePrintLibSPrintMarker ((CHAR8 *)StartOfBuffer, BufferSize >> 1, FORMAT_UNICODE | OUTPUT_… in UnicodeVSPrint()
114 IN UINTN BufferSize, in UnicodeBSPrint() argument
121 …return BasePrintLibSPrintMarker ((CHAR8 *)StartOfBuffer, BufferSize >> 1, FORMAT_UNICODE | OUTPUT_… in UnicodeBSPrint()
162 IN UINTN BufferSize, in UnicodeSPrint() argument
171 NumberOfPrinted = UnicodeVSPrint (StartOfBuffer, BufferSize, FormatString, Marker); in UnicodeSPrint()
213 IN UINTN BufferSize, in UnicodeVSPrintAsciiFormat() argument
219 …return BasePrintLibSPrintMarker ((CHAR8 *)StartOfBuffer, BufferSize >> 1, OUTPUT_UNICODE, FormatSt… in UnicodeVSPrintAsciiFormat()
259 IN UINTN BufferSize, in UnicodeBSPrintAsciiFormat() argument
265 …return BasePrintLibSPrintMarker ((CHAR8 *)StartOfBuffer, BufferSize >> 1, OUTPUT_UNICODE, FormatSt… in UnicodeBSPrintAsciiFormat()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/
DVarCheckHiiGenFromHii.c27 UINTN BufferSize; in VarCheckHiiGenFromHiiDatabase() local
44 BufferSize = 0; in VarCheckHiiGenFromHiiDatabase()
46 Status = HiiDatabase->ExportPackageLists (HiiDatabase, 0, &BufferSize, Buffer); in VarCheckHiiGenFromHiiDatabase()
51 …locatePages (AllocateAnyPages, EfiBootServicesData, EFI_SIZE_TO_PAGES (BufferSize), &BufferAddress… in VarCheckHiiGenFromHiiDatabase()
58 Status = HiiDatabase->ExportPackageLists (HiiDatabase, 0, &BufferSize, Buffer); in VarCheckHiiGenFromHiiDatabase()
61 …O, "VarCheckHiiGenDxeFromHii - HII Database exported at 0x%x, size = 0x%x\n", Buffer, BufferSize)); in VarCheckHiiGenFromHiiDatabase()
65 DumpHiiDatabase (Buffer, BufferSize); in VarCheckHiiGenFromHiiDatabase()
69 VarCheckParseHiiDatabase (Buffer, BufferSize); in VarCheckHiiGenFromHiiDatabase()
71 gBS->FreePages (BufferAddress, EFI_SIZE_TO_PAGES (BufferSize)); in VarCheckHiiGenFromHiiDatabase()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiInitiatorName.c52 IN OUT UINTN *BufferSize, in IScsiGetInitiatorName() argument
58 if ((BufferSize == NULL) || (Buffer == NULL)) { in IScsiGetInitiatorName()
66 BufferSize, in IScsiGetInitiatorName()
105 IN OUT UINTN *BufferSize, in IScsiSetInitiatorName() argument
111 if ((BufferSize == NULL) || (Buffer == NULL)) { in IScsiSetInitiatorName()
115 if (*BufferSize > ISCSI_NAME_MAX_SIZE) { in IScsiSetInitiatorName()
116 *BufferSize = ISCSI_NAME_MAX_SIZE; in IScsiSetInitiatorName()
122 Status = IScsiNormalizeName ((CHAR8 *) Buffer, *BufferSize - 1); in IScsiSetInitiatorName()
131 *BufferSize, in IScsiSetInitiatorName()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiInitiatorName.c42 IN OUT UINTN *BufferSize, in IScsiGetInitiatorName() argument
48 if ((BufferSize == NULL) || (Buffer == NULL)) { in IScsiGetInitiatorName()
56 BufferSize, in IScsiGetInitiatorName()
85 IN OUT UINTN *BufferSize, in IScsiSetInitiatorName() argument
91 if ((BufferSize == NULL) || (Buffer == NULL)) { in IScsiSetInitiatorName()
95 if (*BufferSize > ISCSI_NAME_MAX_SIZE) { in IScsiSetInitiatorName()
96 *BufferSize = ISCSI_NAME_MAX_SIZE; in IScsiSetInitiatorName()
102 Status = IScsiNormalizeName ((CHAR8 *) Buffer, *BufferSize - 1); in IScsiSetInitiatorName()
111 *BufferSize, in IScsiSetInitiatorName()
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/
DDiagnostics.c58 UINTN BufferSize in GenerateRandomBuffer() argument
64 for (i = 0; i < (BufferSize >> 3); i++) { in GenerateRandomBuffer()
74 UINTN BufferSize in CompareBuffer() argument
81 for (i = 0; i < (BufferSize >> 3); i++) { in CompareBuffer()
97 UINTN BufferSize in MmcReadWriteDataTest() argument
116 BackBuffer = AllocatePool (BufferSize); in MmcReadWriteDataTest()
117 WriteBuffer = AllocatePool (BufferSize); in MmcReadWriteDataTest()
118 ReadBuffer = AllocatePool (BufferSize); in MmcReadWriteDataTest()
121 …s (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,BufferSize,BackBuffer); in MmcReadWriteDataTest()
128 GenerateRandomBuffer (WriteBuffer,BufferSize); in MmcReadWriteDataTest()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/
DBootMonFsReadWrite.c45 IN OUT UINTN *BufferSize, in BootMonFsReadFile() argument
58 (BufferSize == NULL) || in BootMonFsReadFile()
79 *BufferSize = 0; in BootMonFsReadFile()
91 if (*BufferSize > RemainingFileSize) { in BootMonFsReadFile()
92 *BufferSize = RemainingFileSize; in BootMonFsReadFile()
99 *BufferSize, in BootMonFsReadFile()
103 *BufferSize = 0; in BootMonFsReadFile()
106 File->Position += *BufferSize; in BootMonFsReadFile()
135 IN OUT UINTN *BufferSize, in BootMonFsWriteFile() argument
157 *BufferSize = 0; in BootMonFsWriteFile()
[all …]
DBootMonFsDir.c124 IN OUT UINTN *BufferSize, in GetFileSystemVolumeLabelInfo() argument
138 if (*BufferSize >= Size) { in GetFileSystemVolumeLabelInfo()
144 *BufferSize = Size; in GetFileSystemVolumeLabelInfo()
189 IN OUT UINTN *BufferSize, in GetFilesystemInfo() argument
195 if (*BufferSize >= Instance->FsInfo.Size) { in GetFilesystemInfo()
203 *BufferSize = Instance->FsInfo.Size; in GetFilesystemInfo()
212 IN OUT UINTN *BufferSize, in GetFileInfo() argument
221 if (*BufferSize < ResultSize) { in GetFileInfo()
222 *BufferSize = ResultSize; in GetFileInfo()
232 *BufferSize = ResultSize; in GetFileInfo()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcMtftp.c125 IN OUT UINT64 *BufferSize in PxeBcMtftp6GetFileSize() argument
137 *BufferSize = 0; in PxeBcMtftp6GetFileSize()
214 *BufferSize = AsciiStrDecimalToUint64 ((CHAR8 *) (Option[OptCnt - 1].ValueStr)); in PxeBcMtftp6GetFileSize()
254 IN OUT UINT64 *BufferSize, in PxeBcMtftp6ReadFile() argument
291 Token.BufferSize = 0; in PxeBcMtftp6ReadFile()
294 Token.BufferSize = *BufferSize; in PxeBcMtftp6ReadFile()
306 *BufferSize = Token.BufferSize; in PxeBcMtftp6ReadFile()
338 IN OUT UINT64 *BufferSize in PxeBcMtftp6WriteFile() argument
371 Token.BufferSize = *BufferSize; in PxeBcMtftp6WriteFile()
381 *BufferSize = Token.BufferSize; in PxeBcMtftp6WriteFile()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Config/
DTcg2ConfigImpl.c303 IN UINTN BufferSize, in AppendBufferWithTpmAlgHash() argument
310 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L", "); in AppendBufferWithTpmAlgHash()
312 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L"SHA1"); in AppendBufferWithTpmAlgHash()
316 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L", "); in AppendBufferWithTpmAlgHash()
318 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L"SHA256"); in AppendBufferWithTpmAlgHash()
322 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L", "); in AppendBufferWithTpmAlgHash()
324 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L"SHA384"); in AppendBufferWithTpmAlgHash()
328 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L", "); in AppendBufferWithTpmAlgHash()
330 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L"SHA512"); in AppendBufferWithTpmAlgHash()
334 StrCatS (Buffer, BufferSize / sizeof (CHAR16), L", "); in AppendBufferWithTpmAlgHash()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
DFileHandleWrappers.c111 IN OUT UINTN *BufferSize, in FileInterfaceNopGetInfo() argument
133 IN UINTN BufferSize, in FileInterfaceNopSetInfo() argument
156 IN OUT UINTN *BufferSize, in FileInterfaceStdOutWrite() argument
180 IN OUT UINTN *BufferSize, in FileInterfaceStdInWrite() argument
202 IN OUT UINTN *BufferSize, in FileInterfaceStdErrWrite() argument
222 IN OUT UINTN *BufferSize, in FileInterfaceStdOutRead() argument
242 IN OUT UINTN *BufferSize, in FileInterfaceStdErrRead() argument
262 IN OUT UINTN *BufferSize, in FileInterfaceNulRead() argument
266 *BufferSize = 0; in FileInterfaceNulRead()
283 IN OUT UINTN *BufferSize, in FileInterfaceNulWrite() argument
[all …]
DShellEnvVar.h77 #define SHELL_SET_ENVIRONMENT_VARIABLE_NV(EnvVarName,BufferSize,Buffer) \ argument
81 BufferSize, \
97 #define SHELL_GET_ENVIRONMENT_VARIABLE(EnvVarName,BufferSize,Buffer) \ argument
101 BufferSize, \
118 #define SHELL_GET_ENVIRONMENT_VARIABLE_AND_ATTRIBUTES(EnvVarName,Atts,BufferSize,Buffer) \ argument
122 BufferSize, \
138 #define SHELL_SET_ENVIRONMENT_VARIABLE_V(EnvVarName,BufferSize,Buffer) \ argument
142 BufferSize, \
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DPrintLib.h244 IN UINTN BufferSize,
287 IN UINTN BufferSize,
330 IN UINTN BufferSize,
372 IN UINTN BufferSize,
414 IN UINTN BufferSize,
457 IN UINTN BufferSize,
548 IN UINTN BufferSize,
589 IN UINTN BufferSize,
631 IN UINTN BufferSize,
673 IN UINTN BufferSize,
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialDebugPortLib/
DGdbSerialDebugPortLib.c129 UINTN BufferSize; in GdbGetChar() local
132 BufferSize = sizeof (Char); in GdbGetChar()
133 Status = gDebugPort->Read (gDebugPort, gTimeOut, &BufferSize, &Char); in GdbGetChar()
134 } while (EFI_ERROR (Status) || BufferSize != sizeof (Char)); in GdbGetChar()
155 UINTN BufferSize; in GdbPutChar() local
158 BufferSize = sizeof (Char); in GdbPutChar()
159 Status = gDebugPort->Write (gDebugPort, gTimeOut, &BufferSize, &Char); in GdbPutChar()
160 } while (EFI_ERROR (Status) || BufferSize != sizeof (Char)); in GdbPutChar()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/
DUefiIfrForm.c244 IN UINT32 BufferSize in IfrLibInitUpdateData() argument
266 UpdateData->BufferSize = BufferSize; in IfrLibInitUpdateData()
268 UpdateData->Data = EfiLibAllocatePool (BufferSize); in IfrLibInitUpdateData()
338 UINTN BufferSize; in IfrLibUpdateForm() local
357 BufferSize = 0; in IfrLibUpdateForm()
359 Status = HiiDatabase->ExportPackageLists (HiiDatabase, Handle, &BufferSize, HiiPackageList); in IfrLibUpdateForm()
361 HiiPackageList = EfiLibAllocatePool (BufferSize); in IfrLibUpdateForm()
364 Status = HiiDatabase->ExportPackageLists (HiiDatabase, Handle, &BufferSize, HiiPackageList); in IfrLibUpdateForm()
374 BufferSize += Data->Offset; in IfrLibUpdateForm()
375 UpdateBuffer = EfiLibAllocateZeroPool (BufferSize); in IfrLibUpdateForm()
[all …]
DUefiIfrCommon.c271 UINTN BufferSize; in DevicePathToHiiHandle() local
299 BufferSize = EfiDevicePathSize (DevicePath); in DevicePathToHiiHandle()
308 if ((Size == BufferSize) && EfiCompareMem (DevicePath, TmpDevicePath, Size) == 0) { in DevicePathToHiiHandle()
322 BufferSize = 0x1000; in DevicePathToHiiHandle()
323 HiiHandles = EfiLibAllocatePool (BufferSize); in DevicePathToHiiHandle()
329 &BufferSize, in DevicePathToHiiHandle()
334 HiiHandles = EfiLibAllocatePool (BufferSize); in DevicePathToHiiHandle()
341 &BufferSize, in DevicePathToHiiHandle()
355 HandleCount = BufferSize / sizeof (EFI_HII_HANDLE); in DevicePathToHiiHandle()
454 UINTN BufferSize; in ExtractGuidFromHiiHandle() local
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Print/
DPrint.c85 IN UINTN BufferSize
93 IN UINTN BufferSize
101 IN UINTN BufferSize
108 IN UINTN BufferSize, in ASPrint() argument
139 Return = AvSPrint(Buffer, BufferSize, Format, Marker); in ASPrint()
149 IN UINTN BufferSize, in AvSPrint() argument
197 BufferLeft = BufferSize; in AvSPrint()
198 for (Index = 0; (*Format != '\0') && (Index < BufferSize - 1); Format++) { in AvSPrint()
200 if ((*Format == '\n') && (Index < BufferSize - 2)) { in AvSPrint()
275 for (; (*AsciiStr != '\0') && (Index < BufferSize - 1); AsciiStr++) { in AvSPrint()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/
DCEATABlockIo.c85 IN UINTN BufferSize, in CEATABlockReadBlocks() argument
118 if ((BufferSize % CardData->BlockIoMedia.BlockSize) != 0) { in CEATABlockReadBlocks()
124 if (BufferSize == 0) { in CEATABlockReadBlocks()
129 …if ((Address + BufferSize) > MultU64x32 (CardData->BlockIoMedia.LastBlock + 1, CardData->BlockIoMe… in CEATABlockReadBlocks()
137 if (BufferSize < BoundarySize) { in CEATABlockReadBlocks()
138 TransferSize = (UINT32)BufferSize; in CEATABlockReadBlocks()
158 BufferSize -= TransferSize; in CEATABlockReadBlocks()
161 } while (BufferSize != 0); in CEATABlockReadBlocks()
194 IN UINTN BufferSize, in CEATABlockWriteBlocks() argument
227 if ((BufferSize % CardData->BlockIoMedia.BlockSize) != 0) { in CEATABlockWriteBlocks()
[all …]
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/SaveMemoryConfig/
DSaveMemoryConfig.c57 UINTN BufferSize; in SaveMemoryConfigEntryPoint() local
83 BufferSize = DataSize; in SaveMemoryConfigEntryPoint()
84 VariableData = AllocatePool (BufferSize); in SaveMemoryConfigEntryPoint()
90 &BufferSize, in SaveMemoryConfigEntryPoint()
95 VariableData = AllocatePool (BufferSize); in SaveMemoryConfigEntryPoint()
101 &BufferSize, in SaveMemoryConfigEntryPoint()
106 …if (EFI_ERROR(Status) || BufferSize != DataSize || CompareMem (HobData, VariableData, DataSize) !=… in SaveMemoryConfigEntryPoint()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePrintLib.h89 IN UINTN BufferSize,
130 IN UINTN BufferSize,
172 IN UINTN BufferSize,
213 IN UINTN BufferSize,
304 IN UINTN BufferSize,
344 IN UINTN BufferSize,
386 IN UINTN BufferSize,
427 IN UINTN BufferSize,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
DPxeBcMtftp.c110 IN OUT UINT64 *BufferSize in PxeBcTftpGetFileSize() argument
122 *BufferSize = 0; in PxeBcTftpGetFileSize()
195 *BufferSize = AtoU64 (Option[OptCnt - 1].ValueStr); in PxeBcTftpGetFileSize()
239 IN OUT UINT64 *BufferSize, in PxeBcTftpReadFile() argument
278 Token.BufferSize = 0; in PxeBcTftpReadFile()
281 Token.BufferSize = *BufferSize; in PxeBcTftpReadFile()
291 *BufferSize = Token.BufferSize; in PxeBcTftpReadFile()
323 IN OUT UINT64 *BufferSize in PxeBcTftpWriteFile() argument
358 Token.BufferSize = *BufferSize; in PxeBcTftpWriteFile()
365 *BufferSize = Token.BufferSize; in PxeBcTftpWriteFile()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/
DGenCRC32Section.c47 IN OUT UINT32 *BufferSize, in SignSectionWithCrc32() argument
86 *BufferSize = 0; in SignSectionWithCrc32()
123 *BufferSize = TotalSize; in SignSectionWithCrc32()
164 IN OUT UINT32 *BufferSize, in ReadFilesContentsIntoBuffer() argument
227 UINT32 BufferSize; in main() local
246 BufferSize = 1024 * 1024 * 16; in main()
247 FileBuffer = (UINT8 *) malloc (BufferSize * sizeof (UINT8)); in main()
253 ZeroMem (FileBuffer, BufferSize); in main()
261 &BufferSize, in main()
294 Status = SignSectionWithCrc32 (FileBuffer, &BufferSize, ContentSize); in main()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
DBmLib.c81 IN UINTN BufferSize in EfiGrowBuffer() argument
89 if ((*Buffer == NULL) && (BufferSize != 0)) { in EfiGrowBuffer()
102 *Buffer = AllocateZeroPool (BufferSize); in EfiGrowBuffer()
210 UINTN BufferSize; in EfiLibFileSystemVolumeLabelInfo() local
215 BufferSize = SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL + 200; in EfiLibFileSystemVolumeLabelInfo()
220 while (EfiGrowBuffer (&Status, (VOID **) &Buffer, BufferSize)) { in EfiLibFileSystemVolumeLabelInfo()
224 &BufferSize, in EfiLibFileSystemVolumeLabelInfo()
276 UINTN BufferSize; in EfiLibFileInfo() local
282 BufferSize = SIZE_OF_EFI_FILE_INFO + 200; in EfiLibFileInfo()
287 while (EfiGrowBuffer (&Status, (VOID **) &Buffer, BufferSize)) { in EfiLibFileInfo()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Protocol/
DPrint2.h65 IN UINTN BufferSize,
107 IN UINTN BufferSize,
148 IN UINTN BufferSize,
189 IN UINTN BufferSize,
279 IN UINTN BufferSize,
319 IN UINTN BufferSize,
360 IN UINTN BufferSize,
401 IN UINTN BufferSize,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/Print/Ascii/
DPrintWidth.h30 #define ASPrint(Buffer, BufferSize, Format) SPrint (Buffer, BufferSize, Format) argument
31 #define AvSPrint(Buffer, BufferSize, Format, Marker) VSPrint (Buffer, BufferSize, Format, Marker) argument
64 IN UINTN BufferSize,

12345678910>>...20