Lines Matching defs:hReq

49 static void pdmacFileAioMgrNormalReqCompleteRc(PPDMACEPFILEMGR pAioMgr, RTFILEAIOREQ hReq,
509 RTFILEAIOREQ hReq;
513 hReq = pAioMgr->pahReqsFree[pAioMgr->iFreeEntry];
515 Assert(hReq != NIL_RTFILEAIOREQ);
519 int rc = RTFileAioReqCreate(&hReq);
523 return hReq;
531 * @param hReq The I/O request handle to free.
533 static void pdmacFileAioMgrNormalRequestFree(PPDMACEPFILEMGR pAioMgr, RTFILEAIOREQ hReq)
538 pAioMgr->pahReqsFree[pAioMgr->iFreeEntry] = hReq;
571 Assert(pTask->hReq == pahReqs[i]);
796 RTFILEAIOREQ hReq = pdmacFileAioMgrNormalRequestAlloc(pAioMgr);
797 AssertMsg(hReq != NIL_RTFILEAIOREQ, ("Out of request handles\n"));
808 rc = RTFileAioReqPrepareWrite(hReq, pEndpoint->hFile,
813 rc = RTFileAioReqPrepareRead(hReq, pEndpoint->hFile,
824 pTask->hReq = hReq;
825 *phReq = hReq;
882 RTFILEAIOREQ hReq = pdmacFileAioMgrNormalRequestAlloc(pAioMgr);
883 AssertMsg(hReq != NIL_RTFILEAIOREQ, ("Out of request handles\n"));
942 rc = RTFileAioReqPrepareWrite(hReq, pEndpoint->hFile,
946 rc = RTFileAioReqPrepareRead(hReq, pEndpoint->hFile,
953 pTask->hReq = hReq;
954 *phReq = hReq;
1011 RTFILEAIOREQ hReq = pdmacFileAioMgrNormalRequestAlloc(pAioMgr);
1012 AssertMsg(hReq != NIL_RTFILEAIOREQ, ("Out of request handles\n"));
1014 LogFlow(("Flush request %#p\n", hReq));
1016 rc = RTFileAioReqPrepareFlush(hReq, pEndpoint->hFile, pCurr);
1021 pdmacFileAioMgrNormalRequestFree(pAioMgr, hReq);
1026 pCurr->hReq = hReq;
1027 apReqs[cRequests] = hReq;
1049 RTFILEAIOREQ hReq = NIL_RTFILEAIOREQ;
1051 if (pCurr->hReq == NIL_RTFILEAIOREQ)
1054 rc = pdmacFileAioMgrNormalTaskPrepareBuffered(pAioMgr, pEndpoint, pCurr, &hReq);
1056 rc = pdmacFileAioMgrNormalTaskPrepareNonBuffered(pAioMgr, pEndpoint, pCurr, &hReq);
1064 LogFlow(("Task %#p has I/O request %#p already\n", pCurr, pCurr->hReq));
1065 hReq = pCurr->hReq;
1068 LogFlow(("Read/Write request %#p\n", hReq));
1070 if (hReq != NIL_RTFILEAIOREQ)
1072 apReqs[cRequests] = hReq;
1332 static void pdmacFileAioMgrNormalReqComplete(PPDMACEPFILEMGR pAioMgr, RTFILEAIOREQ hReq)
1335 int rcReq = RTFileAioReqGetRC(hReq, &cbTransfered);
1337 pdmacFileAioMgrNormalReqCompleteRc(pAioMgr, hReq, rcReq, cbTransfered);
1340 static void pdmacFileAioMgrNormalReqCompleteRc(PPDMACEPFILEMGR pAioMgr, RTFILEAIOREQ hReq,
1345 PPDMACTASKFILE pTask = (PPDMACTASKFILE)RTFileAioReqGetUser(hReq);
1348 LogFlowFunc(("pAioMgr=%#p hReq=%#p\n", pAioMgr, hReq));
1352 pTask->hReq = NIL_RTFILEAIOREQ;
1367 pdmacFileAioMgrNormalRequestFree(pAioMgr, hReq);
1447 pdmacFileAioMgrNormalRequestFree(pAioMgr, hReq);
1491 rc = RTFileAioReqPrepareRead(hReq, pEndpoint->hFile, offStart,
1498 rc = RTFileAioReqPrepareWrite(hReq, pEndpoint->hFile, offStart,
1503 pTask->hReq = hReq;
1504 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1);
1529 rc = RTFileAioReqPrepareWrite(hReq, pEndpoint->hFile,
1532 pTask->hReq = hReq;
1533 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1);
1549 pdmacFileAioMgrNormalRequestFree(pAioMgr, hReq);