Lines Matching defs:pDisk
92 * @param pDisk Disk descriptor.
95 DECLCALLBACKMEMBER(int, pfnProbe)(PCRTDVMDISK pDisk, uint32_t *puScore);
101 * @param pDisk The disk descriptor.
104 DECLCALLBACKMEMBER(int, pfnOpen)(PCRTDVMDISK pDisk, PRTDVMFMT phVolMgrFmt);
110 * @param pDisk The disk descriptor.
113 DECLCALLBACKMEMBER(int, pfnInitialize)(PCRTDVMDISK pDisk, PRTDVMFMT phVolMgrFmt);
273 * @param pDisk The disk descriptor.
275 DECLINLINE(uint64_t) rtDvmDiskGetSectors(PCRTDVMDISK pDisk)
277 return pDisk->cbDisk / pDisk->cbSector;
284 * @param pDisk The disk descriptor to read from.
289 DECLINLINE(int) rtDvmDiskRead(PCRTDVMDISK pDisk, uint64_t off, void *pvBuf, size_t cbRead)
291 AssertPtrReturn(pDisk, VERR_INVALID_POINTER);
294 AssertReturn(off + cbRead <= pDisk->cbDisk, VERR_INVALID_PARAMETER);
296 return pDisk->pfnRead(pDisk->pvUser, off, pvBuf, cbRead);
303 * @param pDisk The disk descriptor to write to.
308 DECLINLINE(int) rtDvmDiskWrite(PCRTDVMDISK pDisk, uint64_t off, const void *pvBuf, size_t cbWrite)
310 AssertPtrReturn(pDisk, VERR_INVALID_POINTER);
313 AssertReturn(off + cbWrite <= pDisk->cbDisk, VERR_INVALID_PARAMETER);
315 return pDisk->pfnWrite(pDisk->pvUser, off, pvBuf, cbWrite);