Lines Matching refs:cBlkMap
74 uint32_t cBlkMap;
487 LogFlowFunc(("returns rc=%Rrc cBlkMap=%u\n", rc, *pcBlkMap));
524 * @param cBlkMap Size of the block bitmap on the disk in blocks.
527 static int vciBlkMapLoad(PVCICACHE pStorage, uint64_t offBlkMap, uint32_t cBlkMap, PVCIBLKMAP *ppBlkMap)
532 LogFlowFunc(("pStorage=%#p offBlkMap=%llu cBlkMap=%u ppBlkMap=%#p\n",
533 pStorage, offBlkMap, cBlkMap, ppBlkMap));
535 if (cBlkMap >= VCI_BYTE2BLOCK(sizeof(VciBlkMap)))
537 cBlkMap -= VCI_BYTE2BLOCK(sizeof(VciBlkMap));
555 && VCI_BYTE2BLOCK(BlkMap.cBlocks / 8) == cBlkMap)
692 * @param cBlkMap Size of the block bitmap on the disk in blocks.
694 static int vciBlkMapSave(PVCIBLKMAP pBlkMap, PVCICACHE pStorage, uint64_t offBlkMap, uint32_t cBlkMap)
699 LogFlowFunc(("pBlkMap=%#p pStorage=%#p offBlkMap=%llu cBlkMap=%u\n",
700 pBlkMap, pStorage, offBlkMap, cBlkMap));
703 if (VCI_BYTE2BLOCK(pBlkMap->cBlocks / 8) + VCI_BYTE2BLOCK(sizeof(VciBlkMap)) == cBlkMap)
1246 Hdr.cBlkMap = RT_LE2H_U32(Hdr.cBlkMap);
1255 rc = vciBlkMapLoad(pCache, pCache->offBlksBitmap, Hdr.cBlkMap, &pCache->pBlkMap);
1322 uint32_t cBlkMap = 0;
1323 rc = vciBlkMapCreate(cBlocks, &pCache->pBlkMap, &cBlkMap);
1348 rc = vciBlkMapAllocate(pCache->pBlkMap, cBlkMap, VCIBLKMAP_ALLOC_META, &offBlkMap);
1395 Hdr.cBlkMap = RT_H2LE_U32(cBlkMap);
1405 rc = vciBlkMapSave(pCache->pBlkMap, pCache, offBlkMap, cBlkMap);
1484 Hdr.cBlkMap = RT_LE2H_U32(Hdr.cBlkMap);