/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/ |
D | VariableSmm.c | 352 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 …]
|
D | VariableSmmRuntimeDxe.c | 247 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/ |
D | DmpStore.c | 143 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/ |
D | SmmVariableCommon.h | 92 UINTN NameSize; member 102 UINTN NameSize; // Return name buffer size member 120 UINTN NameSize; member
|
D | VariableFormat.h | 146 UINT32 NameSize; member 189 UINT32 NameSize; member
|
D | StatusCodeDataTypeVariable.h | 30 UINTN NameSize; member
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/ |
D | BmMisc.c | 337 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/ |
D | BdsEntry.c | 717 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()
|
D | Hotkey.c | 463 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/ |
D | Info.c | 124 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/ |
D | Variable.c | 161 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/ |
D | ShellEnvVar.c | 135 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/ |
D | SerializeVariablesLib.c | 61 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/ |
D | AuthService.c | 1573 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/ |
D | BdsEntry.c | 1141 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/ |
D | Dp.c | 171 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/ |
D | SemihostFs.c | 454 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/ |
D | VariableFormat.h | 43 UINT32 NameSize; member
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/ |
D | EfiVariable.h | 82 UINT32 NameSize; member
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
D | BdsMisc.c | 1550 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/ |
D | BdsMisc.c | 1542 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/ |
D | Dp.c | 224 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/ |
D | Terminal.c | 1457 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/ |
D | ConfigRouting.c | 1608 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/ |
D | QemuKernel.c | 306 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()
|