HomeSort by relevance Sort by last modified time
    Searched full:filebuffer (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/
FileBuffer.c 2 Implements filebuffer interface functions.
19 EFI_EDITOR_FILE_BUFFER FileBuffer;
23 // for basic initialization of FileBuffer
68 Initialization function for FileBuffer.
81 // basically initialize the FileBuffer
83 CopyMem (&FileBuffer , &FileBufferConst, sizeof (EFI_EDITOR_FILE_BUFFER));
89 FileBuffer.FileName = EditGetDefaultFileName (L"txt");
90 if (FileBuffer.FileName == NULL) {
94 FileBuffer.ListHead = AllocateZeroPool (sizeof (LIST_ENTRY));
95 if (FileBuffer.ListHead == NULL) {
    [all...]
FileBuffer.h 2 Declares filebuffer interface functions.
21 Initialization function for FileBuffer.
34 Cleanup function for FileBuffer.
77 Backup function for FileBuffer. Only backup the following items:
93 Set the cursor position according to FileBuffer.DisplayPosition.
104 Set FileName field in FileBuffer.
119 Read a file from disk into the FileBuffer.
137 Save lines in FileBuffer to disk
MainTextEditor.c 32 extern EFI_EDITOR_FILE_BUFFER FileBuffer;
325 if (MainEditor.FileBuffer->FileModified) {
360 Status = FileBufferSave (MainEditor.FileBuffer->FileName);
365 MainTitleBarRefresh (MainEditor.FileBuffer->FileName, MainEditor.FileBuffer->FileType, MainEditor.FileBuffer->ReadOnly, MainEditor.FileBuffer->FileModified, MainEditor.ScreenSize.Column, MainEditor.ScreenSize.Row, 0, 0);
389 FileBufferRead (MainEditor.FileBuffer->FileName, TRUE);
395 FileBufferRead (MainEditor.FileBuffer->FileName, TRUE);
417 FileBufferRead (MainEditor.FileBuffer->FileName, TRUE);
    [all...]
TextEditor.h 21 #include "FileBuffer.h"
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/
GenCRC32Section.c 46 IN OUT UINT8 *FileBuffer,
59 FileBuffer - Buffer containing data to sign
61 BufferSize - On input, the size of FileBuffer. On output, the size of
91 Status = CalculateCrc32 (FileBuffer, DataSize, &Crc32Checksum);
111 memcpy (SwapBuffer, FileBuffer, DataSize);
112 memcpy (FileBuffer, &Crc32Header, CRC32_SECTION_HEADER_SIZE);
113 memcpy (FileBuffer + CRC32_SECTION_HEADER_SIZE, SwapBuffer, DataSize);
119 FileBuffer[TotalSize] = 0;
163 IN OUT UINT8 **FileBuffer,
194 (*FileBuffer)[Size++] = Temp;
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
ElfConvert.c 153 UINT8 *FileBuffer
156 return (FileBuffer[EI_MAG0] == ELFMAG0 &&
157 FileBuffer[EI_MAG1] == ELFMAG1 &&
158 FileBuffer[EI_MAG2] == ELFMAG2 &&
159 FileBuffer[EI_MAG3] == ELFMAG3);
164 UINT8 **FileBuffer,
175 EiClass = (*FileBuffer)[EI_CLASS];
177 if (!InitializeElf32 (*FileBuffer, &ElfFunctions)) {
181 if (!InitializeElf64 (*FileBuffer, &ElfFunctions)) {
224 free (*FileBuffer);
    [all...]
GenFw.h 47 UINT8 *FileBuffer
52 UINT8 **FileBuffer,
Elf32Convert.h 21 UINT8 *FileBuffer,
Elf64Convert.h 21 UINT8 *FileBuffer,
GenFw.c 100 IN OUT UINT8 *FileBuffer,
107 IN OUT UINT8 *FileBuffer,
537 UINT8 **FileBuffer,
552 PeHdr = GetPeCoffHeader ((void *) *FileBuffer);
633 memcpy (XipFile, *FileBuffer, PeHdr->Pe32.OptionalHeader.SizeOfHeaders);
649 *FileBuffer + SectionHeader->PointerToRawData,
660 free (*FileBuffer);
662 *FileBuffer = XipFile;
827 IN OUT UINT8 *FileBuffer,
839 FileBuffer - Pointer to PeImage.
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/SecurityStubDxe/
SecurityStub.c 94 FileBuffer memory. The TCG measurement code will record the FileBuffer contents into the
96 image in FileBuffer of length FileSize . The origin of the image will be DevicePath in
98 If the FileBuffer is NULL, the interface will determine if the DevicePath can be connected
104 @param FileBuffer A pointer to the buffer with the UEFI file image.
111 FileBuffer did authenticate, and the platform policy dictates
114 and non-NULL FileBuffer did authenticate, and the platform
116 FileBuffer.
117 @retval EFI_SUCCESS FileBuffer is NULL and current user has permission to start
119 @retval EFI_SECURITY_VIOLATION The file specified by DevicePath and FileBuffer did not
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
Security2.h 48 FileBuffer memory. The TCG measurement code will record the FileBuffer contents into the
50 image in FileBuffer of length FileSize . The origin of the image will be DevicePath in
52 If the FileBuffer is NULL, the interface will determine if the DevicePath can be connected
58 @param FileBuffer A pointer to the buffer with the UEFI file image.
65 FileBuffer did authenticate, and the platform policy dictates
68 and non-NULL FileBuffer did authenticate, and the platform
70 FileBuffer.
71 @retval EFI_SUCCESS FileBuffer is NULL and current user has permission to start
73 @retval EFI_SECURITY_VIOLATION The file specified by DevicePath and FileBuffer did not
    [all...]
  /external/zlib/src/contrib/iostream/
test.cpp 6 // Construct a stream object with this filebuffer. Anything sent
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
UpdateDispatcher.c 364 UINT8 *FileBuffer;
374 FileBuffer = NULL;
379 (VOID **) &FileBuffer,
407 if (FileBuffer != NULL) {
408 FreePool (FileBuffer);
411 FileBuffer = NULL;
418 (VOID **) &FileBuffer,
430 FileBuffer,
461 FileBuffer,
478 FileBuffer,
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenSection/
GenSection.c 283 UINT8 *FileBuffer,
291 into FileBuffer.
299 FileBuffer - Output buffer to contain data
301 BufferLength - On input, this is size of the FileBuffer.
309 EFI_BUFFER_TOO_SMALL FileBuffer is not enough to contain all file data.
346 if (FileSize > 0 && FileBuffer != NULL && (Size + (UINTN) FileSize) <= *BufferLength) {
347 if (fread (FileBuffer + Size, (size_t) FileSize, 1, InFile) != 1) {
360 if (FileBuffer != NULL && Size < *BufferLength) {
361 FileBuffer[Size] = 0;
417 UINT8 *FileBuffer;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeSecurityManagementLib/
DxeSecurityManagementLib.c 223 VOID *FileBuffer;
241 FileBuffer = NULL;
253 if (FileBuffer == NULL) {
259 FileBuffer = GetFileBufferByFilePath (FALSE, FilePath, &FileSize, &AuthenticationStatus);
260 if (FileBuffer == NULL) {
264 FileBuffer = GetFileBufferByFilePath (TRUE, FilePath, &FileSize, &AuthenticationStatus);
266 if ((FileBuffer != NULL) && (!EFI_ERROR (Status))) {
277 FileBuffer,
285 if (FileBuffer != NULL) {
286 FreePool (FileBuffer);
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/C/GenCrc32/
GenCrc32.c 131 UINT8 *FileBuffer;
150 FileBuffer = NULL;
289 FileBuffer = (UINT8 *) malloc (FileSize);
290 if (FileBuffer == NULL) {
295 fread (FileBuffer, 1, FileSize, InFile);
312 Status = CalculateCrc32 (FileBuffer, FileSize, &Crc32Value);
322 fwrite (FileBuffer, 1, FileSize, OutFile);
328 Status = CalculateCrc32 (FileBuffer + sizeof (UINT32), FileSize - sizeof (UINT32), &Crc32Value);
333 VerboseMsg ("The calculated CRC32 value is 0x%08x and File Crc32 value is 0x%08x", (unsigned) Crc32Value, (unsigned) (*(UINT32 *)FileBuffer));
334 if (Crc32Value != *(UINT32 *)FileBuffer) {
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
SecurityManagementLib.h 62 FileBuffer will be NULL and FileSize will be 0 if the handler being called
70 @param[in] FileBuffer The file buffer matches the input file device path.
91 IN VOID *FileBuffer,
164 @param[in] FileBuffer A pointer to the buffer with the UEFI file image
169 FileBuffer did authenticate, and the platform policy dictates
172 and non-NULL FileBuffer did authenticate, and the platform
174 FileBuffer.
175 @retval EFI_SUCCESS FileBuffer is NULL and current user has permission to start
177 @retval EFI_SECURITY_VIOLATION The file specified by DevicePath and FileBuffer did not
181 @retval EFI_ACCESS_DENIED The file specified by File and FileBuffer did not
    [all...]
  /external/curl/src/
tool_parsecfg.c 51 char filebuffer[512]; local
64 if(strlen(home) < (sizeof(filebuffer) - strlen(CURLRC))) {
65 snprintf(filebuffer, sizeof(filebuffer),
72 file = fopen(filebuffer, FOPEN_READTEXT);
75 filename = filebuffer;
82 int n = GetModuleFileName(0, filebuffer, sizeof(filebuffer));
83 if(n > 0 && n < (int)sizeof(filebuffer)) {
85 char *lastdirchar = strrchr(filebuffer, '\\');
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/C/GenSec/
GenSec.c 394 UINT8 *FileBuffer,
402 into FileBuffer.
412 FileBuffer - Output buffer to contain data
414 BufferLength - On input, this is size of the FileBuffer.
422 EFI_BUFFER_TOO_SMALL FileBuffer is not enough to contain all file data.
460 if (FileBuffer != NULL && Size < *BufferLength) {
461 FileBuffer[Size] = 0;
535 if (FileBuffer != NULL && ((Size + Offset) < *BufferLength)) {
539 memset (FileBuffer + Size, 0, Offset);
540 SectHeader = (EFI_COMMON_SECTION_HEADER *) (FileBuffer + Size);
    [all...]
  /device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageAuthenticationStatusLib/
DxeImageAuthenticationStatusLib.c 26 @param[in] FileBuffer File buffer matches the input file device path.
32 @retval EFI_ACCESS_DENIED The file specified by File and FileBuffer did not
42 IN VOID *FileBuffer,
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/
fwimage.c 110 IN UINT8 *FileBuffer,
166 Section = (EFI_IMAGE_SECTION_HEADER *) &FileBuffer[DosHdr->e_lfanew + SectionOffset];
172 FileBuffer + DosHdr->e_lfanew + SectionOffset,
181 memset (FileBuffer + PdataOffset, 0, PdataSize);
194 IN UINT8 *FileBuffer,
210 SectionHeader = (EFI_IMAGE_SECTION_HEADER *)(FileBuffer + DosHdr->e_lfanew + sizeof(UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + PeHdr->PeHeader32.FileHeader.SizeOfOptionalHeader);
244 SectionHeader = (EFI_IMAGE_SECTION_HEADER *)(FileBuffer + DosHdr->e_lfanew + sizeof(UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + PeHdr->PeHeader64.FileHeader.SizeOfOptionalHeader);
317 UINT8 *FileBuffer;
461 FReadFile (fpIn, (VOID **)&FileBuffer, &FileLength);
465 DosHdr = (EFI_IMAGE_DOS_HEADER *) FileBuffer;
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/
GenFfsFile.c 502 IN OUT UINT8 *FileBuffer,
517 FileBuffer - Buffer containing data to sign
519 BufferSize - On input, the size of FileBuffer. On output, the size of
562 memcpy (SwapBuffer, FileBuffer, DataSize);
563 memcpy (FileBuffer, &GuidSectionHeader, sizeof (EFI_GUID_DEFINED_SECTION));
564 memcpy (FileBuffer + sizeof (EFI_GUID_DEFINED_SECTION), SwapBuffer, DataSize);
570 FileBuffer[TotalSize] = 0;
586 UINT8 *FileBuffer,
601 FileBuffer - Buffer containing data to Compress
603 BufferSize - On input, the size of FileBuffer. On output, the size of
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/C/GenFfs/
GenFfs.c 240 OUT UINT8 *FileBuffer,
250 into FileBuffer.
260 FileBuffer - Output buffer to contain data
262 BufferLength - On input, this is size of the FileBuffer.
274 EFI_BUFFER_TOO_SMALL FileBuffer is not enough to contain all file data.
383 if (FileBuffer != NULL && ((Size + Offset) < *BufferLength)) {
387 memset (FileBuffer + Size, 0, Offset);
388 SectHeader = (EFI_FREEFORM_SUBTYPE_GUID_SECTION *) (FileBuffer + Size);
426 if ((FileSize > 0) && (FileBuffer != NULL) && ((Size + FileSize) <= *BufferLength)) {
427 if (fread (FileBuffer + Size, (size_t) FileSize, 1, InFile) != 1) {
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
BmBoot.c 269 VOID *FileBuffer;
274 FileBuffer = GetFileBufferByFilePath (TRUE, DevicePath, FileSize, &AuthenticationStatus);
275 if (FileBuffer != NULL) {
278 return FileBuffer;
292 FileBuffer = BmGetFileBufferByMemmapFv (NewDevicePath, FullPath, FileSize);
295 if (FileBuffer != NULL) {
296 return FileBuffer;
309 for (Index = 0; (Index < FvHandleCount) && (FileBuffer == NULL); Index++) {
317 FileBuffer = BmGetFileBufferByMemmapFv (NewDevicePath, FullPath, FileSize);
324 return FileBuffer;
    [all...]

Completed in 618 milliseconds

1 2 3 4