Lines Matching defs:pInterface

129 #define PDMIBLOCK_2_DRVBLOCK(pInterface)        ( (PDRVBLOCK)((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IBlock)) )
132 static DECLCALLBACK(int) drvblockRead(PPDMIBLOCK pInterface, uint64_t off, void *pvBuf, size_t cbRead)
134 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
151 static DECLCALLBACK(int) drvblockReadPcBios(PPDMIBLOCK pInterface, uint64_t off, void *pvBuf, size_t cbRead)
153 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
170 static DECLCALLBACK(int) drvblockWrite(PPDMIBLOCK pInterface, uint64_t off, const void *pvBuf, size_t cbWrite)
172 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
204 static DECLCALLBACK(int) drvblockFlush(PPDMIBLOCK pInterface)
206 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
230 static DECLCALLBACK(int) drvblockMerge(PPDMIBLOCK pInterface,
234 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
254 static DECLCALLBACK(bool) drvblockIsReadOnly(PPDMIBLOCK pInterface)
256 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
270 static DECLCALLBACK(uint64_t) drvblockGetSize(PPDMIBLOCK pInterface)
272 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
287 static DECLCALLBACK(uint32_t) drvblockGetSectorSize(PPDMIBLOCK pInterface)
289 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
304 static DECLCALLBACK(PDMBLOCKTYPE) drvblockGetType(PPDMIBLOCK pInterface)
306 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
313 static DECLCALLBACK(int) drvblockGetUuid(PPDMIBLOCK pInterface, PRTUUID pUuid)
315 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
324 static DECLCALLBACK(int) drvblockDiscard(PPDMIBLOCK pInterface, PCRTRANGE paRanges, unsigned cRanges)
326 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
332 static DECLCALLBACK(int) drvblockIoBufAlloc(PPDMIBLOCK pInterface, size_t cb, void **ppvNew)
334 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
340 static DECLCALLBACK(int) drvblockIoBufFree(PPDMIBLOCK pInterface, void *pv, size_t cb)
342 PDRVBLOCK pThis = PDMIBLOCK_2_DRVBLOCK(pInterface);
350 #define PDMIBLOCKASYNC_2_DRVBLOCK(pInterface) ( (PDRVBLOCK)((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IBlockAsync)) )
353 static DECLCALLBACK(int) drvblockAsyncReadStart(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbRead, void *pvUser)
355 PDRVBLOCK pThis = PDMIBLOCKASYNC_2_DRVBLOCK(pInterface);
372 static DECLCALLBACK(int) drvblockAsyncWriteStart(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbWrite, void *pvUser)
374 PDRVBLOCK pThis = PDMIBLOCKASYNC_2_DRVBLOCK(pInterface);
392 static DECLCALLBACK(int) drvblockAsyncFlushStart(PPDMIBLOCKASYNC pInterface, void *pvUser)
394 PDRVBLOCK pThis = PDMIBLOCKASYNC_2_DRVBLOCK(pInterface);
417 static DECLCALLBACK(int) drvblockStartDiscard(PPDMIBLOCKASYNC pInterface, PCRTRANGE paRanges, unsigned cRanges, void *pvUser)
419 PDRVBLOCK pThis = PDMIBLOCKASYNC_2_DRVBLOCK(pInterface);
436 #define PDMIMEDIAASYNCPORT_2_DRVBLOCK(pInterface) ( (PDRVBLOCK((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IMediaAsyncPort))) )
438 static DECLCALLBACK(int) drvblockAsyncTransferCompleteNotify(PPDMIMEDIAASYNCPORT pInterface, void *pvUser, int rcReq)
440 PDRVBLOCK pThis = PDMIMEDIAASYNCPORT_2_DRVBLOCK(pInterface);
448 #define PDMIBLOCKBIOS_2_DRVBLOCK(pInterface) ( (PDRVBLOCK((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IBlockBios))) )
452 static DECLCALLBACK(int) drvblockGetPCHSGeometry(PPDMIBLOCKBIOS pInterface, PPDMMEDIAGEOMETRY pPCHSGeometry)
454 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
494 static DECLCALLBACK(int) drvblockSetPCHSGeometry(PPDMIBLOCKBIOS pInterface, PCPDMMEDIAGEOMETRY pPCHSGeometry)
497 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
524 static DECLCALLBACK(int) drvblockGetLCHSGeometry(PPDMIBLOCKBIOS pInterface, PPDMMEDIAGEOMETRY pLCHSGeometry)
526 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
566 static DECLCALLBACK(int) drvblockSetLCHSGeometry(PPDMIBLOCKBIOS pInterface, PCPDMMEDIAGEOMETRY pLCHSGeometry)
569 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
596 static DECLCALLBACK(bool) drvblockIsVisible(PPDMIBLOCKBIOS pInterface)
598 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
605 static DECLCALLBACK(PDMBLOCKTYPE) drvblockBiosGetType(PPDMIBLOCKBIOS pInterface)
607 PDRVBLOCK pThis = PDMIBLOCKBIOS_2_DRVBLOCK(pInterface);
617 #define PDMIMOUNT_2_DRVBLOCK(pInterface) ( (PDRVBLOCK)((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IMount)) )
621 static DECLCALLBACK(int) drvblockMount(PPDMIMOUNT pInterface, const char *pszFilename, const char *pszCoreDriver)
624 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
704 static DECLCALLBACK(int) drvblockUnmount(PPDMIMOUNT pInterface, bool fForce, bool fEject)
706 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
747 static DECLCALLBACK(bool) drvblockIsMounted(PPDMIMOUNT pInterface)
749 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
754 static DECLCALLBACK(int) drvblockLock(PPDMIMOUNT pInterface)
756 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
763 static DECLCALLBACK(int) drvblockUnlock(PPDMIMOUNT pInterface)
765 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
772 static DECLCALLBACK(bool) drvblockIsLocked(PPDMIMOUNT pInterface)
774 PDRVBLOCK pThis = PDMIMOUNT_2_DRVBLOCK(pInterface);
783 #define PDMIMEDIAPORT_2_DRVBLOCK(pInterface) ( (PDRVBLOCK((uintptr_t)pInterface - RT_OFFSETOF(DRVBLOCK, IMediaPort))) )
788 static DECLCALLBACK(int) drvblockQueryDeviceLocation(PPDMIMEDIAPORT pInterface, const char **ppcszController,
791 PDRVBLOCK pThis = PDMIMEDIAPORT_2_DRVBLOCK(pInterface);
802 static DECLCALLBACK(void *) drvblockQueryInterface(PPDMIBASE pInterface, const char *pszIID)
804 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface);