Lines Matching refs:DescriptorSize
129 UINTN DescriptorSize;
135 DescriptorSize = MemoryAttributesTable->DescriptorSize;
142 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, DescriptorSize);
152 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
159 IN UINTN DescriptorSize
168 NextMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
178 NextMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (NextMemoryMapEntry, DescriptorSize);
181 MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
182 NextMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
197 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
204 IN UINTN DescriptorSize
218 NextMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
231 NextMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (NextMemoryMapEntry, DescriptorSize);
234 MemoryMapEntry = PREVIOUS_MEMORY_DESCRIPTOR (NextMemoryMapEntry, DescriptorSize);
239 MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
240 NewMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (NewMemoryMapEntry, DescriptorSize);
255 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
262 IN UINTN DescriptorSize
284 MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
338 (SplitRecordCount * DescriptorSize) calculated
341 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
349 IN UINTN DescriptorSize
374 NewRecord = NEXT_MEMORY_DESCRIPTOR (NewRecord, DescriptorSize);
403 NewRecord = NEXT_MEMORY_DESCRIPTOR (NewRecord, DescriptorSize);
416 NewRecord = NEXT_MEMORY_DESCRIPTOR (NewRecord, DescriptorSize);
488 (SplitRecordCount * DescriptorSize) calculated
491 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
502 IN UINTN DescriptorSize
514 CopyMem (NewRecord, OldRecord, DescriptorSize);
552 NewRecordCount = SetNewRecord (ImageRecord, NewRecord, &TempRecord, DescriptorSize);
554 NewRecord = (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)NewRecord + NewRecordCount * DescriptorSize);
612 (AdditionalRecordCount * DescriptorSize) calculated
617 @param[in] DescriptorSize Size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
624 IN UINTN DescriptorSize
640 IndexOld = ((*MemoryMapSize) / DescriptorSize) - 1;
644 IndexNew = ((*MemoryMapSize) / DescriptorSize) - 1 + AdditionalRecordCount;
646 MaxSplitRecordCount = GetMaxSplitRecordCount ((EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + IndexOld * DescriptorSize));
652 (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + IndexOld * DescriptorSize),
653 (EFI_MEMORY_DESCRIPTOR *)((UINT8 *)MemoryMap + IndexNew * DescriptorSize),
655 DescriptorSize
662 ((UINT8 *)MemoryMap + (IndexNew + MaxSplitRecordCount - RealSplitRecordCount) * DescriptorSize),
663 ((UINT8 *)MemoryMap + IndexNew * DescriptorSize),
664 (RealSplitRecordCount + 1) * DescriptorSize
676 (UINT8 *)MemoryMap + (AdditionalRecordCount - TotalSplitRecordCount) * DescriptorSize,
677 (*MemoryMapSize) + TotalSplitRecordCount * DescriptorSize
680 *MemoryMapSize = (*MemoryMapSize) + DescriptorSize * TotalSplitRecordCount;
685 SortMemoryMap (MemoryMap, *MemoryMapSize, DescriptorSize);
690 EnforceMemoryMapAttribute (MemoryMap, *MemoryMapSize, DescriptorSize);
695 MergeMemoryMap (MemoryMap, MemoryMapSize, DescriptorSize);
717 @param[out] DescriptorSize A pointer to the location in which firmware
739 OUT UINTN *DescriptorSize,
751 return SmmCoreGetMemoryMap (MemoryMapSize, MemoryMap, MapKey, DescriptorSize, DescriptorVersion);
761 Status = SmmCoreGetMemoryMap (MemoryMapSize, MemoryMap, MapKey, DescriptorSize, DescriptorVersion);
763 *MemoryMapSize = *MemoryMapSize + (*DescriptorSize) * AdditionalRecordCount;
765 if (OldMemoryMapSize - *MemoryMapSize < (*DescriptorSize) * AdditionalRecordCount) {
766 *MemoryMapSize = *MemoryMapSize + (*DescriptorSize) * AdditionalRecordCount;
776 SplitTable (MemoryMapSize, MemoryMap, *DescriptorSize);
1318 UINTN DescriptorSize;
1333 &DescriptorSize,
1348 &DescriptorSize,
1359 RuntimeEntryCount = MemoryMapSize/DescriptorSize;
1360 MemoryAttributesTableSize = sizeof(EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE) + DescriptorSize * RuntimeEntryCount;
1361 MemoryAttributesTable = AllocatePool (sizeof(EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE) + DescriptorSize * RuntimeEntryCount);
1365 MemoryAttributesTable->DescriptorSize = (UINT32)DescriptorSize;
1370 DEBUG ((DEBUG_INFO, " DescriptorSize - 0x%08x\n", MemoryAttributesTable->DescriptorSize));
1372 for (Index = 0; Index < MemoryMapSize/DescriptorSize; Index++) {
1373 CopyMem (MemoryAttributesEntry, MemoryMap, DescriptorSize);
1380 MemoryAttributesEntry = NEXT_MEMORY_DESCRIPTOR(MemoryAttributesEntry, DescriptorSize);
1382 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, DescriptorSize);