Lines Matching refs:partitions
59 partitions[0].SetStatus(0); // Flag the protective part. as unbootable in MakeProtectiveMBR()
61 partitions[0].SetType(UINT8_C(0xEE)); in MakeProtectiveMBR()
63 partitions[0].SetLocation(UINT32_C(1), (uint32_t) diskSize - UINT32_C(1)); in MakeProtectiveMBR()
65 partitions[0].SetLocation(UINT32_C(1), UINT32_MAX); in MakeProtectiveMBR()
67 partitions[0].SetInclusion(PRIMARY); in MakeProtectiveMBR()
79 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetType() != 0x00)) in OptimizeEESize()
81 if (partitions[i].GetType() == 0xEE) { in OptimizeEESize()
83 if (SectorUsedAs(partitions[i].GetStartLBA() - 1, 4) == NONE) { in OptimizeEESize()
84 partitions[i].SetStartLBA(FindFirstInFree(partitions[i].GetStartLBA() - 1)); in OptimizeEESize()
87 after = partitions[i].GetStartLBA() + partitions[i].GetLengthLBA(); in OptimizeEESize()
89 partitions[i].SetLengthLBA(FindLastInFree(after) - partitions[i].GetStartLBA() + 1); in OptimizeEESize()
93 partitions[i].SetLengthLBA((uint32_t) diskSize - partitions[i].GetStartLBA()); in OptimizeEESize()
95 partitions[i].SetLengthLBA(UINT32_MAX - partitions[i].GetStartLBA()); in OptimizeEESize()
117 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetStartLBA() == start32) in DeleteByLocation()
118 && (partitions[i].GetLengthLBA() == length32)) { in DeleteByLocation()