Home | History | Annotate | Download | only in Misc

Lines Matching refs:PhysicalStart

151   Sort memory map entries based upon PhysicalStart, from low to high.

176 if (MemoryMapEntry->PhysicalStart > NextMemoryMapEntry->PhysicalStart) {
228 ((MemoryMapEntry->PhysicalStart + MemoryBlockLength) == NextMemoryMapEntry->PhysicalStart)) {
357 PhysicalEnd = TempRecord.PhysicalStart + EfiPagesToSize(TempRecord.NumberOfPages);
373 if (TempRecord.PhysicalStart <= ImageRecordCodeSection->CodeSegmentBase) {
378 NewRecord->PhysicalStart = TempRecord.PhysicalStart;
380 NewRecord->NumberOfPages = EfiSizeToPages(ImageRecordCodeSection->CodeSegmentBase - NewRecord->PhysicalStart);
391 NewRecord->PhysicalStart = ImageRecordCodeSection->CodeSegmentBase;
400 TempRecord.PhysicalStart = ImageRecordCodeSection->CodeSegmentBase + EfiPagesToSize (EfiSizeToPages(ImageRecordCodeSection->CodeSegmentSize));
401 TempRecord.NumberOfPages = EfiSizeToPages(PhysicalEnd - TempRecord.PhysicalStart);
413 if (TempRecord.PhysicalStart < ImageEnd) {
415 NewRecord->PhysicalStart = TempRecord.PhysicalStart;
417 NewRecord->NumberOfPages = EfiSizeToPages (ImageEnd - TempRecord.PhysicalStart);
442 UINT64 PhysicalStart;
446 PhysicalStart = OldRecord->PhysicalStart;
447 PhysicalEnd = OldRecord->PhysicalStart + EfiPagesToSize(OldRecord->NumberOfPages);
450 ImageRecord = GetImageRecordByAddress (PhysicalStart, PhysicalEnd - PhysicalStart);
455 PhysicalStart = ImageRecord->ImageBase + ImageRecord->ImageSize;
456 } while ((ImageRecord != NULL) && (PhysicalStart < PhysicalEnd));
492 UINT64 PhysicalStart;
508 PhysicalStart = TempRecord.PhysicalStart;
509 PhysicalEnd = TempRecord.PhysicalStart + EfiPagesToSize(TempRecord.NumberOfPages);
513 NewImageRecord = GetImageRecordByAddress (PhysicalStart, PhysicalEnd - PhysicalStart);
518 if ((PhysicalEnd > PhysicalStart) && (ImageRecord != NULL)) {
527 NewRecord->NumberOfPages = EfiSizeToPages(PhysicalEnd - NewRecord->PhysicalStart);
534 NewRecord->PhysicalStart = TempRecord.PhysicalStart;
553 // Update PhysicalStart, in order to exclude the image buffer already splitted.
555 PhysicalStart = ImageRecord->ImageBase + ImageRecord->ImageSize;
556 TempRecord.PhysicalStart = PhysicalStart;
557 TempRecord.NumberOfPages = EfiSizeToPages (PhysicalEnd - PhysicalStart);
558 } while ((ImageRecord != NULL) && (PhysicalStart < PhysicalEnd));