/vbox/src/VBox/Storage/ |
H A D | Parallels.cpp | 47 uint32_t cCylinders; member in struct:ParallelsHeader 222 uint64_t cCylinders = pImage->cbSize / (512 * pImage->PCHSGeometry.cSectors * pImage->PCHSGeometry.cHeads); local 223 pImage->PCHSGeometry.cCylinders = (uint32_t)cCylinders; 256 pImage->PCHSGeometry.cCylinders = parallelsHeader.cCylinders; 290 if (!pImage->PCHSGeometry.cCylinders) 295 pImage->PCHSGeometry.cCylinders = pImage->cbSize / (512 * pImage->PCHSGeometry.cSectors * pImage->PCHSGeometry.cHeads); 335 Header.cCylinders = RT_H2LE_U32(pImage->PCHSGeometry.cCylinders); [all...] |
H A D | RAW.cpp | 756 if (pImage->PCHSGeometry.cCylinders) 767 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)); 812 if (pImage->LCHSGeometry.cCylinders) 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 D | VHD.cpp | 475 pImage->vhdFooterCopy.DiskGeometryCylinder = RT_H2BE_U16(pImage->PCHSGeometry.cCylinders); 860 pImage->LCHSGeometry.cCylinders = 0; 863 pImage->PCHSGeometry.cCylinders = RT_BE2H_U16(vhdFooter.DiskGeometryCylinder); 976 pImage->PCHSGeometry.cCylinders = u32CylinderTimesHeads / u32Heads; 979 pImage->LCHSGeometry.cCylinders = 0; 1143 Footer.DiskGeometryCylinder = RT_H2BE_U16(pImage->PCHSGeometry.cCylinders); 1924 if (pImage->PCHSGeometry.cCylinders) 1935 LogFlowFunc(("returns %Rrc (CHS=%u/%u/%u)\n", rc, pImage->PCHSGeometry.cCylinders, pImage->PCHSGeometry.cHeads, pImage->PCHSGeometry.cSectors)); 1942 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 1978 if (pImage->LCHSGeometry.cCylinders) [all...] |
H A D | VDI.cpp | 92 pDiskGeoConv->cCylinders = SET_ENDIAN_U32(enmConv, pDiskGeo->cCylinders); 353 pHeader->u.v1plus.LegacyGeometry.cCylinders = 0; 378 pHeader->u.v1plus.LCHSGeometry.cCylinders = 0; 571 pImage->Header.u.v1plus.LCHSGeometry.cCylinders = pLCHSGeometry->cCylinders; 834 pImage->Header.u.v1plus.LCHSGeometry.cCylinders = 0; 1856 if (pImage->PCHSGeometry.cCylinders) 1867 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 1874 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometr [all...] |
H A D | VD.cpp | 5541 || pPCHS->cCylinders == 0 5542 || (uint64_t)pPCHS->cHeads * pPCHS->cSectors * pPCHS->cCylinders * 512 > cbSize) 5545 pPCHS->cCylinders = (uint32_t)RT_MIN(cbSize / 512 / 16 / 63, 16383); 5565 && pLCHS->cCylinders != 0) 5567 pLCHS->cCylinders = 0; 5576 if ( pLCHS->cCylinders != 0 5581 pLCHS->cCylinders = (uint32_t)RT_MIN(cbSize / 512 / pLCHS->cHeads / pLCHS->cSectors, 1024); 5983 pDisk->PCHSGeometry.cCylinders = 0; 5986 pDisk->LCHSGeometry.cCylinders = 0; 6468 pDisk->PCHSGeometry.cCylinders [all...] |
H A D | DMG.cpp | 2098 if (pThis->PCHSGeometry.cCylinders) 2109 LogFlowFunc(("returns %Rrc (PCHS=%u/%u/%u)\n", rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 2117 pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 2151 if (pThis->LCHSGeometry.cCylinders) 2162 LogFlowFunc(("returns %Rrc (LCHS=%u/%u/%u)\n", rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 2170 pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 2471 pThis->PCHSGeometry.cCylinders, pThis->PCHSGeometry.cHeads, pThis->PCHSGeometry.cSectors, 2472 pThis->LCHSGeometry.cCylinders, pThis->LCHSGeometry.cHeads, pThis->LCHSGeometry.cSectors,
|
H A D | VHDX.cpp | 2085 if (pImage->PCHSGeometry.cCylinders) 2096 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)); 2136 if (pImage->LCHSGeometry.cCylinders) 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 D | VMDK.cpp | 1919 pPCHSGeometry->cCylinders); 1938 pLCHSGeometry->cCylinders); 2187 &pImage->PCHSGeometry.cCylinders); 2189 pImage->PCHSGeometry.cCylinders = 0; 2206 if ( pImage->PCHSGeometry.cCylinders == 0 2214 pImage->PCHSGeometry.cCylinders = 0; 2222 &pImage->LCHSGeometry.cCylinders); 2224 pImage->LCHSGeometry.cCylinders = 0; 2241 if ( pImage->LCHSGeometry.cCylinders == 0 2245 pImage->LCHSGeometry.cCylinders 3297 uint64_t cCylinders = VMDK_BYTE2SECTOR(pImage->cbSize) local [all...] |
H A D | QCOW.cpp | 2019 if (pImage->PCHSGeometry.cCylinders) 2030 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)); 2075 if (pImage->LCHSGeometry.cCylinders) 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 D | QED.cpp | 2114 if (pImage->PCHSGeometry.cCylinders) 2125 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)); 2170 if (pImage->LCHSGeometry.cCylinders) 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 D | VDICore.h | 58 uint32_t cCylinders; member in struct:VDIDISKGEOMETRY
|
H A D | ISCSI.cpp | 5041 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/PC/ |
H A D | DevPcBios.cpp | 320 pLCHSGeometry->cCylinders = cLCHSCylinders; 368 Log2(("%s: offInfo=%#x: LCHS=%d/%d/%d\n", __FUNCTION__, offInfo, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 372 pcbiosCmosWrite(pDevIns, offInfo + 0, RT_MIN(pLCHSGeometry->cCylinders, 1024) & 0xff); 374 pcbiosCmosWrite(pDevIns, offInfo + 1, RT_MIN(pLCHSGeometry->cCylinders, 1024) >> 8); 405 || LCHSGeometry.cCylinders == 0 421 || LCHSGeometry.cCylinders == 0 422 || LCHSGeometry.cCylinders > 1024 431 LCHSGeometry.cCylinders = RT_MAX(cSectors / 16 / 63, 1); 436 LCHSGeometry.cCylinders = RT_MAX(cSectors / 32 / 63, 1); 441 LCHSGeometry.cCylinders [all...] |
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvBlock.cpp | 465 if ( pThis->PCHSGeometry.cCylinders > 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)); 537 if ( pThis->LCHSGeometry.cCylinders > 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, pLCHSGeometr [all...] |
H A D | DrvVD.cpp | 1869 pPCHSGeometry->cCylinders = geo.cCylinders; 1879 rc, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 1888 pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 1891 geo.cCylinders = pPCHSGeometry->cCylinders; 1911 pLCHSGeometry->cCylinders = geo.cCylinders; 1921 rc, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 1930 pLCHSGeometry->cCylinders, pLCHSGeometr [all...] |
H A D | DrvHostBase.cpp | 379 if ( pThis->PCHSGeometry.cCylinders > 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)); 431 if ( pThis->LCHSGeometry.cCylinders > 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)); 1503 pThis->PCHSGeometry.cCylinders = 0; 1506 pThis->LCHSGeometry.cCylinders [all...] |
H A D | DevAHCI.cpp | 3037 p[1] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383)); 3057 p[54] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383)); 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); 7106 SSMR3PutU32(pSSM, pThis->ahciPort[i].PCHSGeometry.cCylinders); 7345 SSMR3GetU32(pSSM, &pThis->ahciPort[i].PCHSGeometry.cCylinders); 7585 pAhciPort->PCHSGeometry.cCylinders = 0; 7598 pAhciPort->PCHSGeometry.cCylinders = 0; 7604 pAhciPort->PCHSGeometry.cCylinders = 0; /* autodetect marker */ 7609 if ( pAhciPort->PCHSGeometry.cCylinders 7613 uint64_t cCylinders = pAhciPort->cTotalSectors / (16 * 63); local [all...] |
H A D | DevATA.cpp | 1214 p[1] = RT_H2LE_U16(RT_MIN(s->PCHSGeometry.cCylinders, 16383)); 1234 p[54] = RT_H2LE_U16(RT_MIN(s->PCHSGeometry.cCylinders, 16383)); 1237 p[57] = RT_H2LE_U16( RT_MIN(s->PCHSGeometry.cCylinders, 16383) 1240 p[58] = RT_H2LE_U16( RT_MIN(s->PCHSGeometry.cCylinders, 16383) 6264 pIf->PCHSGeometry.cCylinders = 0; /* dummy */ 6276 pIf->PCHSGeometry.cCylinders = 0; 6282 pIf->PCHSGeometry.cCylinders = 0; /* autodetect marker */ 6287 if ( pIf->PCHSGeometry.cCylinders == 0 6292 uint64_t cCylinders = pIf->cTotalSectors / (16 * 63); local 6293 pIf->PCHSGeometry.cCylinders [all...] |
/vbox/src/VBox/Storage/testcase/ |
H A D | vbox-img.cpp | 330 uint16_t cCylinders = 0; local 363 cCylinders = 0; 371 cCylinders = ValueUnion.u16; 428 newLCHSGeometry.cCylinders = cCylinders; 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 D | vd.h | 469 uint32_t cCylinders; member in struct:VDGEOMETRY
|
/vbox/src/VBox/Frontends/VBoxManage/ |
H A D | VBoxManageDisk.cpp | 1035 PCHS.cCylinders = (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383); 1038 LCHS.cCylinders = 0;
|
H A D | VBoxInternalManage.cpp | 1773 PCHS.cCylinders = (unsigned int)RT_MIN(cbSize / 512 / 16 / 63, 16383); 1776 LCHS.cCylinders = 0;
|
/vbox/include/VBox/vmm/ |
H A D | pdmifs.h | 1454 uint32_t cCylinders; member in struct:PDMMEDIAGEOMETRY
|
/vbox/src/VBox/Devices/testcase/ |
H A D | tstDeviceStructSizeRC.cpp | 830 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cCylinders);
|