Lines Matching refs:start
279 // extendedStart = LBA of the start of the extended partition
339 // Adjust the start LBA, since it's encoded strangely....
765 cout << "\nWarning: 0xEE partition doesn't start on sector 1. This can cause "
828 lStart = partitions[i].GetStartLBA(); // start of potential logical part.
975 // Finds the next in-use partition, starting with start (will return start
977 int BasicMBRData::FindNextInUse(int start) {
978 if (start >= MAX_MBR_PARTS)
979 start = -1;
980 while ((start < MAX_MBR_PARTS) && (start >= 0) && (partitions[start].GetInclusion() == NONE))
981 start++;
982 if ((start < 0) || (start >= MAX_MBR_PARTS))
983 start = -1;
984 return start;
1044 void BasicMBRData::MakePart(int num, uint64_t start, uint64_t length, int type, int bootable) {
1045 if ((num >= 0) && (num < MAX_MBR_PARTS) && (start <= UINT32_MAX) && (length <= UINT32_MAX)) {
1048 partitions[num].SetLocation(start, length);
1091 uint64_t start = UINT64_C(1); // starting point for each search
1101 firstBlock = FindFirstAvailable(start);
1109 start = lastBlock + 1;
1159 // Sorts the partitions starting with partition #start. This function
1162 void BasicMBRData::SortMBR(int start) {
1163 if ((start < MAX_MBR_PARTS) && (start >= 0))
1164 sort(partitions + start, partitions + MAX_MBR_PARTS);
1411 // Finds the first free space on the disk from start onward; returns 0
1413 uint64_t BasicMBRData::FindFirstAvailable(uint64_t start) {
1418 if ((start >= (UINT32_MAX - 1)) || (start >= (diskSize - 1)))
1421 first = start;
1444 // Finds the last free sector on the disk from start forward.
1445 uint64_t BasicMBRData::FindLastInFree(uint64_t start) {
1456 (partitions[i].GetStartLBA() > start)) {
1463 // Finds the first free sector on the disk from start backward.
1464 uint64_t BasicMBRData::FindFirstInFree(uint64_t start) {
1473 if ((thisLastLBA > bestLastLBA) && (thisLastLBA < start))