Lines Matching defs:cbToWrite
791 size_t cbToWrite, uint64_t uLBA,
807 rc = RTZipCompress(pZip, pvBuf, cbToWrite);
5833 static int vmdkWrite(void *pBackendData, uint64_t uOffset, size_t cbToWrite,
5837 LogFlowFunc(("pBackendData=%#p uOffset=%llu pIoCtx=%#p cbToWrite=%zu pcbWriteProcess=%#p pcbPreRead=%#p pcbPostRead=%#p\n",
5838 pBackendData, uOffset, pIoCtx, cbToWrite, pcbWriteProcess, pcbPreRead, pcbPostRead));
5847 Assert(cbToWrite % 512 == 0);
5855 if (cbToWrite == 0)
5894 cbToWrite = RT_MIN(cbToWrite, VMDK_SECTOR2BYTE(pExtent->cSectorsPerGrain - uSectorExtentRel % pExtent->cSectorsPerGrain));
5905 if (cbToWrite == VMDK_SECTOR2BYTE(pExtent->cSectorsPerGrain))
5913 uSectorExtentRel, cbToWrite);
5923 cbToWrite = RT_MIN(cbToWrite, VMDK_SECTOR2BYTE(pExtent->uSectorOffset + pExtent->cNominalSectors - uSectorExtentRel));
5925 *pcbPostRead = VMDK_SECTOR2BYTE(pExtent->cSectorsPerGrain) - cbToWrite - *pcbPreRead;
5933 pIoCtx, cbToWrite);
5952 pIoCtx, cbToWrite, NULL, NULL);
5959 cbToWrite = RT_MIN(cbToWrite, VMDK_SECTOR2BYTE(pExtent->uSectorOffset + pExtent->cNominalSectors - uSectorExtentRel));
5962 pIoCtx, cbToWrite, NULL, NULL);
5966 cbToWrite = RT_MIN(cbToWrite, VMDK_SECTOR2BYTE(pExtent->uSectorOffset + pExtent->cNominalSectors - uSectorExtentRel));
5971 *pcbWriteProcess = cbToWrite;