Lines Matching refs:allOK
145 int allOK; in ReadMBRData() local
156 allOK = ReadMBRData(myDisk); in ReadMBRData()
158 allOK = 0; in ReadMBRData()
161 if (allOK) in ReadMBRData()
164 return allOK; in ReadMBRData()
173 int allOK = 1, i, logicalNum = 3; in ReadMBRData() local
216 allOK = 0; in ReadMBRData()
229 if (allOK) { in ReadMBRData()
241 if (allOK) { // Loaded logicals OK in ReadMBRData()
249 if (allOK) { in ReadMBRData()
270 return allOK; in ReadMBRData()
283 int i, another = 1, allOK = 1; in ReadLogicalParts() local
290 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) { in ReadLogicalParts()
294 allOK = -1; in ReadLogicalParts()
302 allOK = -1; in ReadLogicalParts()
307 allOK = -1; in ReadLogicalParts()
317 allOK = -1; in ReadLogicalParts()
328 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) { in ReadLogicalParts()
353 return (partNum * allOK); in ReadLogicalParts()
360 int allOK; in WriteMBRData() local
364 allOK = WriteMBRData(myDisk); in WriteMBRData()
367 allOK = 0; in WriteMBRData()
370 } else allOK = 0; in WriteMBRData()
371 return allOK; in WriteMBRData()
377 int i, j, partNum, next, allOK, moreLogicals = 0; in WriteMBRData() local
382 allOK = CreateExtended(); in WriteMBRData()
383 if (allOK) { in WriteMBRData()
397 allOK = allOK && WriteMBRData(tempMBR, theDisk, 0); in WriteMBRData()
413 while (allOK && moreLogicals && (partNum < MAX_MBR_PARTS) && (partNum >= 0)) { in WriteMBRData()
432 allOK = WriteMBRData(tempMBR, theDisk, writeEbrTo); in WriteMBRData()
437 return allOK; in WriteMBRData()
450 int i, allOK; in WriteMBRData() local
464 allOK = theDisk->OpenForWrite(); in WriteMBRData()
465 if (allOK && theDisk->Seek(sector)) { in WriteMBRData()
467 allOK = 0; in WriteMBRData()
471 allOK = 0; in WriteMBRData()
486 return allOK; in WriteMBRData()
602 int allOK = 1, err; in BlankGPTData() local
608 allOK = 0; in BlankGPTData()
615 allOK = 0; in BlankGPTData()
617 } else allOK = 0; in BlankGPTData()
623 allOK = 0; in BlankGPTData()
625 } else allOK = 0; in BlankGPTData()
630 allOK = 0; in BlankGPTData()
633 allOK = 0; in BlankGPTData()
635 } else allOK = 0; in BlankGPTData()
640 return allOK; in BlankGPTData()
898 int allOK = 1, i = 0; in AreLogicalsContiguous() local
908 allOK = 0; in AreLogicalsContiguous()
911 } while ((i < MAX_MBR_PARTS) && allOK); in AreLogicalsContiguous()
913 return allOK; in AreLogicalsContiguous()
919 int i, allOK = 1; in DoTheyFit() local
923 allOK = 0; in DoTheyFit()
926 return allOK; in DoTheyFit()
933 int i = 0, allOK = 1; in SpaceBeforeAllLogicals() local
937 allOK = allOK && (SectorUsedAs(partitions[i].GetStartLBA() - 1) == EBR); in SpaceBeforeAllLogicals()
940 } while (allOK && (i < MAX_MBR_PARTS)); in SpaceBeforeAllLogicals()
941 return allOK; in SpaceBeforeAllLogicals()
953 int allOK; in IsLegal() local
955 allOK = (FindOverlaps() == 0); in IsLegal()
956 allOK = (allOK && (NumPrimaries() <= 4)); in IsLegal()
957 allOK = (allOK && AreLogicalsContiguous()); in IsLegal()
958 allOK = (allOK && DoTheyFit()); in IsLegal()
959 allOK = (allOK && SpaceBeforeAllLogicals()); in IsLegal()
960 return allOK; in IsLegal()
1060 int allOK; in SetPartType() local
1064 allOK = partitions[num].SetType(type); in SetPartType()
1065 } else allOK = 0; in SetPartType()
1066 } else allOK = 0; in SetPartType()
1067 return allOK; in SetPartType()
1074 int allOK = 1; in SetPartBootable() local
1082 } else allOK = 0; in SetPartBootable()
1083 } else allOK = 0; in SetPartBootable()
1084 return allOK; in SetPartBootable()
1130 int allOK = 1, origValue; in SetInclusionwChecks() local
1145 allOK = 0; in SetInclusionwChecks()
1147 return allOK; in SetInclusionwChecks()
1367 int allOK = 1, i = 0, swapped = 0; in CreateExtended() local
1393 allOK = 0; in CreateExtended()
1396 } else allOK = 0; in CreateExtended()
1401 allOK = 0; in CreateExtended()
1402 return allOK; in CreateExtended()