Lines Matching defs:pEndpointClass

832     PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = NULL;
836 (void **)&pEndpointClass);
840 pEndpointClass->pVM = pVM;
841 pEndpointClass->pEndpointOps = pEpClassOps;
843 rc = RTCritSectInit(&pEndpointClass->CritSect);
849 rc = RTMemCacheCreate(&pEndpointClass->hMemCacheTasks, pEpClassOps->cbTask,
854 rc = pEpClassOps->pfnInitialize(pEndpointClass, pCfgNodeClass);
884 rc = pdmacAsyncCompletionBwMgrCreate(pEndpointClass, pszBwGrpId, cbMax, cbStart, cbStep);
900 CFGMR3QueryBoolDef(pCfgNodeClass, "AdvancedStatistics", &pEndpointClass->fGatherAdvancedStatistics, true);
902 CFGMR3QueryBoolDef(pCfgNodeClass, "AdvancedStatistics", &pEndpointClass->fGatherAdvancedStatistics, false);
905 pUVM->pdm.s.apAsyncCompletionEndpointClass[pEpClassOps->enmClassType] = pEndpointClass;
910 RTMemCacheDestroy(pEndpointClass->hMemCacheTasks);
912 RTCritSectDelete(&pEndpointClass->CritSect);
914 MMR3HeapFree(pEndpointClass);
927 * @param pEndpointClass Pointer to the endpoint class to terminate.
931 static void pdmR3AsyncCompletionEpClassTerminate(PPDMASYNCCOMPLETIONEPCLASS pEndpointClass)
933 PVM pVM = pEndpointClass->pVM;
936 while (pEndpointClass->pEndpointsHead)
937 PDMR3AsyncCompletionEpClose(pEndpointClass->pEndpointsHead);
940 PPDMACBWMGR pBwMgr = pEndpointClass->pBwMgrsHead;
949 pEndpointClass->pEndpointOps->pfnTerminate(pEndpointClass);
951 RTMemCacheDestroy(pEndpointClass->hMemCacheTasks);
952 RTCritSectDelete(&pEndpointClass->CritSect);
955 pVM->pUVM->pdm.s.apAsyncCompletionEndpointClass[pEndpointClass->pEndpointOps->enmClassType] = NULL;
956 MMR3HeapFree(pEndpointClass);
1338 PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = pEndpoint->pEpClass;
1339 PPDMASYNCCOMPLETIONTASK pTask = (PPDMASYNCCOMPLETIONTASK)RTMemCacheAlloc(pEndpointClass->hMemCacheTasks);
1365 PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = pEndpoint->pEpClass;
1371 if (pEndpointClass->fGatherAdvancedStatistics)
1374 RTMemCacheFree(pEndpointClass->hMemCacheTasks, pTask);
1379 pdmR3AsyncCompletionFindEndpointWithUri(PPDMASYNCCOMPLETIONEPCLASS pEndpointClass, const char *pszUri)
1381 PPDMASYNCCOMPLETIONENDPOINT pEndpoint = pEndpointClass->pEndpointsHead;
1423 PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = pUVM->pdm.s.apAsyncCompletionEndpointClass[PDMASYNCCOMPLETIONEPCLASSTYPE_FILE];
1426 AssertMsg(pEndpointClass, ("File endpoint class was not initialized\n"));
1429 pEndpoint = pdmR3AsyncCompletionFindEndpointWithUri(pEndpointClass, pszFilename);
1441 pEndpointClass->pEndpointOps->cbEndpoint,
1448 pEndpoint->pEpClass = pEndpointClass;
1458 rc = pEndpointClass->pEndpointOps->pfnEpInitialize(pEndpoint, pszFilename, fFlags);
1461 if (pEndpointClass->fGatherAdvancedStatistics)
1467 rc = RTCritSectEnter(&pEndpointClass->CritSect);
1470 pEndpoint->pNext = pEndpointClass->pEndpointsHead;
1471 if (pEndpointClass->pEndpointsHead)
1472 pEndpointClass->pEndpointsHead->pPrev = pEndpoint;
1474 pEndpointClass->pEndpointsHead = pEndpoint;
1475 pEndpointClass->cEndpoints++;
1477 rc = RTCritSectLeave(&pEndpointClass->CritSect);
1488 if (pEndpointClass->fGatherAdvancedStatistics)
1519 PPDMASYNCCOMPLETIONEPCLASS pEndpointClass = pEndpoint->pEpClass;
1520 PVM pVM = pEndpointClass->pVM;
1522 pEndpointClass->pEndpointOps->pfnEpClose(pEndpoint);
1528 int rc = RTCritSectEnter(&pEndpointClass->CritSect);
1537 pEndpointClass->pEndpointsHead = pEndpointNext;
1541 pEndpointClass->cEndpoints--;
1543 rc = RTCritSectLeave(&pEndpointClass->CritSect);
1546 if (pEndpointClass->fGatherAdvancedStatistics)