Searched defs:cBlocksNew (Results 1 - 3 of 3) sorted by relevance

/vbox/src/VBox/Storage/
H A DVCICache.cpp885 * @param cBlocksNew How many blocks the extended block should have.
889 static int vciBlkMapRealloc(PVCIBLKMAP pBlkMap, uint32_t cBlocksNew, uint64_t offBlockAddrOld, argument
894 LogFlowFunc(("pBlkMap=%#p cBlocksNew=%u offBlockAddrOld=%llu poffBlockAddr=%#p\n",
895 pBlkMap, cBlocksNew, offBlockAddrOld, poffBlockAddr));
H A DVDI.cpp2677 uint32_t cBlocksNew = cbSize / getImageBlockSize(&pImage->Header); /** < New number of blocks in the image after the resize */ local
2679 cBlocksNew++;
2682 uint64_t cbBlockspaceNew = cBlocksNew * sizeof(VDIIMAGEBLOCKPOINTER); /** < Required space for the block array after the resize. */
2811 for (unsigned idxBlock = cBlocksOld; idxBlock < cBlocksNew; idxBlock++)
2818 vdiConvBlocksEndianess(VDIECONV_H2F, pImage->paBlocks, cBlocksNew);
2821 vdiConvBlocksEndianess(VDIECONV_F2H, pImage->paBlocks, cBlocksNew);
2827 setImageBlocks(&pImage->Header, cBlocksNew);
H A DVHD.cpp2696 uint32_t cBlocksNew = cbSize / pImage->cbDataBlock; /** < New number of blocks in the image after the resize */ local
2698 cBlocksNew++;
2701 uint64_t cbBlockspaceNew = RT_ALIGN_32(cBlocksNew * sizeof(uint32_t), VHD_SECTOR_SIZE); /** < Required space for the block array after the resize. */
2810 uint32_t *paBlocksNew = (uint32_t *)RTMemRealloc(pImage->pBlockAllocationTable, cBlocksNew * sizeof(uint32_t));
2816 for (unsigned idxBlock = cBlocksOld; idxBlock < cBlocksNew; idxBlock++)
2828 cBlocksNew * sizeof(uint32_t));
2834 pImage->cBlockAllocationTableEntries = cBlocksNew;

Completed in 66 milliseconds