Home
last modified time | relevance | path

Searched refs:NameSize (Results 1 – 25 of 43) sorted by relevance

12

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariableSmm.c352 UINTN NameSize; in SmmVariableGetStatistics() local
381 NameSize = StrSize (VariableInfo->Name); in SmmVariableGetStatistics()
382 StatisticsInfoSize = sizeof (VARIABLE_INFO_ENTRY) + NameSize; in SmmVariableGetStatistics()
388 CopyMem (InfoName, VariableInfo->Name, NameSize); in SmmVariableGetStatistics()
398 NameSize = StrSize (VariableInfo->Name); in SmmVariableGetStatistics()
399 if (NameSize <= InfoNameMaxSize) { in SmmVariableGetStatistics()
400 if (CompareMem (VariableInfo->Name, InfoName, NameSize) == 0) { in SmmVariableGetStatistics()
420 NameSize = StrSize (VariableInfo->Name); in SmmVariableGetStatistics()
421 StatisticsInfoSize = sizeof (VARIABLE_INFO_ENTRY) + NameSize; in SmmVariableGetStatistics()
428 CopyMem (InfoName, VariableInfo->Name, NameSize); in SmmVariableGetStatistics()
[all …]
DVariableSmmRuntimeDxe.c247 VariableToLock->NameSize = VariableNameSize; in VariableLockRequestToLock()
248 CopyMem (VariableToLock->Name, VariableName, VariableToLock->NameSize); in VariableLockRequestToLock()
348 CommVariableProperty->NameSize = VariableNameSize; in VarCheckVariablePropertySet()
349 CopyMem (CommVariableProperty->Name, Name, CommVariableProperty->NameSize); in VarCheckVariablePropertySet()
418 CommVariableProperty->NameSize = VariableNameSize; in VarCheckVariablePropertyGet()
419 CopyMem (CommVariableProperty->Name, Name, CommVariableProperty->NameSize); in VarCheckVariablePropertyGet()
506 SmmVariableHeader->NameSize = VariableNameSize; in RuntimeServiceGetVariable()
512 CopyMem (SmmVariableHeader->Name, VariableName, SmmVariableHeader->NameSize); in RuntimeServiceGetVariable()
538 …CopyMem (Data, (UINT8 *)SmmVariableHeader->Name + SmmVariableHeader->NameSize, SmmVariableHeader->… in RuntimeServiceGetVariable()
617 SmmGetNextVariableName->NameSize = OutVariableNameSize; in RuntimeServiceGetNextVariableName()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DDmpStore.c143 UINT32 NameSize; in LoadVariablesFromFile() local
170 BufferSize = sizeof (NameSize); in LoadVariablesFromFile()
171 Status = ShellReadFile (FileHandle, &BufferSize, &NameSize); in LoadVariablesFromFile()
172 if (EFI_ERROR (Status) || (BufferSize != sizeof (NameSize))) { in LoadVariablesFromFile()
190 RemainingSize = NameSize + sizeof (EFI_GUID) + sizeof (UINT32) + DataSize + sizeof (Crc32); in LoadVariablesFromFile()
191 BufferSize = sizeof (NameSize) + sizeof (DataSize) + RemainingSize; in LoadVariablesFromFile()
208 * (UINT32 *) Buffer = NameSize; in LoadVariablesFromFile()
210 BufferSize = RemainingSize + sizeof (NameSize) + sizeof (DataSize) - sizeof (Crc32); in LoadVariablesFromFile()
224 Variable = AllocateZeroPool (sizeof (*Variable) + NameSize + DataSize); in LoadVariablesFromFile()
233 Variable->Data = (UINT8 *) Variable->Name + NameSize; in LoadVariablesFromFile()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Guid/
DSmmVariableCommon.h92 UINTN NameSize; member
102 UINTN NameSize; // Return name buffer size member
120 UINTN NameSize; member
DVariableFormat.h146 UINT32 NameSize; member
189 UINT32 NameSize; member
DStatusCodeDataTypeVariable.h30 UINTN NameSize; member
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
DBmMisc.c337 UINTN NameSize; in BmSetVariableAndReportStatusCodeOnError() local
347 NameSize = StrSize (VariableName); in BmSetVariableAndReportStatusCodeOnError()
348 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize); in BmSetVariableAndReportStatusCodeOnError()
351 SetVariableStatus->NameSize = NameSize; in BmSetVariableAndReportStatusCodeOnError()
355 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in BmSetVariableAndReportStatusCodeOnError()
356 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Data, DataSize); in BmSetVariableAndReportStatusCodeOnError()
365 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize in BmSetVariableAndReportStatusCodeOnError()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/
DBdsEntry.c717 UINTN NameSize; in BdsDxeSetVariableAndReportStatusCodeOnError() local
727 NameSize = StrSize (VariableName); in BdsDxeSetVariableAndReportStatusCodeOnError()
728 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
731 SetVariableStatus->NameSize = NameSize; in BdsDxeSetVariableAndReportStatusCodeOnError()
735 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
736 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Data, DataSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
745 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize in BdsDxeSetVariableAndReportStatusCodeOnError()
DHotkey.c463 UINTN NameSize; in HotkeyGetOptionNumbers() local
475 NameSize = sizeof (CHAR16); in HotkeyGetOptionNumbers()
476 Name = AllocateZeroPool (NameSize); in HotkeyGetOptionNumbers()
479 NewNameSize = NameSize; in HotkeyGetOptionNumbers()
482 Name = ReallocatePool (NameSize, NewNameSize, Name); in HotkeyGetOptionNumbers()
485 NameSize = NewNameSize; in HotkeyGetOptionNumbers()
/device/linaro/bootloader/edk2/FatPkg/EnhancedFatDxe/
DInfo.c124 UINTN NameSize; in FatGetVolumeInfo() local
133 NameSize = StrSize (Name); in FatGetVolumeInfo()
134 ResultSize = Size + NameSize; in FatGetVolumeInfo()
157 CopyMem ((CHAR8 *) Buffer + Size, Name, NameSize); in FatGetVolumeInfo()
184 UINTN NameSize; in FatGetVolumeLabelInfo() local
191 NameSize = StrSize (Name); in FatGetVolumeLabelInfo()
192 ResultSize = Size + NameSize; in FatGetVolumeLabelInfo()
197 CopyMem ((CHAR8 *) Buffer + Size, Name, NameSize); in FatGetVolumeLabelInfo()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/Pei/
DVariable.c161 AuthVariable->NameSize == (UINT32) (-1) || in NameSizeOfVariable()
165 return (UINTN) AuthVariable->NameSize; in NameSizeOfVariable()
169 Variable->NameSize == (UINT32) (-1) || in NameSizeOfVariable()
173 return (UINTN) Variable->NameSize; in NameSizeOfVariable()
199 AuthVariable->NameSize == (UINT32) (-1) || in DataSizeOfVariable()
207 Variable->NameSize == (UINT32) (-1) || in DataSizeOfVariable()
387 IN UINTN NameSize in CompareVariableName() argument
397 …if (((UINTN) Name1 < (UINTN) TargetAddress) && (((UINTN) Name1 + NameSize) > (UINTN) TargetAddress… in CompareVariableName()
409 …if (CompareMem ((UINT8 *) (UINTN) SpareAddress, (UINT8 *) Name2 + PartialNameSize, NameSize - Part… in CompareVariableName()
414 …} else if (((UINTN) Name2 < (UINTN) TargetAddress) && (((UINTN) Name2 + NameSize) > (UINTN) Target… in CompareVariableName()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
DShellEnvVar.c135 UINTN NameSize; in GetEnvironmentVariableList() local
158 NameSize = NameBufferSize; in GetEnvironmentVariableList()
159 Status = gRT->GetNextVariableName(&NameSize, VariableName, &Guid); in GetEnvironmentVariableList()
164 NameBufferSize = NameSize > NameBufferSize * 2 ? NameSize : NameBufferSize * 2; in GetEnvironmentVariableList()
171 NameSize = NameBufferSize; in GetEnvironmentVariableList()
172 Status = gRT->GetNextVariableName(&NameSize, VariableName, &Guid); in GetEnvironmentVariableList()
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/
DSerializeVariablesLib.c61 OUT UINT32 *NameSize, in UnpackVariableFromBuffer() argument
75 *NameSize = *(UINT32*) (BytePtr + Offset); in UnpackVariableFromBuffer()
144 UINT32 NameSize; in IterateVariablesInBuffer() local
169 &NameSize, in IterateVariablesInBuffer()
184 if (NameSize > AlignedNameMaxSize) { in IterateVariablesInBuffer()
188 AlignedName = AllocatePool (NameSize); in IterateVariablesInBuffer()
193 CopyMem (AlignedName, Name, NameSize); in IterateVariablesInBuffer()
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/
DAuthService.c1573 UINT32 NameSize; in FindCertsFromDb() local
1606 NameSize = ReadUnaligned32 (&Ptr->NameSize); in FindCertsFromDb()
1610 sizeof (CHAR16) * NameSize) { in FindCertsFromDb()
1618 if ((NameSize == StrLen (VariableName)) && in FindCertsFromDb()
1619 (CompareMem (Data + Offset, VariableName, NameSize * sizeof (CHAR16)) == 0)) { in FindCertsFromDb()
1620 Offset = Offset + NameSize * sizeof (CHAR16); in FindCertsFromDb()
1640 Offset = Offset + NameSize * sizeof (CHAR16) + CertSize; in FindCertsFromDb()
1904 UINT32 NameSize; in InsertCertsToDb() local
1967 NameSize = (UINT32) StrLen (VariableName); in InsertCertsToDb()
1968 CertNodeSize = sizeof (AUTH_CERT_DB_DATA) + (UINT32) CertDataSize + NameSize * sizeof (CHAR16); in InsertCertsToDb()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/BdsDxe/
DBdsEntry.c1141 UINTN NameSize; in BdsDxeSetVariableAndReportStatusCodeOnError() local
1151 NameSize = StrSize (VariableName); in BdsDxeSetVariableAndReportStatusCodeOnError()
1152 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
1155 SetVariableStatus->NameSize = NameSize; in BdsDxeSetVariableAndReportStatusCodeOnError()
1159 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
1160 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Data, DataSize); in BdsDxeSetVariableAndReportStatusCodeOnError()
1169 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize in BdsDxeSetVariableAndReportStatusCodeOnError()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiDpLib/
DDp.c171 UINTN NameSize; in ShellCommandRunDp() local
269 NameSize = StrLen (CustomCumulativeToken) + 1; in ShellCommandRunDp()
270 CustomCumulativeData->Name = AllocateZeroPool (NameSize); in ShellCommandRunDp()
275 UnicodeStrToAsciiStrS (CustomCumulativeToken, CustomCumulativeData->Name, NameSize); in ShellCommandRunDp()
/device/linaro/bootloader/edk2/ArmPkg/Filesystem/SemihostFs/Arm/
DSemihostFs.c454 UINTN NameSize; in FileDelete() local
464 NameSize = AsciiStrLen (Fcb->FileName); in FileDelete()
465 FileName = AllocatePool (NameSize + 1); in FileDelete()
467 AsciiStrCpyS (FileName, NameSize + 1, Fcb->FileName); in FileDelete()
768 UINTN NameSize = 0; in GetFileInfo() local
775 NameSize = AsciiStrLen (Fcb->FileName) + 1; in GetFileInfo()
776 ResultSize = SIZE_OF_EFI_FILE_INFO + NameSize * sizeof (CHAR16); in GetFileInfo()
795 for (Index = 0; Index < NameSize; Index++) { in GetFileInfo()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/Common/
DVariableFormat.h43 UINT32 NameSize; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/
DEfiVariable.h82 UINT32 NameSize; member
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/
DBdsMisc.c1550 UINTN NameSize; in SetVariableAndReportStatusCodeOnError() local
1560 NameSize = StrSize (VariableName); in SetVariableAndReportStatusCodeOnError()
1561 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize); in SetVariableAndReportStatusCodeOnError()
1564 SetVariableStatus->NameSize = NameSize; in SetVariableAndReportStatusCodeOnError()
1568 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in SetVariableAndReportStatusCodeOnError()
1570 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Data, DataSize); in SetVariableAndReportStatusCodeOnError()
1580 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize in SetVariableAndReportStatusCodeOnError()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/
DBdsMisc.c1542 UINTN NameSize; in SetVariableAndReportStatusCodeOnError() local
1552 NameSize = StrSize (VariableName); in SetVariableAndReportStatusCodeOnError()
1553 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize); in SetVariableAndReportStatusCodeOnError()
1556 SetVariableStatus->NameSize = NameSize; in SetVariableAndReportStatusCodeOnError()
1560 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in SetVariableAndReportStatusCodeOnError()
1562 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Data, DataSize); in SetVariableAndReportStatusCodeOnError()
1572 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + DataSize in SetVariableAndReportStatusCodeOnError()
/device/linaro/bootloader/edk2/PerformancePkg/Dp_App/
DDp.c224 UINTN NameSize; in InitializeDp() local
396 NameSize = StrLen (CustomCumulativeToken) + 1; in InitializeDp()
397 CustomCumulativeData->Name = AllocateZeroPool (NameSize); in InitializeDp()
398 UnicodeStrToAsciiStrS (CustomCumulativeToken, CustomCumulativeData->Name, NameSize); in InitializeDp()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/TerminalDxe/
DTerminal.c1457 UINTN NameSize; in TerminalUpdateConsoleDevVariable() local
1502 NameSize = StrSize (VariableName); in TerminalUpdateConsoleDevVariable()
1503 SetVariableStatus = AllocatePool (sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + VariableSize); in TerminalUpdateConsoleDevVariable()
1506 SetVariableStatus->NameSize = NameSize; in TerminalUpdateConsoleDevVariable()
1510 CopyMem (SetVariableStatus + 1, VariableName, NameSize); in TerminalUpdateConsoleDevVariable()
1511 CopyMem (((UINT8 *) (SetVariableStatus + 1)) + NameSize, Variable, VariableSize); in TerminalUpdateConsoleDevVariable()
1520 sizeof (EDKII_SET_VARIABLE_STATUS) + NameSize + VariableSize in TerminalUpdateConsoleDevVariable()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/
DConfigRouting.c1608 UINTN NameSize; in GetVarStoreType() local
1663 NameSize = AsciiStrSize ((CHAR8 *)IfrEfiVarStore->Name); in GetVarStoreType()
1664 VarStoreName = AllocateZeroPool (NameSize * sizeof (CHAR16)); in GetVarStoreType()
1669 AsciiStrToUnicodeStrS ((CHAR8 *) IfrEfiVarStore->Name, VarStoreName, NameSize); in GetVarStoreType()
1842 UINTN NameSize; in IsThisPackageList() local
1887 NameSize = AsciiStrSize ((CHAR8 *)IfrVarStore->Name); in IsThisPackageList()
1888 VarStoreName = AllocateZeroPool (NameSize * sizeof (CHAR16)); in IsThisPackageList()
1892 AsciiStrToUnicodeStrS ((CHAR8 *)IfrVarStore->Name, VarStoreName, NameSize); in IsThisPackageList()
1905 NameSize = AsciiStrSize ((CHAR8 *)IfrEfiVarStore->Name); in IsThisPackageList()
1906 VarStoreName = AllocateZeroPool (NameSize * sizeof (CHAR16)); in IsThisPackageList()
[all …]
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/PlatformBootManagerLib/
DQemuKernel.c306 UINTN NameSize; in ConvertKernelBlobTypeToFileInfo() local
327 NameSize = (StrLen(Name) + 1) * 2; in ConvertKernelBlobTypeToFileInfo()
328 FileInfoSize = OFFSET_OF (EFI_FILE_INFO, FileName) + NameSize; in ConvertKernelBlobTypeToFileInfo()
346 CopyMem (FileInfo->FileName, Name, NameSize); in ConvertKernelBlobTypeToFileInfo()

12