Lines Matching refs:partitions
58 partitions[0].SetStatus(0); // Flag the protective part. as unbootable in MakeProtectiveMBR()
60 partitions[0].SetType(UINT8_C(0xEE)); in MakeProtectiveMBR()
62 partitions[0].SetLocation(UINT32_C(1), (uint32_t) diskSize - UINT32_C(1)); in MakeProtectiveMBR()
64 partitions[0].SetLocation(UINT32_C(1), UINT32_MAX); in MakeProtectiveMBR()
66 partitions[0].SetInclusion(PRIMARY); in MakeProtectiveMBR()
78 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetType() != 0x00)) in OptimizeEESize()
80 if (partitions[i].GetType() == 0xEE) { in OptimizeEESize()
82 if (SectorUsedAs(partitions[i].GetStartLBA() - 1, 4) == NONE) { in OptimizeEESize()
83 partitions[i].SetStartLBA(FindFirstInFree(partitions[i].GetStartLBA() - 1)); in OptimizeEESize()
86 after = partitions[i].GetStartLBA() + partitions[i].GetLengthLBA(); in OptimizeEESize()
88 partitions[i].SetLengthLBA(FindLastInFree(after) - partitions[i].GetStartLBA() + 1); in OptimizeEESize()
92 partitions[i].SetLengthLBA((uint32_t) diskSize - partitions[i].GetStartLBA()); in OptimizeEESize()
94 partitions[i].SetLengthLBA(UINT32_MAX - partitions[i].GetStartLBA()); in OptimizeEESize()
116 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetStartLBA() == start32) in DeleteByLocation()
117 && (partitions[i].GetLengthLBA() == length32)) { in DeleteByLocation()