Lines Matching refs:cbThisWrite
2591 size_t cbThisWrite = pIoCtx->Type.Child.cbTransferParent;
2596 cbPreRead + cbThisWrite + cbPostRead,
2617 size_t cbThisWrite = 0;
2632 cbThisWrite = pIoCtx->Type.Child.cbTransferParent;
2636 if (!RTSgBufCmp(&pIoCtx->Req.Io.SgBuf, &pIoCtxParent->Req.Io.SgBuf, cbThisWrite))
2641 RTSgBufAdvance(&SgBufSrcTmp, cbThisWrite);
2642 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbThisWrite);
2649 RTSgBufAdvance(&pIoCtxParent->Req.Io.SgBuf, cbThisWrite);
2657 vdIoCtxCopy(pIoCtx, pIoCtxParent, cbThisWrite);
2724 size_t cbThisWrite = pIoCtx->Type.Child.cbTransferParent;
2742 if (uOffset + cbThisWrite + cbPostRead > pDisk->cbSize)
2743 cbFill = uOffset + cbThisWrite + cbPostRead - pDisk->cbSize;
2747 if (cbWrite > cbThisWrite)
2748 cbWriteCopy = RT_MIN(cbWrite - cbThisWrite, cbPostRead);
2760 size_t cbTmp = cbPreRead + cbThisWrite + cbPostRead - cbFill; Assert(cbTmp == (uint32_t)cbTmp);
2809 size_t cbThisWrite = pIoCtx->Type.Child.cbTransferParent;
2814 vdIoCtxCopy(pIoCtx, pIoCtxParent, cbThisWrite);
2894 size_t cbThisWrite = pIoCtx->Type.Child.cbTransferParent;
2912 if (cbWrite > cbThisWrite)
2913 cbWriteCopy = RT_MIN(cbWrite - cbThisWrite, cbPostRead);
2920 if (uOffset + cbThisWrite + cbPostRead > pDisk->cbSize)
2921 cbFill = uOffset + cbThisWrite + cbPostRead - pDisk->cbSize;
2959 size_t cbThisWrite;
2991 cbThisWrite = cbWrite;
3009 rc = pImage->Backend->pfnWrite(pImage->pBackendData, uOffset, cbThisWrite,
3010 pIoCtx, &cbThisWrite, &cbPreRead, &cbPostRead,
3022 PRTSGBUF pTmp = (PRTSGBUF)RTMemAlloc(cbPreRead + cbThisWrite + cbPostRead + sizeof(RTSGSEG) + sizeof(RTSGBUF));
3027 pSeg->cbSeg = cbPreRead + cbThisWrite + cbPostRead;
3033 pIoCtx, cbThisWrite,
3051 pDisk->uOffsetEndLocked = uOffset + cbThisWrite + cbPostRead;
3070 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbThisWrite);
3071 Assert(cbThisWrite == (uint32_t)cbThisWrite);
3073 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbThisWrite);
3083 cbWrite -= cbThisWrite;
3084 uOffset += cbThisWrite;
3097 cbWrite -= cbThisWrite;
3098 uOffset += cbThisWrite;
3105 cbWrite -= cbThisWrite;
3106 uOffset += cbThisWrite;
8765 size_t cbThisWrite = 0;
8769 cbThisRead, &IoCtx, &cbThisWrite,
8773 Assert(cbThisWrite == cbThisRead);
8774 cbFileWritten += cbThisWrite;