Lines Matching refs:pDisk

44     PVBOXHDD       pDisk;
57 * @param pDisk VD disk container.
62 static int vdReadHelper(PVBOXHDD pDisk, uint64_t off, void *pvBuf, size_t cbRead)
69 rc = VDRead(pDisk, off, pvBuf, cbRead);
80 rc = VDRead(pDisk, offAligned, abBuf, 512);
96 rc = VDRead(pDisk, off, pbBuf, cbReadAligned);
111 rc = VDRead(pDisk, off, abBuf, 512);
125 * @param pDisk VD disk container.
130 static int vdWriteHelper(PVBOXHDD pDisk, uint64_t off, const void *pvBuf, size_t cbWrite)
137 rc = VDWrite(pDisk, off, pvBuf, cbWrite);
148 rc = VDRead(pDisk, offAligned, abBuf, 512);
152 rc = VDWrite(pDisk, offAligned, abBuf, 512);
166 rc = VDWrite(pDisk, off, pbBuf, cbWriteAligned);
181 rc = VDRead(pDisk, off, abBuf, 512);
185 rc = VDWrite(pDisk, off, abBuf, 512);
202 VDDestroy(pThis->pDisk);
236 if (offUnsigned >= VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
248 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
252 *pcbRead = cbLeftToRead = (size_t)(VDGetSize(pThis->pDisk, VD_LAST_IMAGE) - offUnsigned);
266 rc = vdReadHelper(pThis->pDisk, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToRead);
292 if (offUnsigned >= VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
303 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
307 *pcbWritten = cbLeftToWrite = (size_t)(VDGetSize(pThis->pDisk, VD_LAST_IMAGE) - offUnsigned);
321 rc = vdWriteHelper(pThis->pDisk, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToWrite);
337 return VDFlush(pThis->pDisk);
432 offWrt = VDGetSize(pThis->pDisk, VD_LAST_IMAGE);
475 *pcbFile = VDGetSize(pThis->pDisk, VD_LAST_IMAGE);
521 VBOXDDU_DECL(int) VDCreateVfsFileFromDisk(PVBOXHDD pDisk, uint32_t fFlags,
524 AssertPtrReturn(pDisk, VERR_INVALID_HANDLE);
538 pThis->pDisk = pDisk;