Searched refs:cSectors (Results 1 - 25 of 28) sorted by relevance

12

/vbox/src/VBox/Storage/
H A DParallels.cpp53 uint32_t cSectors; member in struct:ParallelsHeader
221 pImage->PCHSGeometry.cSectors = 63;
222 uint64_t cCylinders = pImage->cbSize / (512 * pImage->PCHSGeometry.cSectors * pImage->PCHSGeometry.cHeads);
239 Log(("cSectors=%u\n", parallelsHeader.cSectors));
240 pImage->cbSize = ((uint64_t)parallelsHeader.cSectors) * 512;
258 pImage->PCHSGeometry.cSectors = parallelsHeader.cSectorsPerTrack;
293 pImage->PCHSGeometry.cSectors = 63;
295 pImage->PCHSGeometry.cCylinders = pImage->cbSize / (512 * pImage->PCHSGeometry.cSectors * pImage->PCHSGeometry.cHeads);
316 pImage->cAllocationBitmapEntries = cbSize / 512 / pImage->PCHSGeometry.cSectors;
[all...]
H A DDMG.cpp123 uint64_t cSectors; /**< 0x1ec - The sector count. Warning! Unaligned! (fUDISectorCount) */ member in struct:DMGUDIF
130 AssertCompileMemberOffset(DMGUDIF, cSectors, 0x1ec);
175 uint64_t cSectors; /**< 0x010 - Number of sectors this block represents. */ member in struct:DMGBLKX
582 pUdif->cSectors = RT_BSWAP_U64(pUdif->cSectors);
621 pBlkx->cSectors = RT_BE2H_U64(pBlkx->cSectors);
667 DMG_VALIDATE(pFtr->cSectors != 0, ("cSectors=%#RX64\n", pFtr->cSectors));
[all...]
H A DVHD.cpp477 pImage->vhdFooterCopy.DiskGeometrySectors = pImage->PCHSGeometry.cSectors;
862 pImage->LCHSGeometry.cSectors = 0;
865 pImage->PCHSGeometry.cSectors = vhdFooter.DiskGeometrySectors;
978 pImage->PCHSGeometry.cSectors = u32SectorsPerTrack;
981 pImage->LCHSGeometry.cSectors = 0;
1145 Footer.DiskGeometrySectors = pImage->PCHSGeometry.cSectors;
1541 uint32_t cSectors = 0; local
1547 cSectors = 1;
1554 while ( (cSectors < (cbRead / VHD_SECTOR_SIZE))
1558 cSectors
[all...]
H A DVD.cpp1229 uint32_t cSectors = (uint32_t)(pBlock->cbDiscard / 512); local
1239 idxEnd = ASMBitNextClear(pBlock->pbmAllocated, cSectors, idxStart);
1249 idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart);
3245 uint32_t cSectors = (uint32_t)(pBlock->cbDiscard / 512); local
3255 idxEnd = ASMBitNextClear(pBlock->pbmAllocated, cSectors, idxStart);
3265 idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart);
5540 || pPCHS->cSectors > 63
5542 || (uint64_t)pPCHS->cHeads * pPCHS->cSectors * pPCHS->cCylinders * 512 > cbSize)
5547 pPCHS->cSectors = 63;
5563 || pLCHS->cSectors > 6
[all...]
H A DRAW.cpp767 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
775 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
823 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
831 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
1135 pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors,
1136 pImage->LCHSGeometry.cCylinders, pImage->LCHSGeometry.cHeads, pImage->LCHSGeometry.cSectors,
H A DVDI.cpp94 pDiskGeoConv->cSectors = SET_ENDIAN_U32(enmConv, pDiskGeo->cSectors);
355 pHeader->u.v1plus.LegacyGeometry.cSectors = 0;
380 pHeader->u.v1plus.LCHSGeometry.cSectors = 0;
573 pImage->Header.u.v1plus.LCHSGeometry.cSectors = pLCHSGeometry->cSectors;
836 pImage->Header.u.v1plus.LCHSGeometry.cSectors = 0;
1245 uint32_t cSectors = (uint32_t)(cbData / 512); local
1250 Assert(!(cSectors % 8));
1252 pbmAllocationBitmap = RTMemAllocZ(cSectors /
[all...]
H A DVMDK.cpp263 uint64_t cSectors; member in struct:VMDKEXTENT
1929 pPCHSGeometry->cSectors);
1949 pLCHSGeometry->cSectors);
2201 &pImage->PCHSGeometry.cSectors);
2203 pImage->PCHSGeometry.cSectors = 0;
2209 || pImage->PCHSGeometry.cSectors == 0
2210 || pImage->PCHSGeometry.cSectors > 63)
2216 pImage->PCHSGeometry.cSectors = 63;
2236 &pImage->LCHSGeometry.cSectors);
2238 pImage->LCHSGeometry.cSectors
[all...]
H A DVHDX.cpp2096 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2104 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2144 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2152 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2446 pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors,
2447 pImage->LCHSGeometry.cCylinders, pImage->LCHSGeometry.cHeads, pImage->LCHSGeometry.cSectors,
H A DVDICore.h62 uint32_t cSectors; member in struct:VDIDISKGEOMETRY
H A DQCOW.cpp2030 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2038 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2086 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2094 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2397 pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors,
2398 pImage->LCHSGeometry.cCylinders, pImage->LCHSGeometry.cHeads, pImage->LCHSGeometry.cSectors,
H A DQED.cpp2125 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2133 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
2181 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2189 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
2492 pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors,
2493 pImage->LCHSGeometry.cCylinders, pImage->LCHSGeometry.cHeads, pImage->LCHSGeometry.cSectors,
H A DISCSI.cpp5041 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
5048 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
5085 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
5092 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
/vbox/src/VBox/Devices/Storage/VSCSI/
H A DVSCSILunMmc.cpp40 uint64_t cSectors; member in struct:VSCSILUNMMC
107 mmcLBA2MSF(q, pVScsiLunMmc->cSectors);
112 vscsiH2BEU32(q, pVScsiLunMmc->cSectors);
166 pVScsiLunMmc->cSectors = cbDisk / pVScsiLunMmc->cbSector;
250 if (pVScsiLunMmc->cSectors > UINT32_C(0xffffffff))
253 vscsiH2BEU32(aReply, pVScsiLunMmc->cSectors - 1);
405 vscsiH2BEU64(aReply, pVScsiLunMmc->cSectors - 1);
458 if (RT_UNLIKELY(uLbaStart + cSectorTransfer > pVScsiLunMmc->cSectors))
H A DVSCSILunSbc.cpp47 uint64_t cSectors; member in struct:VSCSILUNSBC
66 pVScsiLunSbc->cSectors = cbDisk / pVScsiLunSbc->cbSector;
250 if (pVScsiLunSbc->cSectors > UINT32_C(0xffffffff))
253 vscsiH2BEU32(aReply, pVScsiLunSbc->cSectors - 1);
464 vscsiH2BEU64(aReply, pVScsiLunSbc->cSectors - 1);
548 if (RT_UNLIKELY(uLbaStart + cSectorTransfer > pVScsiLunSbc->cSectors))
/vbox/src/VBox/Devices/PC/
H A DDevPcBios.cpp322 pLCHSGeometry->cSectors = cLCHSSectors;
368 Log2(("%s: offInfo=%#x: LCHS=%d/%d/%d\n", __FUNCTION__, offInfo, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
386 pcbiosCmosWrite(pDevIns, offInfo + 7, pLCHSGeometry->cSectors);
408 || LCHSGeometry.cSectors == 0
409 || LCHSGeometry.cSectors > 63)
425 || LCHSGeometry.cSectors == 0
426 || LCHSGeometry.cSectors > 63)
428 uint64_t cSectors = pBlock->pfnGetSize(pBlock) / 512; local
429 if (cSectors / 16 / 63 <= 1024)
431 LCHSGeometry.cCylinders = RT_MAX(cSectors / 1
[all...]
/vbox/src/VBox/Devices/Storage/
H A DATAPIPassthrough.cpp91 uint32_t cSectors; member in struct:TRACK
253 pTrack->cSectors = iLbaNext - pTrack->iLbaStart;
258 pTrack->cSectors = 0;
354 pTrack->cSectors = iLbaNext - pTrack->iLbaStart;
357 pTrack->cSectors = 0;
483 LogRel((" Track %u: LBAStart=%lld cSectors=%u enmMainDataForm=%s enmSubChnDataForm=%s fFlags=[%s%s%s]\n",
484 i, pTrack->iLbaStart, pTrack->cSectors, atapiTrackListMainDataFormToString(pTrack->enmMainDataForm),
587 && iAtapiLba64 < pTrack->iLbaStart + pTrack->cSectors)
H A DDevATA.cpp1218 p[6] = RT_H2LE_U16(s->PCHSGeometry.cSectors);
1236 p[56] = RT_H2LE_U16(s->PCHSGeometry.cSectors);
1239 * s->PCHSGeometry.cSectors);
1242 * s->PCHSGeometry.cSectors >> 16);
1451 iLBA = ((s->uATARegHCyl << 8) | s->uATARegLCyl) * s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors +
1452 (s->uATARegSelect & 0x0f) * s->PCHSGeometry.cSectors +
1486 cyl = iLBA / (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors);
1487 r = iLBA % (s->PCHSGeometry.cHeads * s->PCHSGeometry.cSectors);
1490 s->uATARegSelect = (s->uATARegSelect & 0xf0) | ((r / s->PCHSGeometry.cSectors) & 0x0f);
1491 s->uATARegSector = (r % s->PCHSGeometry.cSectors)
1558 ataReadSectors(ATADevState *s, uint64_t u64Sector, void *pvBuf, uint32_t cSectors, bool *pfRedo) argument
1588 ataWriteSectors(ATADevState *s, uint64_t u64Sector, const void *pvBuf, uint32_t cSectors, bool *pfRedo) argument
1628 uint32_t cSectors; local
1643 uint32_t cSectors; local
1681 uint32_t cSectors; local
1859 uint32_t cbTransfer, cSectors; local
2021 uint32_t iATAPILBA, cSectors, cReqSectors, cbCurrTX; local
2404 atapiReadSectors(ATADevState *s, uint32_t iATAPILBA, uint32_t cSectors, uint32_t cbSector) argument
3136 uint32_t cSectors, iATAPILBA; local
3179 uint32_t cSectors, iATAPILBA; local
3430 uint32_t cSectors, iATAPILBA; local
3897 ataTrimSectors(ATADevState *s, uint64_t u64Sector, uint32_t cSectors, bool *pfRedo) argument
[all...]
H A DDrvBlock.cpp467 && pThis->PCHSGeometry.cSectors > 0)
470 LogFlow(("%s: returns VINF_SUCCESS {%d,%d,%d}\n", __FUNCTION__, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors));
482 LogFlow(("%s: returns %Rrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors));
496 LogFlow(("%s: cCylinders=%d cHeads=%d cSectors=%d\n", __FUNCTION__, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
539 && pThis->LCHSGeometry.cSectors > 0)
542 LogFlow(("%s: returns VINF_SUCCESS {%d,%d,%d}\n", __FUNCTION__, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors));
554 LogFlow(("%s: returns %Rrc {%d,%d,%d}\n", __FUNCTION__, rc, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors));
568 LogFlow(("%s: cCylinders=%d cHeads=%d cSectors=%d\n", __FUNCTION__, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
[all...]
H A DDevAHCI.cpp3041 p[6] = RT_H2LE_U16(pAhciPort->PCHSGeometry.cSectors);
3059 p[56] = RT_H2LE_U16(pAhciPort->PCHSGeometry.cSectors);
3060 p[57] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383) * pAhciPort->PCHSGeometry.cHeads * pAhciPort->PCHSGeometry.cSectors);
3061 p[58] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383) * pAhciPort->PCHSGeometry.cHeads * pAhciPort->PCHSGeometry.cSectors >> 16);
3960 uint32_t iATAPILBA, cSectors, cReqSectors, cbCurrTX; local
3969 cSectors = ataBE2H_U16(pAhciReq->aATAPICmd + 7);
3974 cSectors = ataBE2H_U32(pAhciReq->aATAPICmd + 6);
3978 cSectors = ataBE2H_U24(pAhciReq->aATAPICmd + 6);
3982 cSectors = ataMSF2LBA(pAhciReq->aATAPICmd + 6) - iATAPILBA;
3994 for (uint32_t i = cSectors;
4347 uint32_t cSectors = pAhciReq->cbTransfer / 2048; local
4384 atapiReadSectors(PAHCIPort pAhciPort, PAHCIREQ pAhciReq, uint32_t iATAPILBA, uint32_t cSectors, uint32_t cbSector) argument
4489 uint32_t cSectors, iATAPILBA; local
4533 uint32_t cSectors, iATAPILBA; local
4788 uint32_t cSectors, iATAPILBA; local
[all...]
H A DDrvVD.cpp1871 pPCHSGeometry->cSectors = geo.cSectors;
1879 rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
1888 pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
1893 geo.cSectors = pPCHSGeometry->cSectors;
1913 pLCHSGeometry->cSectors = geo.cSectors;
1921 rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
1930 pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
[all...]
H A DDrvHostBase.cpp381 && pThis->PCHSGeometry.cSectors > 0)
393 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, __FUNCTION__, rc, pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors));
402 LogFlow(("%s-%d: %s: cCylinders=%d cHeads=%d cSectors=%d\n",
403 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, __FUNCTION__, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
433 && pThis->LCHSGeometry.cSectors > 0)
445 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, __FUNCTION__, rc, pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors));
454 LogFlow(("%s-%d: %s: cCylinders=%d cHeads=%d cSectors=%d\n",
455 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, __FUNCTION__, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
1505 pThis->PCHSGeometry.cSectors = 0;
1508 pThis->LCHSGeometry.cSectors
[all...]
/vbox/src/VBox/Runtime/common/dvm/
H A Ddvmbsdlabel.cpp58 uint32_t cSectors; member in struct:BsdLabelPartition
210 pPartition->cSectors = RT_LE2H_U32(pPartition->cSectors);
312 if (pThis->DiskLabel.aPartitions[i].cSectors)
394 pVol->cbVolume = (uint64_t)pBsdPartitionEntry->cSectors * pThis->DiskLabel.cbSector;
414 if (pThis->DiskLabel.aPartitions[i].cSectors)
437 if (pBsdPartitionEntry->cSectors)
/vbox/src/VBox/Storage/testcase/
H A Dvbox-img.cpp332 uint8_t cSectors = 0; local
365 cSectors = 0;
379 cSectors = ValueUnion.u8;
432 newLCHSGeometry.cSectors = cSectors;
436 RTPrintf("Old image LCHS: %u/%u/%u\n", oldLCHSGeometry.cCylinders, oldLCHSGeometry.cHeads, oldLCHSGeometry.cSectors);
437 RTPrintf("New image LCHS: %u/%u/%u\n", newLCHSGeometry.cCylinders, newLCHSGeometry.cHeads, newLCHSGeometry.cSectors);
445 RTPrintf("Current image LCHS: %u/%u/%u\n", oldLCHSGeometry.cCylinders, oldLCHSGeometry.cHeads, oldLCHSGeometry.cSectors);
/vbox/include/VBox/
H A Dvd.h473 uint32_t cSectors; member in struct:VDGEOMETRY
/vbox/src/VBox/Frontends/VBoxManage/
H A DVBoxManageDisk.cpp1037 PCHS.cSectors = 63;
1040 LCHS.cSectors = 0;

Completed in 236 milliseconds

12