Lines Matching defs:Io

397         } Io;
1010 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
1033 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
1042 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
1052 pIoCtx->rcReq = vdFilterChainApplyRead(pDisk, pIoCtx->Req.Io.uOffsetXferOrig,
1053 pIoCtx->Req.Io.cbXferOrig, pIoCtx);
1070 pIoCtx->Req.Io.cbTransferLeft = (uint32_t)cbTransfer; Assert((uint32_t)cbTransfer == cbTransfer);
1071 pIoCtx->Req.Io.uOffset = uOffset;
1072 pIoCtx->Req.Io.cbTransfer = cbTransfer;
1073 pIoCtx->Req.Io.pImageStart = pImageStart;
1074 pIoCtx->Req.Io.pImageCur = pImageStart;
1075 pIoCtx->Req.Io.cbBufClear = 0;
1076 pIoCtx->Req.Io.pImageParentOverride = NULL;
1077 pIoCtx->Req.Io.uOffsetXferOrig = uOffset;
1078 pIoCtx->Req.Io.cbXferOrig = cbTransfer;
1092 RTSgBufClone(&pIoCtx->Req.Io.SgBuf, pcSgBuf);
1094 memset(&pIoCtx->Req.Io.SgBuf, 0, sizeof(RTSGBUF));
1544 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
1545 pIoCtx->Req.Io.uOffset = pIoCtx->Type.Child.uOffsetSaved;
1546 pIoCtx->Req.Io.cbTransferLeft = (uint32_t)pIoCtx->Type.Child.cbTransferLeftSaved;
1595 return RTSgBufCopy(&pIoCtxDst->Req.Io.SgBuf, &pIoCtxSrc->Req.Io.SgBuf, cbData);
1600 return RTSgBufCmp(&pIoCtx1->Req.Io.SgBuf, &pIoCtx2->Req.Io.SgBuf, cbData);
1605 return RTSgBufCopyFromBuf(&pIoCtx->Req.Io.SgBuf, pbData, cbData);
1610 return RTSgBufCopyToBuf(&pIoCtx->Req.Io.SgBuf, pbData, cbData);
1615 return RTSgBufSet(&pIoCtx->Req.Io.SgBuf, ch, cbData);
1775 int rc2 = vdFilterChainApplyRead(pDisk, pTmp->Req.Io.uOffsetXferOrig,
1776 pTmp->Req.Io.cbXferOrig, pTmp);
2013 size_t cbToRead = pIoCtx->Req.Io.cbTransfer;
2014 uint64_t uOffset = pIoCtx->Req.Io.uOffset;
2015 PVDIMAGE pCurrImage = pIoCtx->Req.Io.pImageCur;
2016 PVDIMAGE pImageParentOverride = pIoCtx->Req.Io.pImageParentOverride;
2017 unsigned cImagesRead = pIoCtx->Req.Io.cImagesRead;
2079 pIoCtx->Req.Io.pImageParentOverride = NULL;
2101 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbThisRead); Assert(cbThisRead == (uint32_t)cbThisRead);
2108 pIoCtx->Req.Io.cbBufClear += cbThisRead;
2110 if (pIoCtx->Req.Io.pImageCur->uOpenFlags & VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS)
2125 if ( pIoCtx->Req.Io.cbBufClear
2129 RTSgBufClone(&SgBuf, &pIoCtx->Req.Io.SgBuf);
2131 RTSgBufSet(&SgBuf, 0, pIoCtx->Req.Io.cbBufClear);
2132 pIoCtx->Req.Io.cbBufClear = 0;
2143 pCurrImage = pIoCtx->Req.Io.pImageStart; /* Start with the highest image in the chain. */
2150 pIoCtx->Req.Io.uOffset = uOffset;
2151 pIoCtx->Req.Io.cbTransfer = cbToRead;
2152 pIoCtx->Req.Io.pImageCur = pCurrImage ? pCurrImage : pIoCtx->Req.Io.pImageStart;
2243 IoCtx.Req.Io.pImageParentOverride = pImageParentOverride;
2244 IoCtx.Req.Io.cImagesRead = cImagesRead;
2339 IoCtx.Req.Io.pImageParentOverride = pImageParentOverride;
2340 IoCtx.Req.Io.cImagesRead = cImagesRead;
2524 PVDIMAGE pImage = pIoCtx->Req.Io.pImageCur;
2588 PVDIMAGE pImage = pIoCtx->Req.Io.pImageStart;
2595 pIoCtx->Req.Io.uOffset - cbPreRead,
2616 PVDIMAGE pImage = pIoCtx->Req.Io.pImageCur;
2629 Assert(!pIoCtx->Req.Io.cbTransferLeft && !pIoCtx->cMetaTransfersPending);
2633 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbPreRead);
2636 if (!RTSgBufCmp(&pIoCtx->Req.Io.SgBuf, &pIoCtxParent->Req.Io.SgBuf, cbThisWrite))
2640 RTSgBufClone(&SgBufSrcTmp, &pIoCtxParent->Req.Io.SgBuf);
2642 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbThisWrite);
2644 if (!cbWriteCopy || !RTSgBufCmp(&pIoCtx->Req.Io.SgBuf, &SgBufSrcTmp, cbWriteCopy))
2648 ASMAtomicWriteU32(&pIoCtx->Req.Io.cbTransferLeft, 0);
2649 RTSgBufAdvance(&pIoCtxParent->Req.Io.SgBuf, cbThisWrite);
2655 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
2656 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbPreRead);
2671 RTSgBufClone(&SgBufParentTmp, &pIoCtxParent->Req.Io.SgBuf);
2672 RTSgBufCopy(&pIoCtx->Req.Io.SgBuf, &SgBufParentTmp, cbWriteCopy);
2679 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbReadImage);
2685 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
2699 if ( pIoCtx->Req.Io.cbTransferLeft
2705 && ( pIoCtx->Req.Io.cbTransferLeft
2761 pIoCtx->Req.Io.cbTransferLeft = (uint32_t)cbTmp;
2762 pIoCtx->Req.Io.cbTransfer = pIoCtx->Req.Io.cbTransferLeft;
2763 pIoCtx->Req.Io.uOffset -= cbPreRead;
2778 if ( pIoCtx->Req.Io.cbTransferLeft
2783 && ( pIoCtx->Req.Io.cbTransferLeft
2796 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
2830 RTSgBufClone(&SgBufParentTmp, &pIoCtxParent->Req.Io.SgBuf);
2831 RTSgBufCopy(&pIoCtx->Req.Io.SgBuf, &SgBufParentTmp, cbWriteCopy);
2840 pIoCtx->Req.Io.cbTransferLeft = (uint32_t)cbReadImage; Assert(cbReadImage == (uint32_t)cbReadImage);
2841 pIoCtx->Req.Io.cbTransfer = pIoCtx->Req.Io.cbTransferLeft;
2842 pIoCtx->Req.Io.uOffset += cbWriteCopy;
2852 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
2860 RTSgBufReset(&pIoCtx->Req.Io.SgBuf);
2876 if ( pIoCtx->Req.Io.cbTransferLeft
2881 && ( pIoCtx->Req.Io.cbTransferLeft
2937 pIoCtx->Req.Io.cbTransferLeft = (uint32_t)cbPreRead; Assert(cbPreRead == (uint32_t)cbPreRead);
2938 pIoCtx->Req.Io.cbTransfer = pIoCtx->Req.Io.cbTransferLeft;
2939 pIoCtx->Req.Io.uOffset -= cbPreRead;
2954 size_t cbWrite = pIoCtx->Req.Io.cbTransfer;
2955 uint64_t uOffset = pIoCtx->Req.Io.uOffset;
2956 PVDIMAGE pImage = pIoCtx->Req.Io.pImageCur;
3055 pIoCtxWrite->Req.Io.pImageParentOverride = pIoCtx->Req.Io.pImageParentOverride;
3070 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbThisWrite);
3073 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbThisWrite);
3121 pIoCtx->Req.Io.uOffset = uOffset;
3122 pIoCtx->Req.Io.cbTransfer = cbWrite;
3135 PVDIMAGE pImage = pIoCtx->Req.Io.pImageCur;
4101 Assert(pIoCtxParent->Req.Io.cbTransferLeft >= pIoCtx->Type.Child.cbTransferParent);
4102 ASMAtomicSubU32(&pIoCtxParent->Req.Io.cbTransferLeft, (uint32_t)pIoCtx->Type.Child.cbTransferParent);
4176 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbTransfer);
4177 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbTransfer); Assert(cbTransfer == (uint32_t)cbTransfer);
4642 AssertMsgReturn(pIoCtx->Req.Io.SgBuf.cSegs == 1,
4646 cbTaskRead = RTSgBufSegArrayCreate(&pIoCtx->Req.Io.SgBuf, &Seg, &cSegments, cbRead);
4655 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbRead);
4665 size_t cbTaskRead = RTSgBufSegArrayCreate(&pIoCtx->Req.Io.SgBuf, aSeg, &cSegments, cbRead);
4695 AssertMsg(cbTaskRead <= pIoCtx->Req.Io.cbTransferLeft, ("Impossible!\n"));
4696 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbTaskRead);
4740 AssertMsgReturn(pIoCtx->Req.Io.SgBuf.cSegs == 1,
4744 cbTaskWrite = RTSgBufSegArrayCreate(&pIoCtx->Req.Io.SgBuf, &Seg, &cSegments, cbWrite);
4752 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbWrite);
4753 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbWrite);
4765 cbTaskWrite = RTSgBufSegArrayCreate(&pIoCtx->Req.Io.SgBuf, aSeg, &cSegments, cbWrite);
4795 AssertMsg(cbTaskWrite <= pIoCtx->Req.Io.cbTransferLeft, ("Impossible!\n"));
4796 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbTaskWrite);
5222 /// @todo Assert(pIoCtx->Req.Io.cbTransferLeft >= cbCopied); - triggers with vdCopyHelper/dmgRead.
5223 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbCopied);
5242 /// @todo Assert(pIoCtx->Req.Io.cbTransferLeft > cbCopied); - triggers with vdCopyHelper/dmgRead.
5243 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbCopied);
5261 /// @todo Assert(pIoCtx->Req.Io.cbTransferLeft >= cbSet); - triggers with vdCopyHelper/dmgRead.
5262 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbSet);
5283 cbCreated = RTSgBufSegArrayCreate(&pIoCtx->Req.Io.SgBuf, paSeg, pcSeg, cbData);
5308 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbCompleted);
5309 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbCompleted);
5313 if (!pIoCtx->Req.Io.cbTransferLeft)
5338 bool fIsZero = RTSgBufIsZero(&pIoCtx->Req.Io.SgBuf, cbCheck);
5340 RTSgBufAdvance(&pIoCtx->Req.Io.SgBuf, cbCheck);