Lines Matching refs:ebr
282 struct TempMBR ebr; in ReadLogicalParts() local
304 if (myDisk->Read(&ebr, 512) != 512) { // Load the data.... in ReadLogicalParts()
309 ReverseBytes(&ebr.MBRSignature, 2); in ReadLogicalParts()
310 ReverseBytes(&ebr.partitions[0].firstLBA, 4); in ReadLogicalParts()
311 ReverseBytes(&ebr.partitions[0].lengthLBA, 4); in ReadLogicalParts()
312 ReverseBytes(&ebr.partitions[1].firstLBA, 4); in ReadLogicalParts()
313 ReverseBytes(&ebr.partitions[1].lengthLBA, 4); in ReadLogicalParts()
316 if (ebr.MBRSignature != MBR_SIGNATURE) { in ReadLogicalParts()
322 cerr << hex << ebr.MBRSignature << ", but should be 0x"; in ReadLogicalParts()
332 ebrType = ebr.partitions[0].partitionType; in ReadLogicalParts()
335 offset = extendedStart + ebr.partitions[0].firstLBA; in ReadLogicalParts()
338 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts()
340 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts()
344 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts()
345 offset = extendedStart + ebr.partitions[1].firstLBA; in ReadLogicalParts()