Lines Matching refs:ebr
250 struct TempMBR ebr; in ReadLogicalParts() local
271 if (myDisk->Read(&ebr, 512) != 512) { // Load the data.... in ReadLogicalParts()
276 ReverseBytes(&ebr.MBRSignature, 2); in ReadLogicalParts()
277 ReverseBytes(&ebr.partitions[0].firstLBA, 4); in ReadLogicalParts()
278 ReverseBytes(&ebr.partitions[0].lengthLBA, 4); in ReadLogicalParts()
279 ReverseBytes(&ebr.partitions[1].firstLBA, 4); in ReadLogicalParts()
280 ReverseBytes(&ebr.partitions[1].lengthLBA, 4); in ReadLogicalParts()
283 if (ebr.MBRSignature != MBR_SIGNATURE) { in ReadLogicalParts()
289 cerr << hex << ebr.MBRSignature << ", but should be 0x"; in ReadLogicalParts()
299 ebrType = ebr.partitions[0].partitionType; in ReadLogicalParts()
302 offset = extendedStart + ebr.partitions[0].firstLBA; in ReadLogicalParts()
305 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts()
307 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts()
311 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts()
312 offset = extendedStart + ebr.partitions[1].firstLBA; in ReadLogicalParts()