Lines Matching refs:tempMBR

175    TempMBR tempMBR;
188 if (myDisk->Read(&tempMBR, 512))
194 code[i] = tempMBR.code[i];
195 diskSignature = tempMBR.diskSignature;
196 nulls = tempMBR.nulls;
198 partitions[i] = tempMBR.partitions[i];
202 MBRSignature = tempMBR.MBRSignature;
380 TempMBR tempMBR;
385 memcpy(tempMBR.code, code, 440);
386 tempMBR.diskSignature = diskSignature;
387 tempMBR.nulls = nulls;
388 tempMBR.MBRSignature = MBRSignature;
390 partitions[i].StoreInStruct(&tempMBR.partitions[i]);
397 allOK = allOK && WriteMBRData(tempMBR, theDisk, 0);
399 // Set up tempMBR with some constant data for logical partitions...
400 tempMBR.diskSignature = 0;
402 tempMBR.partitions[i].firstLBA = tempMBR.partitions[i].lengthLBA = 0;
403 tempMBR.partitions[i].partitionType = 0x00;
405 tempMBR.partitions[i].firstSector[j] = 0;
406 tempMBR.partitions[i].lastSector[j] = 0;
414 partitions[partNum].StoreInStruct(&tempMBR.partitions[0]);
415 tempMBR.partitions[0].firstLBA = 1;
416 // tempMBR.partitions[1] points to next EBR or terminates EBR linked list...
419 tempMBR.partitions[1].partitionType = 0x0f;
420 tempMBR.partitions[1].firstLBA = (uint32_t) (partitions[next].GetStartLBA() - extFirstLBA - 1);
421 tempMBR.partitions[1].lengthLBA = (uint32_t) (partitions[next].GetLengthLBA() + 1);
422 LBAtoCHS((uint64_t) tempMBR.partitions[1].firstLBA,
423 (uint8_t *) &tempMBR.partitions[1].firstSector);
424 LBAtoCHS(tempMBR.partitions[1].lengthLBA - extFirstLBA,
425 (uint8_t *) &tempMBR.partitions[1].lastSector);
427 tempMBR.partitions[1].partitionType = 0x00;
428 tempMBR.partitions[1].firstLBA = 0;
429 tempMBR.partitions[1].lengthLBA = 0;
432 allOK = WriteMBRData(tempMBR, theDisk, writeEbrTo);
433 writeEbrTo = (uint64_t) tempMBR.partitions[1].firstLBA + (uint64_t) extFirstLBA;