Lines Matching refs:Partition
51 #include "Partition.h"
84 if (Mbr->Partition[Index1].OSIndicator == 0x00 || UNPACK_UINT32 (Mbr->Partition[Index1].SizeInLBA) == 0) {
89 StartingLBA = UNPACK_UINT32 (Mbr->Partition[Index1].StartingLBA);
90 EndingLBA = StartingLBA + UNPACK_UINT32 (Mbr->Partition[Index1].SizeInLBA) - 1;
107 if (Mbr->Partition[Index2].OSIndicator == 0x00 || UNPACK_UINT32 (Mbr->Partition[Index2].SizeInLBA) == 0) {
111 NewEndingLBA = UNPACK_UINT32 (Mbr->Partition[Index2].StartingLBA) + UNPACK_UINT32 (Mbr->Partition[Index2].SizeInLBA) - 1;
112 if (NewEndingLBA >= StartingLBA && UNPACK_UINT32 (Mbr->Partition[Index2].StartingLBA) <= EndingLBA) {
230 if (Mbr->Partition[Index].OSIndicator == 0x00 || UNPACK_UINT32 (Mbr->Partition[Index].SizeInLBA) == 0) {
237 if (Mbr->Partition[Index].OSIndicator == PMBR_GPT_PARTITION) {
248 HdDev.PartitionStart = UNPACK_UINT32 (Mbr->Partition[Index].StartingLBA);
249 HdDev.PartitionSize = UNPACK_UINT32 (Mbr->Partition[Index].SizeInLBA);
263 (BOOLEAN) (Mbr->Partition[Index].OSIndicator == EFI_PARTITION)
291 if (UNPACK_UINT32 (Mbr->Partition[0].SizeInLBA) == 0) {
295 if ((Mbr->Partition[0].OSIndicator == EXTENDED_DOS_PARTITION) ||
296 (Mbr->Partition[0].OSIndicator == EXTENDED_WINDOWS_PARTITION)) {
297 ExtMbrStartingLba = UNPACK_UINT32 (Mbr->Partition[0].StartingLBA);
301 HdDev.PartitionStart = UNPACK_UINT32 (Mbr->Partition[0].StartingLBA) + ExtMbrStartingLba + ParentHdDev.PartitionStart;
302 HdDev.PartitionSize = UNPACK_UINT32 (Mbr->Partition[0].SizeInLBA);
324 (BOOLEAN) (Mbr->Partition[0].OSIndicator == EFI_PARTITION)
330 if ((Mbr->Partition[1].OSIndicator != EXTENDED_DOS_PARTITION) &&
331 (Mbr->Partition[1].OSIndicator != EXTENDED_WINDOWS_PARTITION)
336 ExtMbrStartingLba = UNPACK_UINT32 (Mbr->Partition[1].StartingLBA);