Lines Matching refs:VMDK_BYTE2SECTOR
190 #define VMDK_BYTE2SECTOR(u) ((u) >> 9)
1291 pExtent->cOverheadSectors = VMDK_BYTE2SECTOR(cbOverhead);
1301 pExtent->uSectorGD = uStartSector + VMDK_BYTE2SECTOR(cbGDRounded + cbGTRounded);
1319 uOffsetSectors = pExtent->uSectorRGD + VMDK_BYTE2SECTOR(cbGDRounded);
1333 uOffsetSectors += VMDK_BYTE2SECTOR(pExtent->cGTEntries * sizeof(uint32_t));
1337 uOffsetSectors = pExtent->uSectorGD + VMDK_BYTE2SECTOR(cbGDRounded);
1351 uOffsetSectors += VMDK_BYTE2SECTOR(pExtent->cGTEntries * sizeof(uint32_t));
2669 && (pExtent->enmType != VMDKETYPE_FLAT || pExtent->cNominalSectors + pExtent->uSectorOffset > VMDK_BYTE2SECTOR(cbExtentSize)))
3297 uint64_t cCylinders = VMDK_BYTE2SECTOR(pImage->cbSize)
3391 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(cbSize);
3469 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(pPart->uStart - uStart);
3499 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(pPart->cbData);
3516 uPartOffset += VMDK_BYTE2SECTOR(pPart->cbData);
3534 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(pPart->cbData);
3535 pExtent->uSectorOffset = VMDK_BYTE2SECTOR(pPart->uStartOffset);
3551 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(pPart->cbData);
3565 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(cbSize - uStart);
3741 pExtent->cDescriptorSectors = VMDK_BYTE2SECTOR(pImage->cbDescAlloc);
3751 pExtent->cSectors = VMDK_BYTE2SECTOR(RT_ALIGN_64(cbExtent, _64K));
3752 pExtent->cSectorsPerGrain = VMDK_BYTE2SECTOR(_64K);
3777 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(cbExtent);
3889 pExtent->cDescriptorSectors = VMDK_BYTE2SECTOR(pImage->cbDescAlloc);
3896 pExtent->cSectors = VMDK_BYTE2SECTOR(RT_ALIGN_64(cbSize, _64K));
3897 pExtent->cSectorsPerGrain = VMDK_BYTE2SECTOR(_64K);
3913 pExtent->cNominalSectors = VMDK_BYTE2SECTOR(cbSize);
4086 pImage->pExtents[0].cDescriptorSectors = VMDK_BYTE2SECTOR(RT_ALIGN_64( pImage->Descriptor.aLines[pImage->Descriptor.cLines]
4189 pMarker->uSector = RT_H2LE_U64(VMDK_BYTE2SECTOR((uint64_t)pExtent->cGTEntries * sizeof(uint32_t)));
4199 pExtent->pGD[uGDEntry] = VMDK_BYTE2SECTOR(uFileOffset);
4296 pMarker->uSector = VMDK_BYTE2SECTOR(RT_ALIGN_64(RT_H2LE_U64((uint64_t)pExtent->cGDEntries * sizeof(uint32_t)), 512));
4313 pExtent->uSectorGD = VMDK_BYTE2SECTOR(uFileOffset);
4314 pExtent->uSectorRGD = VMDK_BYTE2SECTOR(uFileOffset);
4321 pMarker->uSector = VMDK_BYTE2SECTOR(512);
4600 || uSector + VMDK_BYTE2SECTOR(cbWrite) > pExtent->cNominalSectors)
4651 pImage->pGTCache->aGTCache[uCacheLine].aGTData[uCacheEntry] = VMDK_BYTE2SECTOR(uFileOffset);
4746 aGTDataTmp[uGTBlockIndex] = RT_H2LE_U32(VMDK_BYTE2SECTOR(pGrainAlloc->uGrainOffset));
4747 pGTCacheEntry->aGTData[uGTBlockIndex] = VMDK_BYTE2SECTOR(pGrainAlloc->uGrainOffset);
4772 pExtent->uFreeSector = uGTSector + VMDK_BYTE2SECTOR(cbWrite);
4855 uGTSector = VMDK_BYTE2SECTOR(uFileOffset);
4894 uRGTSector = VMDK_BYTE2SECTOR(uFileOffset);
5061 + VMDK_BYTE2SECTOR(pExtent->cbGrainStreamRead);
5103 uGrainSectorAbs += 1 + VMDK_BYTE2SECTOR(pExtent->cGTEntries * sizeof(uint32_t));
5106 uGrainSectorAbs += 1 + VMDK_BYTE2SECTOR(RT_ALIGN(pExtent->cGDEntries * sizeof(uint32_t), 512));
5130 uGrainSectorAbs += VMDK_BYTE2SECTOR(RT_ALIGN(Marker.cbSize + RT_OFFSETOF(VMDKMARKER, uType), 512));
5732 rc = vmdkFindExtent(pImage, VMDK_BYTE2SECTOR(uOffset),
5868 rc = vmdkFindExtent(pImage, VMDK_BYTE2SECTOR(uOffset),
6566 VMDK_BYTE2SECTOR(pImage->cbSize));