Lines Matching refs:sector
414 int BasicMBRData::WriteMBRData(struct TempMBR & mbr, DiskIO *theDisk, uint64_t sector) { in WriteMBRData() argument
430 if (allOK && theDisk->Seek(sector)) { in WriteMBRData()
662 uint64_t cylinder, head, sector; // all numbered from 0 in LBAtoCHS() local
686 sector = remainder; in LBAtoCHS()
691 if (sector < numSecspTrack) { in LBAtoCHS()
692 chs[1] = (uint8_t) ((sector + 1) + (cylinder >> 8) * 64); in LBAtoCHS()
1448 int BasicMBRData::SectorUsedAs(uint64_t sector, int topPartNum) { in SectorUsedAs() argument
1452 if ((partitions[i].GetStartLBA() <= sector) && (partitions[i].GetLastLBA() >= sector)) in SectorUsedAs()
1454 … if ((partitions[i].GetStartLBA() == (sector + 1)) && (partitions[i].GetInclusion() == LOGICAL)) in SectorUsedAs()
1456 if (sector == 0) in SectorUsedAs()
1458 if (sector >= diskSize) in SectorUsedAs()