/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/AcpiTableDxe/ |
D | AmlOption.c | 40 OUT UINTN *DataSize in AmlParseOptionTerm() argument 57 *DataSize = sizeof(UINT8); in AmlParseOptionTerm() 60 *DataSize = sizeof(UINT16); in AmlParseOptionTerm() 63 *DataSize = sizeof(UINT32); in AmlParseOptionTerm() 66 *DataSize = sizeof(UINT64); in AmlParseOptionTerm() 69 *DataSize = AsciiStrSize((CHAR8 *)Buffer); in AmlParseOptionTerm() 72 Status = AmlGetNameStringSize (Buffer, DataSize); in AmlParseOptionTerm() 92 Status = AmlGetNameStringSize (Buffer, DataSize); in AmlParseOptionTerm() 102 *DataSize = AmlGetObjectSize ( in AmlParseOptionTerm() 107 if (*DataSize == 0) { in AmlParseOptionTerm() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/ |
D | Variable.c | 28 UINTN DataSize; member 43 IN UINTN DataSize, in AddEntry() argument 54 Size = SizeOfString + sizeof (VARIABLE_ARRAY_ENTRY) + DataSize; in AddEntry() 68 Entry->DataSize = DataSize; in AddEntry() 71 CopyMem (mVariableArrayNextFree, Data, DataSize); in AddEntry() 72 mVariableArrayNextFree = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + DataSize); in AddEntry() 91 Size = StrSize ((CHAR16 *)(Entry + 1)) + sizeof (VARIABLE_ARRAY_ENTRY) + Entry->DataSize; in DeleteEntry() 139 Size = StrSize ((CHAR16 *)(Entry + 1)) + sizeof (VARIABLE_ARRAY_ENTRY) + Entry->DataSize; in GetVariableArrayEntry() 152 IN OUT UINTN *DataSize, in LibGetVariable() argument 170 if (*DataSize < Entry->DataSize) { in LibGetVariable() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/ |
D | SmmTcg2PhysicalPresenceLib.c | 55 UINTN DataSize; in Tcg2PhysicalPresenceLibReturnOperationResponseToOsFunction() local 63 DataSize = sizeof (EFI_TCG2_PHYSICAL_PRESENCE); in Tcg2PhysicalPresenceLibReturnOperationResponseToOsFunction() 68 &DataSize, in Tcg2PhysicalPresenceLibReturnOperationResponseToOsFunction() 107 UINTN DataSize; in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() local 116 DataSize = sizeof (EFI_TCG2_PHYSICAL_PRESENCE); in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() 121 &DataSize, in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() 140 DataSize = sizeof (EFI_TCG2_PHYSICAL_PRESENCE); in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() 145 DataSize, in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() 156 DataSize = sizeof (EFI_TCG2_PHYSICAL_PRESENCE_FLAGS); in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() 161 &DataSize, in Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/PlatformDxe/ |
D | PlatformConfig.c | 87 UINTN DataSize; in PlatformConfigLoad() local 99 &DataSize); in PlatformConfigLoad() 105 if (DataSize > sizeof *PlatformConfig) { in PlatformConfigLoad() 112 CopyMem (PlatformConfig, Data, DataSize); in PlatformConfigLoad() 117 ZeroMem ((UINT8 *)PlatformConfig + DataSize, in PlatformConfigLoad() 118 sizeof *PlatformConfig - DataSize); in PlatformConfigLoad() 124 if (DataSize >= (OFFSET_OF (PLATFORM_CONFIG, VerticalResolution) + in PlatformConfigLoad()
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/ |
D | SerializeVariablesLib.c | 64 OUT UINT32 *DataSize, in UnpackVariableFromBuffer() argument 100 *DataSize = *(UINT32*) (BytePtr + Offset); in UnpackVariableFromBuffer() 107 Offset = Offset + *DataSize; in UnpackVariableFromBuffer() 149 UINT32 DataSize; in IterateVariablesInBuffer() local 158 DataSize = 0; in IterateVariablesInBuffer() 172 &DataSize, in IterateVariablesInBuffer() 205 DataSize, in IterateVariablesInBuffer() 240 IN UINTN DataSize, in IterateVariablesCallbackNop() argument 256 IN UINTN DataSize, in IterateVariablesCallbackSetInInstance() argument 269 DataSize, in IterateVariablesCallbackSetInInstance() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
D | Ip6ConfigImpl.c | 396 (DataItem->DataSize != DataRecord.DataSize) in Ip6ConfigReadConfigData() 408 DataItem->Data.Ptr = AllocatePool (DataRecord.DataSize); in Ip6ConfigReadConfigData() 418 CopyMem (DataItem->Data.Ptr, Data, DataRecord.DataSize); in Ip6ConfigReadConfigData() 420 DataItem->DataSize = DataRecord.DataSize; in Ip6ConfigReadConfigData() 462 VarSize += sizeof (IP6_CONFIG_DATA_RECORD) + DataItem->DataSize; in Ip6ConfigWriteConfigData() 480 Heap -= DataItem->DataSize; in Ip6ConfigWriteConfigData() 481 CopyMem (Heap, DataItem->Data.Ptr, DataItem->DataSize); in Ip6ConfigWriteConfigData() 485 DataRecord->DataSize = (UINT32) DataItem->DataSize; in Ip6ConfigWriteConfigData() 528 IN OUT UINTN *DataSize, in Ip6ConfigGetIfInfo() argument 551 if (*DataSize < Length) { in Ip6ConfigGetIfInfo() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/ |
D | AuthService.c | 130 OUT UINTN *DataSize in AuthServiceInternalFindVariable() argument 143 *DataSize = AuthVariableInfo.DataSize; in AuthServiceInternalFindVariable() 167 IN UINTN DataSize, in AuthServiceInternalUpdateVariable() argument 177 AuthVariableInfo.DataSize = DataSize; in AuthServiceInternalUpdateVariable() 207 IN UINTN DataSize, in AuthServiceInternalUpdateVariableWithMonotonicCount() argument 219 AuthVariableInfo.DataSize = DataSize; in AuthServiceInternalUpdateVariableWithMonotonicCount() 250 IN UINTN DataSize, in AuthServiceInternalUpdateVariableWithTimeStamp() argument 283 &DataSize in AuthServiceInternalUpdateVariableWithTimeStamp() 292 AuthVariableInfo.DataSize = DataSize; in AuthServiceInternalUpdateVariableWithTimeStamp() 314 UINTN DataSize; in InitSecureBootVariables() local [all …]
|
D | AuthVariableLib.c | 143 UINTN DataSize; in AuthVariableLibInitialize() local 190 &DataSize in AuthVariableLibInitialize() 210 ASSERT ((DataSize != 0) && (Data != NULL)); in AuthVariableLibInitialize() 215 CopyMem (mPubKeyStore, (UINT8 *) Data, DataSize); in AuthVariableLibInitialize() 216 mPubKeyNumber = (UINT32) (DataSize / sizeof (AUTHVAR_KEY_DB_DATA)); in AuthVariableLibInitialize() 265 &DataSize in AuthVariableLibInitialize() 294 …FindVariable (EFI_VENDOR_KEYS_NV_VARIABLE_NAME, &gEfiVendorKeysNvGuid, (VOID **) &Data, &DataSize); in AuthVariableLibInitialize() 377 IN UINTN DataSize, in AuthVariableLibProcessVariable() argument 387 Status = ProcessVarWithPk (VariableName, VendorGuid, Data, DataSize, Attributes, TRUE); in AuthVariableLibProcessVariable() 389 Status = ProcessVarWithPk (VariableName, VendorGuid, Data, DataSize, Attributes, FALSE); in AuthVariableLibProcessVariable() [all …]
|
D | AuthServiceInternal.h | 224 IN UINTN DataSize, 277 IN UINTN DataSize, 311 IN UINTN DataSize, 344 IN UINTN DataSize, 377 IN UINTN DataSize, 412 IN UINTN DataSize, 439 OUT UINTN *DataSize 462 IN UINTN DataSize, 488 IN UINTN DataSize, 515 IN UINTN DataSize,
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm12CommandLib/ |
D | Tpm12NvStorage.c | 44 UINT32 DataSize; member 49 UINT32 DataSize; member 57 UINT32 DataSize; member 152 IN OUT UINT32 *DataSize, in Tpm12NvReadValue() argument 173 SendBuffer.DataSize = SwapBytes32 (*DataSize); in Tpm12NvReadValue() 191 *DataSize = SwapBytes32(RecvBuffer.DataSize); in Tpm12NvReadValue() 192 CopyMem (Data, &RecvBuffer.Data, *DataSize); in Tpm12NvReadValue() 213 IN UINT32 DataSize, in Tpm12NvWriteValue() argument 224 if (DataSize > sizeof(SendBuffer.Data)) { in Tpm12NvWriteValue() 232 TpmSendSize = sizeof (TPM_CMD_NV_WRITE_VALUE) - sizeof(SendBuffer.Data) + DataSize; in Tpm12NvWriteValue() [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | DmpStore.c | 30 UINT32 DataSize; member 109 UINT32 DataSize; in LoadVariablesFromFile() local 145 BufferSize = sizeof (DataSize); in LoadVariablesFromFile() 146 Status = ShellReadFile (FileHandle, &BufferSize, &DataSize); in LoadVariablesFromFile() 147 if (EFI_ERROR (Status) || (BufferSize != sizeof (DataSize))) { in LoadVariablesFromFile() 155 RemainingSize = NameSize + sizeof (EFI_GUID) + sizeof (UINT32) + DataSize + sizeof (Crc32); in LoadVariablesFromFile() 156 BufferSize = sizeof (NameSize) + sizeof (DataSize) + RemainingSize; in LoadVariablesFromFile() 174 * ((UINT32 *) Buffer + 1) = DataSize; in LoadVariablesFromFile() 175 BufferSize = RemainingSize + sizeof (NameSize) + sizeof (DataSize) - sizeof (Crc32); in LoadVariablesFromFile() 189 Variable = AllocateZeroPool (sizeof (*Variable) + NameSize + DataSize); in LoadVariablesFromFile() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/PlatformFspLib/ |
D | PlatformFspLib.c | 39 UINTN DataSize; in PlatformHobCreateFromFsp() 46 DataSize = GET_GUID_HOB_DATA_SIZE(HobList); in PlatformHobCreateFromFsp() 47 DEBUG((EFI_D_ERROR, "gEfiMemoryConfigDataGuid Hob found: 0x%x.\n", DataSize)); in PlatformHobCreateFromFsp() 49 NewHobData = BuildGuidHob (&gEfiMemoryConfigDataGuid, DataSize); in PlatformHobCreateFromFsp() 53 DataSize in PlatformHobCreateFromFsp()
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/SaveMemoryConfig/ |
D | SaveMemoryConfig.c | 56 UINTN DataSize; in SaveMemoryConfigEntryPoint() local 59 DataSize = 0; in SaveMemoryConfigEntryPoint() 79 DataSize = GET_GUID_HOB_DATA_SIZE (GuidHob); in SaveMemoryConfigEntryPoint() 83 BufferSize = DataSize; in SaveMemoryConfigEntryPoint() 106 …if (EFI_ERROR(Status) || BufferSize != DataSize || CompareMem (HobData, VariableData, DataSize) !=… in SaveMemoryConfigEntryPoint() 111 DataSize, in SaveMemoryConfigEntryPoint()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Config2Impl.c | 266 (DataItem->DataSize != DataRecord.DataSize) in Ip4Config2ReadConfigData() 278 DataItem->Data.Ptr = AllocatePool (DataRecord.DataSize); in Ip4Config2ReadConfigData() 288 CopyMem (DataItem->Data.Ptr, Data, DataRecord.DataSize); in Ip4Config2ReadConfigData() 290 DataItem->DataSize = DataRecord.DataSize; in Ip4Config2ReadConfigData() 332 VarSize += sizeof (IP4_CONFIG2_DATA_RECORD) + DataItem->DataSize; in Ip4Config2WriteConfigData() 349 Heap -= DataItem->DataSize; in Ip4Config2WriteConfigData() 350 CopyMem (Heap, DataItem->Data.Ptr, DataItem->DataSize); in Ip4Config2WriteConfigData() 354 DataRecord->DataSize = (UINT32) DataItem->DataSize; in Ip4Config2WriteConfigData() 703 IN UINTN DataSize, in Ip4Config2SetDnsServerWorker() argument 719 if ((DataSize % sizeof (EFI_IPv4_ADDRESS) != 0) || (DataSize == 0)) { in Ip4Config2SetDnsServerWorker() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckUefiLib/ |
D | VarCheckUefiLibNullClass.c | 30 IN UINTN DataSize, 55 IN UINTN DataSize, in InternalVarCheckLoadOption() argument 69 while (Description < (CHAR16 *) ((UINTN) Data + DataSize)) { in InternalVarCheckLoadOption() 75 if ((UINTN) Description >= ((UINTN) Data + DataSize)) { in InternalVarCheckLoadOption() 87 if (((UINTN) FilePathList + FilePathListLength) > ((UINTN) Data + DataSize)) { in InternalVarCheckLoadOption() 115 IN UINTN DataSize, in InternalVarCheckKeyOption() argument 119 if (((DataSize - sizeof (EFI_KEY_OPTION)) % sizeof (EFI_INPUT_KEY)) != 0) { in InternalVarCheckKeyOption() 141 IN UINTN DataSize, in InternalVarCheckDevicePath() argument 145 if (!IsDevicePathValid ((EFI_DEVICE_PATH_PROTOCOL *) Data, DataSize)) { in InternalVarCheckDevicePath() 166 IN UINTN DataSize, in InternalVarCheckAsciiString() argument [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgSmm/ |
D | TcgSmm.c | 54 UINTN DataSize; in PhysicalPresenceCallback() local 62 DataSize = sizeof (EFI_PHYSICAL_PRESENCE); in PhysicalPresenceCallback() 67 &DataSize, in PhysicalPresenceCallback() 100 DataSize = sizeof (EFI_PHYSICAL_PRESENCE); in PhysicalPresenceCallback() 105 DataSize, in PhysicalPresenceCallback() 117 DataSize = sizeof (EFI_PHYSICAL_PRESENCE_FLAGS); in PhysicalPresenceCallback() 122 &DataSize, in PhysicalPresenceCallback() 139 DataSize = sizeof (EFI_PHYSICAL_PRESENCE_FLAGS); in PhysicalPresenceCallback() 144 &DataSize, in PhysicalPresenceCallback() 249 UINTN DataSize; in MemoryClearCallback() local [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/Application/IpsecConfig/ |
D | ForEach.c | 41 UINTN DataSize; in ForeachPolicyEntry() local 48 DataSize = 0; in ForeachPolicyEntry() 80 &DataSize, in ForeachPolicyEntry() 88 Data = AllocateZeroPool (DataSize); in ForeachPolicyEntry() 93 &DataSize, in ForeachPolicyEntry()
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Hash/ |
D | CryptSha512.c | 124 IN UINTN DataSize in Sha384Update() argument 137 if (Data == NULL && DataSize != 0) { in Sha384Update() 144 return (BOOLEAN) (SHA384_Update ((SHA512_CTX *) Sha384Context, Data, DataSize)); in Sha384Update() 293 IN UINTN DataSize in Sha512Update() argument 306 if (Data == NULL && DataSize != 0) { in Sha512Update() 313 return (BOOLEAN) (SHA512_Update ((SHA512_CTX *) Sha512Context, Data, DataSize)); in Sha512Update()
|
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/ |
D | Variable.c | 133 IN UINT32 DataSize, in AccessVariableStore() argument 162 if ((StartAddress + DataSize) > ((UINTN) ((UINT8 *) VolatileBase + VolatileBase->Size))) { in AccessVariableStore() 170 CopyMem ((VOID *) StartAddress, Buffer, DataSize); in AccessVariableStore() 172 CopyMem (Buffer, (VOID *) StartAddress, DataSize); in AccessVariableStore() 199 …if ((StartAddress + DataSize) > ((EFI_PHYSICAL_ADDRESS) (UINTN) ((CHAR8 *)VariableStoreHeader + Va… in AccessVariableStore() 205 CurrWriteSize = DataSize; in AccessVariableStore() 446 Variable->DataSize == (UINT32) -1 || in NameSizeOfVariable() 472 Variable->DataSize == (UINT32) -1 || in DataSizeOfVariable() 477 return (UINTN) Variable->DataSize; in DataSizeOfVariable() 573 VariableHeader.DataSize, in GetVariableDataPtr() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/ |
D | EmuVariable.c | 58 IN UINTN DataSize, 189 …IGN ((UINTN) GetVariableDataPtr (Variable) + Variable->DataSize + GET_PAD_SIZE (Variable->DataSize… in GetNextPotentialVariablePtr() 685 IN UINTN DataSize in AutoUpdateLangVariable() argument 699 if (DataSize == 0) { in AutoUpdateLangVariable() 722 mVariableModuleGlobal->PlatformLangCodes = AllocateRuntimeCopyPool (DataSize, Data); in AutoUpdateLangVariable() 732 mVariableModuleGlobal->PlatformLang = AllocateRuntimePool (DataSize); in AutoUpdateLangVariable() 752 mVariableModuleGlobal->LangCodes = AllocateRuntimeCopyPool (DataSize, Data); in AutoUpdateLangVariable() 770 DataSize = Variable.CurrPtr->DataSize; in AutoUpdateLangVariable() 779 DataSize = Variable.CurrPtr->DataSize; in AutoUpdateLangVariable() 889 IN UINTN DataSize, in UpdateVariable() argument [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEESmm/ |
D | TrEESmm.c | 70 UINTN DataSize; in PhysicalPresenceCallback() local 78 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE); in PhysicalPresenceCallback() 83 &DataSize, in PhysicalPresenceCallback() 118 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE); in PhysicalPresenceCallback() 123 DataSize, in PhysicalPresenceCallback() 136 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE_FLAGS); in PhysicalPresenceCallback() 141 &DataSize, in PhysicalPresenceCallback() 158 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE_FLAGS); in PhysicalPresenceCallback() 163 &DataSize, in PhysicalPresenceCallback() 245 UINTN DataSize; in MemoryClearCallback() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBotPei/ |
D | BotPeim.c | 118 UINTN DataSize; in BotCommandPhase() local 136 DataSize = sizeof (CBW); in BotCommandPhase() 143 &DataSize, in BotCommandPhase() 180 IN UINT32 *DataSize, in BotDataPhase() argument 197 Remain = *DataSize; in BotDataPhase() 242 *DataSize = (UINT32) TransferredSize; in BotDataPhase() 276 UINTN DataSize; in BotStatusPhase() local 284 DataSize = sizeof (CSW); in BotStatusPhase() 294 &DataSize, in BotStatusPhase()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/ |
D | VarCheckHiiLibNullClass.c | 32 IN UINTN DataSize, in VarCheckHiiInternalDumpHex() argument 47 while (DataSize != 0) { in VarCheckHiiInternalDumpHex() 49 if (Size > DataSize) { in VarCheckHiiInternalDumpHex() 50 Size = DataSize; in VarCheckHiiInternalDumpHex() 67 DataSize -= Size; in VarCheckHiiInternalDumpHex() 86 IN UINTN DataSize in VarCheckHiiQuestion() argument 97 if ((UINTN) (HiiQuestion->VarOffset + HiiQuestion->StorageWidth) > DataSize) { in VarCheckHiiQuestion() 98 …orageWidth(0x%02x)) > Size(0x%x)\n", HiiQuestion->VarOffset, HiiQuestion->StorageWidth, DataSize)); in VarCheckHiiQuestion() 158 if ((UINTN) (HiiQuestion->VarOffset + HiiQuestion->StorageWidth * MaxContainers) > DataSize) { in VarCheckHiiQuestion() 159 …2x)) > Size(0x%x)\n", HiiQuestion->VarOffset, HiiQuestion->StorageWidth, MaxContainers, DataSize)); in VarCheckHiiQuestion() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/ |
D | DxeTrEEPhysicalPresenceLib.c | 424 UINTN DataSize; in TrEEExecutePendingTpmRequest() local 448 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE); in TrEEExecutePendingTpmRequest() 453 DataSize, in TrEEExecutePendingTpmRequest() 509 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE); in TrEEExecutePendingTpmRequest() 514 DataSize, in TrEEExecutePendingTpmRequest() 573 UINTN DataSize; in TrEEPhysicalPresenceLibProcessRequest() local 587 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE_FLAGS); in TrEEPhysicalPresenceLibProcessRequest() 592 &DataSize, in TrEEPhysicalPresenceLibProcessRequest() 631 DataSize = sizeof (EFI_TREE_PHYSICAL_PRESENCE); in TrEEPhysicalPresenceLibProcessRequest() 636 &DataSize, in TrEEPhysicalPresenceLibProcessRequest() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ |
D | ConfigAccess.c | 301 OUT UINTN *DataSize in CallFormCallBack() argument 306 *DataSize = 0; in CallFormCallBack() 314 DataSize, in CallFormCallBack() 318 if (BufferStorage->Size != *DataSize) { in CallFormCallBack() 323 *Data = AllocateZeroPool (*DataSize); in CallFormCallBack() 333 DataSize, in CallFormCallBack() 361 OUT UINTN *DataSize in GetUefiVariable() argument 366 *DataSize = 0; in GetUefiVariable() 372 DataSize, in GetUefiVariable() 377 if (BufferStorage->Size != *DataSize) { in GetUefiVariable() [all …]
|