Lines Matching defs:EntryPointStructure
31 SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure = NULL;
47 // EntryPointStructure Length
427 if ((EntryPointStructure != NULL) &&
428 (EntryPointStructure->TableLength + StructureSize > SMBIOS_TABLE_MAX_LENGTH)) {
687 if ((EntryPointStructure != NULL) &&
688 (EntryPointStructure->TableLength + InputStrLen - TargetStrLen > SMBIOS_TABLE_MAX_LENGTH)) {
1055 if (EntryPointStructure == NULL) {
1057 // Initialize the EntryPointStructure with initial values.
1073 DEBUG ((EFI_D_ERROR, "SmbiosCreateTable () could not allocate EntryPointStructure < 4GB\n"));
1085 EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) (UINTN) PhysicalAddress;
1088 EntryPointStructure,
1102 EntryPointStructure->NumberOfSmbiosStructures = 0;
1103 EntryPointStructure->TableLength = 0;
1104 EntryPointStructure->MaxStructureSize = 0;
1118 EntryPointStructure->NumberOfSmbiosStructures++;
1119 EntryPointStructure->TableLength = (UINT16) (EntryPointStructure->TableLength + RecordSize);
1120 if (RecordSize > EntryPointStructure->MaxStructureSize) {
1121 EntryPointStructure->MaxStructureSize = (UINT16) RecordSize;
1135 EntryPointStructure->NumberOfSmbiosStructures++;
1136 EntryPointStructure->TableLength = (UINT16) (EntryPointStructure->TableLength + sizeof (EndStructure));
1137 if (sizeof (EndStructure) > EntryPointStructure->MaxStructureSize) {
1138 EntryPointStructure->MaxStructureSize = (UINT16) sizeof (EndStructure);
1141 if ((UINTN) EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength) > mPreAllocatedPages) {
1148 if (EntryPointStructure->TableAddress != 0) {
1153 (VOID*)(UINTN)EntryPointStructure->TableAddress,
1156 EntryPointStructure->TableAddress = 0;
1164 EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength),
1169 EntryPointStructure->TableAddress = 0;
1172 EntryPointStructure->TableAddress = (UINT32) PhysicalAddress;
1173 mPreAllocatedPages = EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength);
1180 ASSERT (EntryPointStructure->TableAddress != 0);
1181 BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
1201 EntryPointStructure->IntermediateChecksum = 0;
1202 EntryPointStructure->EntryPointStructureChecksum = 0;
1204 EntryPointStructure->IntermediateChecksum =
1205 CalculateCheckSum8 ((UINT8 *) EntryPointStructure + 0x10, EntryPointStructure->EntryPointLength - 0x10);
1206 EntryPointStructure->EntryPointStructureChecksum =
1207 CalculateCheckSum8 ((UINT8 *) EntryPointStructure, EntryPointStructure->EntryPointLength);
1212 *TableEntryPointStructure = EntryPointStructure;