/vbox/src/VBox/Runtime/common/misc/ |
H A D | handletablectx.cpp | 45 RTDECL(int) RTHandleTableAllocWithCtx(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, uint32_t *ph) argument 55 AssertReturn(!RTHT_IS_FREE(pvObj), VERR_INVALID_PARAMETER); 86 pEntry->pvObj = pvObj; 219 void *pvObj = NULL; local 239 pvObj = pEntry->pvObj; 240 if (!RTHT_IS_FREE(pvObj)) 244 int rc = pThis->pfnRetain(hHandleTable, pEntry->pvObj, pvCtx, pThis->pvRetainUser); 246 pvObj 262 void *pvObj = NULL; local [all...] |
H A D | handletablesimple.cpp | 45 RTDECL(int) RTHandleTableAlloc(RTHANDLETABLE hHandleTable, void *pvObj, uint32_t *ph) argument 52 AssertReturn(!RTHT_IS_FREE(pvObj), VERR_INVALID_PARAMETER); 83 pEntry->pvObj = pvObj; 211 void *pvObj = NULL; local 222 pvObj = pEntry->pvObj; 223 if (!RTHT_IS_FREE(pvObj)) 227 int rc = pThis->pfnRetain(hHandleTable, pEntry->pvObj, NULL, pThis->pvRetainUser); 229 pvObj 251 void *pvObj = NULL; local [all...] |
H A D | handletable.h | 40 #define RTHT_IS_FREE(pvObj) ( ((uintptr_t)(pvObj) & 3) == 3 ) 74 void *pvObj; member in struct:RTHTENTRY 86 void *pvObj; member in struct:RTHTENTRYCTX 113 AssertCompileMemberOffset(RTHTENTRY, pvObj, 0); 114 AssertCompileMemberOffset(RTHTENTRYCTX, pvObj, 0);
|
H A D | handletable.cpp | 178 if (!RTHT_IS_FREE(paTable[i].pvObj)) 181 paTable[i].pvObj, paTable[i].pvCtx, pvUser); 194 if (!RTHT_IS_FREE(paTable[i].pvObj)) 197 paTable[i].pvObj, NULL, pvUser);
|
H A D | aiomgr.cpp | 1090 * @param pvObj The memory object that should be initialized. 1093 static DECLCALLBACK(int) rtAioMgrReqCtor(RTMEMCACHE hMemCache, void *pvObj, void *pvUser) argument 1095 PRTAIOMGRREQ pReq = (PRTAIOMGRREQ)pvObj; 1105 * @param pvObj The memory object that should be destroyed. 1108 static DECLCALLBACK(void) rtAioMgrReqDtor(RTMEMCACHE hMemCache, void *pvObj, void *pvUser) argument 1110 PRTAIOMGRREQ pReq = (PRTAIOMGRREQ)pvObj;
|
/vbox/include/iprt/ |
H A D | memcache.h | 70 * @param pvObj The memory object that should be initialized. 75 typedef DECLCALLBACK(int) FNMEMCACHECTOR(RTMEMCACHE hMemCache, void *pvObj, void *pvUser); 85 * @param pvObj The memory object that should be initialized. 90 typedef DECLCALLBACK(void) FNMEMCACHEDTOR(RTMEMCACHE hMemCache, void *pvObj, void *pvUser); 148 * @param pvObj The object to free. NULL is fine. 150 RTDECL(void) RTMemCacheFree(RTMEMCACHE hMemCache, void *pvObj);
|
H A D | handletable.h | 58 * @param pvObj The object which has been looked up. 63 typedef DECLCALLBACK(int) FNRTHANDLETABLERETAIN(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser); 72 * @param pvObj The object. 78 typedef DECLCALLBACK(void) FNRTHANDLETABLEDELETE(RTHANDLETABLE hHandleTable, uint32_t h, void *pvObj, void *pvCtx, void *pvUser); 164 * @param pvObj The object to associate with the new handle. 170 RTDECL(int) RTHandleTableAlloc(RTHANDLETABLE hHandleTable, void *pvObj, uint32_t *ph); 205 * @param pvObj The object to associate with the new handle. 212 RTDECL(int) RTHandleTableAllocWithCtx(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, uint32_t *ph);
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstHandleTable.cpp | 46 static DECLCALLBACK(void) tstHandleTableTest1Delete(RTHANDLETABLE hHandleTable, uint32_t h, void *pvObj, void *pvCtx, void *pvUser) argument 52 static DECLCALLBACK(int) tstHandleTableTest1Retain(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser) argument 132 void *pvObj; local 134 pvObj = RTHandleTableLookupWithCtx(hHT, i, NULL); 136 pvObj = RTHandleTableLookup(hHT, i); 137 if (!pvObj) 142 else if (pvObj != pvExpect) 144 RTPrintf("\ntstHandleTable: FAILURE (%d) - i=%d, pvObj=%p expected %p\n", __LINE__, i, pvObj, pvExpect); 166 void *pvObj; local 231 void *pvObj; local 254 void *pvObj; local 344 void *pvObj = RTHandleTableLookupWithCtx(hHT, pah[i], hThread); local 358 void *pvObj = RTHandleTableFreeWithCtx(hHT, pah[i], hThread); local [all...] |
H A D | tstRTMemCache.cpp | 131 static DECLCALLBACK(int) tst2Ctor(RTMEMCACHE hMemCache, void *pvObj, void *pvUser) argument 134 RTTESTI_CHECK(ASMMemIsAll8(pvObj, 256, 0) == NULL); 139 strcat((char *)pvObj, "ctor was called\n"); 145 static DECLCALLBACK(void) tst2Dtor(RTMEMCACHE hMemCache, void *pvObj, void *pvUser) argument 147 RTTESTI_CHECK(!strcmp((char *)pvObj, "ctor was called\nused\nused\n")); 148 strcat((char *)pvObj, "dtor was called\n");
|
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPR0IdcClientStubs.c | 95 SUPR0DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSION pSession) argument 97 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 98 DECLCALLBACKPTR(int, pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 108 return pfn(pvObj, pSession); 112 SUPR0DECL(int) SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession) argument 114 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 115 DECLCALLBACKPTR(int, pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 125 return pfn(pvObj, pSession); 129 SUPR0DECL(int) SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName) argument 131 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSIO [all...] |
H A D | SUPDrvSem.cpp | 55 * @param pvObj The object handle. 59 static DECLCALLBACK(void) supR0SemEventDestructor(void *pvObj, void *pvUser1, void *pvUser2) argument 62 NOREF(pvObj); 84 void *pvObj = SUPR0ObjRegister(pSession, SUPDRVOBJTYPE_SEM_EVENT, supR0SemEventDestructor, hEventReal, NULL); local 85 if (pvObj) 88 rc = RTHandleTableAllocWithCtx(pSession->hHandleTable, pvObj, SUPDRV_HANDLE_CTX_EVENT, &h32); 94 SUPR0ObjRelease(pvObj, pSession); 227 * @param pvObj The object handle. 231 static DECLCALLBACK(void) supR0SemEventMultiDestructor(void *pvObj, void *pvUser1, void *pvUser2) argument 234 NOREF(pvObj); 256 void *pvObj = SUPR0ObjRegister(pSession, SUPDRVOBJTYPE_SEM_EVENT_MULTI, supR0SemEventMultiDestructor, hEventMultReal, NULL); local [all...] |
H A D | SUPDrv.cpp | 103 static DECLCALLBACK(int) supdrvSessionObjHandleRetain(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser); 104 static DECLCALLBACK(void) supdrvSessionObjHandleDelete(RTHANDLETABLE hHandleTable, uint32_t h, void *pvObj, void *pvCtx, void *pvUser); 1330 * @param pvObj The object pointer. 1334 static DECLCALLBACK(int) supdrvSessionObjHandleRetain(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser) argument 1338 return SUPR0ObjAddRefEx(pvObj, (PSUPDRVSESSION)pvUser, true /*fNoBlocking*/); 1347 * @param pvObj The object pointer. 1351 static DECLCALLBACK(void) supdrvSessionObjHandleDelete(RTHANDLETABLE hHandleTable, uint32_t h, void *pvObj, void *pvCtx, void *pvUser) argument 1356 SUPR0ObjRelease(pvObj, (PSUPDRVSESSION)pvUser); 2648 * @param pvObj The identifier returned by SUPR0ObjRegister(). 2655 SUPR0DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSIO argument 2680 SUPR0ObjAddRefEx(void *pvObj, PSUPDRVSESSION pSession, bool fNoBlocking) argument 2794 SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession) argument 2807 ("Invalid pvObj=%p magic=%#x (expected %#x)\\n", pvObj, pObj ? pObj->u32Magic : 0, SUPDRVOBJ_MAGIC), local 2904 SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName) argument 2914 ("Invalid pvObj=%p magic=%#x (exepcted %#x)\\n", pvObj, pObj ? pObj->u32Magic : 0, SUPDRVOBJ_MAGIC), local [all...] |
/vbox/src/VBox/Runtime/common/alloc/ |
H A D | memcache.cpp | 462 void *pvObj = &pPage->pbObjects[iObj * pThis->cbObject]; local 463 Assert((uintptr_t)pvObj - (uintptr_t)pPage < PAGE_SIZE); 471 int rc = pThis->pfnCtor(hMemCache, pvObj, pThis->pvUser); 475 RTMemCacheFree(pThis, pvObj); 480 *ppvObj = pvObj; 487 void *pvObj; local 488 int rc = RTMemCacheAllocEx(hMemCache, &pvObj); 490 return pvObj; 500 * @param pvObj The memory object to free. 502 static void rtMemCacheFreeOne(RTMEMCACHEINT *pThis, void *pvObj) argument 547 RTMemCacheFree(RTMEMCACHE hMemCache, void *pvObj) argument [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/ |
H A D | VBoxDispProfile.h | 75 void dump(void *pvObj, uint64_t cTotalEntriesTime, uint64_t cTotalTime) const argument 81 // VBOXDISPPROFILE_DUMP(("'%s' [0x%p]: \t%d\t%u\t%u\t%u\t%f\t%f", m_pName, pvObj, 87 VBOXDISPPROFILE_DUMP(("'%s' [0x%p]: \t%d\t%u\t%f\t%f", m_pName, pvObj, 182 void dump(void *pvObj) argument 187 VBOXDISPPROFILE_DUMP((">>>> '%s' [0x%p]: Start of VBox Disp Dump: num entries(%d), et(%u), tt(%u) >>>>>", m_pName, pvObj, m_cEntries, 192 m_Entries[i].dump(pvObj, cEntriesTime, m_cTime); ); 193 VBOXDISPPROFILE_DUMP(("<<<< '%s' [0x%p]: End of VBox Disp Dump <<<<<", m_pName, pvObj));
|
/vbox/src/VBox/VMM/VMMR0/ |
H A D | GVMMR0.cpp | 114 void *pvObj; member in struct:GVMHANDLE 304 static DECLCALLBACK(void) gvmmR0HandleObjDestructor(void *pvObj, void *pvGVMM, void *pvHandle); 776 && !pHandle->pvObj 779 pHandle->pvObj = SUPR0ObjRegister(pSession, SUPDRVOBJTYPE_VM, gvmmR0HandleObjDestructor, pGVMM, pHandle); 780 if (pHandle->pvObj) 801 rc = SUPR0ObjVerifyAccess(pHandle->pvObj, pSession, NULL); 922 void *pvObj = pHandle->pvObj; local 923 pHandle->pvObj = NULL; 926 SUPR0ObjRelease(pvObj, pSessio 1115 void *pvObj = pHandle->pvObj; local 1172 gvmmR0HandleObjDestructor(void *pvObj, void *pvGVMM, void *pvHandle) argument 2387 void *pvObj = pGVMM->aHandles[i].pvObj; local 2533 void *pvObj = pGVMM->aHandles[i].pvObj; local [all...] |
/vbox/src/VBox/Devices/Bus/ |
H A D | SrvPciRawR0.cpp | 86 void *pvObj; member in struct:PCIRAWDEV 129 static DECLCALLBACK(int) pcirawr0DevRetainHandle(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser) argument 133 PPCIRAWDEV pDev = (PPCIRAWDEV)pvObj; 135 return SUPR0ObjAddRefEx(pDev->pvObj, (PSUPDRVSESSION)pvCtx, true /* fNoBlocking */); 253 #define PUT_PORT() if (pDev->pvObj) SUPR0ObjRelease(pDev->pvObj, pSession) 505 static DECLCALLBACK(void) pcirawr0DevObjDestructor(void *pvObj, void *pvIns, void *pvUnused) argument 508 NOREF(pvObj); NOREF(pvUnused); 583 pNew->pvObj = SUPR0ObjRegister(pSession, SUPDRVOBJTYPE_RAW_PCI_DEVICE, 595 SUPR0ObjRelease(pNew->pvObj, pSessio [all...] |
/vbox/src/VBox/Devices/Network/testcase/ |
H A D | tstIntNetR0.cpp | 74 * @param pvObj The object pointer. 78 typedef DECLCALLBACK(void) FNSUPDRVDESTRUCTOR(void *pvObj, void *pvUser1, void *pvUser2); 121 INTNETR3DECL(int) SUPR0ObjAddRefEx(void *pvObj, PSUPDRVSESSION pSession, bool fNoBlocking) argument 124 POBJREF pRef = (POBJREF)pvObj; 130 INTNETR3DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSION pSession) argument 132 return SUPR0ObjAddRefEx(pvObj, pSession, false); 135 INTNETR3DECL(int) SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession) argument 138 POBJREF pRef = (POBJREF)pvObj; 148 INTNETR3DECL(int) SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName) argument 151 NOREF(pvObj); NORE [all...] |
/vbox/src/VBox/Devices/Network/ |
H A D | SrvIntNetR0.cpp | 274 void *pvObj; member in struct:INTNETIF 372 void *pvObj; member in struct:INTNETNETWORK 790 int rc = SUPR0ObjAddRefEx(pIf->pvObj, pSession, true /* fNoBlocking */); 806 int rc = SUPR0ObjRelease(pIf->pvObj, pSession); 820 * @param pvObj The object (INTNETIF). 824 static DECLCALLBACK(int) intnetR0IfRetainHandle(RTHANDLETABLE hHandleTable, void *pvObj, void *pvCtx, void *pvUser) 828 PINTNETIF pIf = (PINTNETIF)pvObj; 4631 void *pvObj = pIf->pvObj; 4634 int rc = SUPR0ObjRelease(pvObj, pSessio [all...] |
/vbox/src/VBox/GuestHost/OpenGL/state_tracker/ |
H A D | dump.cpp | 117 void* pvObj; member in struct:CRDUMPGETHWID_DATA 123 if (pData->pvObj) 129 pData->pvObj = pData1; 140 Assert(Data.pvObj); 144 return Data.pvObj; 595 static DECLCALLBACK(GLuint) crDmpGetHwidShaderCB(void *pvObj) argument 597 return ((CRGLSLShader*)pvObj)->hwid; 600 static DECLCALLBACK(GLuint) crDmpGetHwidProgramCB(void *pvObj) argument 602 return ((CRGLSLProgram*)pvObj)->hwid;
|
/vbox/include/VBox/ |
H A D | sup.h | 1796 * @param pvObj The object pointer. 1800 typedef DECLCALLBACK(void) FNSUPDRVDESTRUCTOR(void *pvObj, void *pvUser1, void *pvUser2); 1805 SUPR0DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSION pSession); 1806 SUPR0DECL(int) SUPR0ObjAddRefEx(void *pvObj, PSUPDRVSESSION pSession, bool fNoBlocking); 1807 SUPR0DECL(int) SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession); 1808 SUPR0DECL(int) SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName);
|
/vbox/src/VBox/GuestHost/OpenGL/include/ |
H A D | cr_dump.h | 169 typedef DECLCALLBACKPTR(GLuint, PFNCRDUMPGETHWID)(void *pvObj);
|