Lines Matching refs:partNum
281 int BasicMBRData::ReadLogicalParts(uint64_t extendedStart, int partNum) { in ReadLogicalParts() argument
290 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) { in ReadLogicalParts()
295 if(partNum > 0) //don't go negative in ReadLogicalParts()
296 partNum -= 1; in ReadLogicalParts()
299 EbrLocations[partNum] = offset; in ReadLogicalParts()
328 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) { in ReadLogicalParts()
338 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts()
340 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts()
341 partitions[partNum].SetInclusion(LOGICAL); in ReadLogicalParts()
344 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts()
346 partNum++; in ReadLogicalParts()
353 return (partNum * allOK); in ReadLogicalParts()
377 int i, j, partNum, next, allOK = 1, moreLogicals = 0; in WriteMBRData() local
410 partNum = FindNextInUse(4); in WriteMBRData()
413 while (allOK && moreLogicals && (partNum < MAX_MBR_PARTS) && (partNum >= 0)) { in WriteMBRData()
414 partitions[partNum].StoreInStruct(&tempMBR.partitions[0]); in WriteMBRData()
417 next = FindNextInUse(partNum + 1); in WriteMBRData()
434 partNum = next; in WriteMBRData()
1155 void BasicMBRData::RecomputeCHS(int partNum) { in RecomputeCHS() argument
1156 partitions[partNum].RecomputeCHS(); in RecomputeCHS()