Searched refs:paSegs (Results 1 - 25 of 29) sorted by relevance

12

/vbox/src/VBox/Debugger/
H A DDBGPlugInCommonELF.cpp56 * @param paSegs Array of segment indexes and load addresses.
59 static int dbgDiggerCommonLinkElfSegs(RTDBGAS hAs, RTDBGMOD hMod, PDBGDIGGERELFSEG paSegs, uint32_t cSegs) argument
62 if (paSegs[i].iSeg != NIL_RTDBGSEGIDX)
64 int rc = RTDbgAsModuleLinkSeg(hAs, hMod, paSegs[i].iSeg, paSegs[i].uLoadAddr, RTDBGASLINK_FLAGS_REPLACE);
H A DDBGPlugInCommonELFTmpl.cpp.h192 PDBGDIGGERELFSEG paSegs = (PDBGDIGGERELFSEG)alloca(sizeof(paSegs[0]) * cSegs); local
195 paSegs[i].uLoadAddr = RTGCPTR_MAX;
196 paSegs[i].uLastAddr = 0;
197 paSegs[i].iSeg = NIL_RTDBGSEGIDX;
229 if (Address < paSegs[iSh].uLoadAddr)
230 paSegs[iSh].uLoadAddr = Address;
231 if (AddressLast > paSegs[iSh].uLastAddr)
232 paSegs[iSh].uLastAddr = AddressLast;
239 if (paSegs[
[all...]
/vbox/src/VBox/NetworkServices/NetLib/
H A DVBoxNetIntIf.cpp57 * @param paSegs The segments.
59 static void vboxnetIntIfCopySG(void *pvFrame, size_t cSegs, PCINTNETSEG paSegs) argument
64 memcpy(pbDst, paSegs[iSeg].pv, paSegs[iSeg].cb);
65 pbDst += paSegs[iSeg].cb;
77 * @param paSegs The segments.
79 int VBoxNetIntIfRingWriteFrame(PINTNETBUF pBuf, PINTNETRINGBUF pRingBuf, size_t cSegs, PCINTNETSEG paSegs) argument
86 AssertPtr(paSegs);
94 cbFrame += paSegs[iSeg].cb;
105 vboxnetIntIfCopySG(pvFrame, cSegs, paSegs);
125 VBoxNetIntIfSend(PSUPDRVSESSION pSession, INTNETIFHANDLE hIf, PINTNETBUF pBuf, size_t cSegs, PCINTNETSEG paSegs, bool fFlush) argument
[all...]
H A DVBoxNetLib.h62 int VBoxNetIntIfRingWriteFrame(PINTNETBUF pBuf, PINTNETRINGBUF pRingBuf, size_t cSegs, PCINTNETSEG paSegs);
63 int VBoxNetIntIfSend(PSUPDRVSESSION pSession, INTNETIFHANDLE hIf, PINTNETBUF pBuf, size_t cSegs, PCINTNETSEG paSegs, bool fFlush);
/vbox/src/VBox/Runtime/common/dbg/
H A Ddbgmodcontainer.cpp132 PRTDBGMODCTNSEGMENT paSegs; member in struct:RTDBGMODCTN
186 AssertMsgReturn(off < pThis->paSegs[iSeg].cb,
187 ("off=%RTptr cbSeg=%RTptr\n", off, pThis->paSegs[iSeg].cb),
193 PAVLUINTPTRNODECORE pAvlCore = RTAvlUIntPtrGetBestFit(&pThis->paSegs[iSeg].LineAddrTree, off, false /*fAbove*/);
257 AssertMsgReturn(off < pThis->paSegs[iSeg].cb, ("off=%RTptr cbSeg=%RTptr\n", off, pThis->paSegs[iSeg].cb),
278 if (RTAvlUIntPtrInsert(&pThis->paSegs[iSeg].LineAddrTree, &pLine->AddrCore))
289 RTAvlUIntPtrRemove(&pThis->paSegs[iSeg].LineAddrTree, pLine->AddrCore.Key);
321 || off <= pThis->paSegs[iSeg].cb,
322 ("off=%RTptr cbSeg=%RTptr\n", off, pThis->paSegs[iSe
[all...]
H A Ddbgmoddwarf.cpp480 /** The number of segments in paSegs.
484 PRTDBGDWARFSEG paSegs; member in struct:RTDBGMODDWARF
1284 PRTDBGDWARFSEG paSegs = pThis->paSegs; local
1286 && paSegs[iSeg].uSegment == uSeg)
1287 return &paSegs[iSeg];
1290 if (uSeg == paSegs[iSeg].uSegment)
1293 return &paSegs[iSeg];
1314 PRTDBGDWARFSEG paSegs = pThis->paSegs; local
1362 PRTDBGDWARFSEG paSegs = pThis->paSegs; local
[all...]
H A Ddbgmod.cpp1331 uint32_t cSegs, PCRTDBGSEGMENT paSegs, PCRTUUID pUuid, RTDBGCFG hDbgCfg)
1366 RTLDRARCH enmArch, uint32_t cbImage, uint32_t cSegs, PCRTDBGSEGMENT paSegs,
1382 AssertPtrReturn(paSegs, VERR_INVALID_POINTER);
1427 rc = rtDbgModFromMachOImageWorker(pDbgMod, enmArch, cbImage, cSegs, paSegs, pUuid, hDbgCfg);
1443 memcpy(&pDeferred->u.MachO.aSegs, paSegs, cSegs * sizeof(paSegs[0]));
1330 rtDbgModFromMachOImageWorker(PRTDBGMODINT pDbgMod, RTLDRARCH enmArch, uint32_t cbImage, uint32_t cSegs, PCRTDBGSEGMENT paSegs, PCRTUUID pUuid, RTDBGCFG hDbgCfg) argument
1365 RTDbgModCreateFromMachOImage(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTLDRARCH enmArch, uint32_t cbImage, uint32_t cSegs, PCRTDBGSEGMENT paSegs, PCRTUUID pUuid, RTDBGCFG hDbgCfg, uint32_t fFlags) argument
/vbox/src/VBox/Runtime/common/misc/
H A Dsg.cpp52 && (uintptr_t)pSgBuf->pvSegCur >= (uintptr_t)pSgBuf->paSegs[pSgBuf->idxSeg].pvSeg
53 && (uintptr_t)pSgBuf->pvSegCur + pSgBuf->cbSegLeft <= (uintptr_t)pSgBuf->paSegs[pSgBuf->idxSeg].pvSeg + pSgBuf->paSegs[pSgBuf->idxSeg].cbSeg,
54 ("pSgBuf->idxSeg=%d pSgBuf->cSegs=%d pSgBuf->pvSegCur=%p pSgBuf->cbSegLeft=%zd pSgBuf->paSegs[%d].pvSeg=%p pSgBuf->paSegs[%d].cbSeg=%zd\n",
56 pSgBuf->idxSeg, pSgBuf->paSegs[pSgBuf->idxSeg].pvSeg, pSgBuf->idxSeg, pSgBuf->paSegs[pSgBuf->idxSeg].cbSeg));
70 pSgBuf->pvSegCur = pSgBuf->paSegs[pSgBuf->idxSeg].pvSeg;
71 pSgBuf->cbSegLeft = pSgBuf->paSegs[pSgBuf->idxSeg].cbSeg;
83 RTDECL(void) RTSgBufInit(PRTSGBUF pSgBuf, PCRTSGSEG paSegs, size_ argument
[all...]
/vbox/include/iprt/
H A Dsg.h58 PCRTSGSEG paSegs; member in struct:RTSGBUF
80 * @param paSegs Pointer to the start of the segment array.
83 RTDECL(void) RTSgBufInit(PRTSGBUF pSgBuf, PCRTSGSEG paSegs, size_t cSegs);
278 (paMapped)[i].pvBufField = (TypeBufPtr)(pSgBuf)->paSegs[(pSgBuf)->idxSeg + i].pvSeg; \
279 (paMapped)[i].cbBufField = (TypeBufSize)(pSgBuf)->paSegs[(pSgBuf)->idxSeg + i].cbSeg; \
/vbox/src/VBox/Runtime/common/vfs/
H A Dvfsstdfile.cpp141 rc = RTFileRead( pThis->hFile, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, pcbRead);
143 rc = RTFileReadAt(pThis->hFile, off, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, pcbRead);
145 rc = rtVfsStdFile_ReadFixRC(pThis, off, pSgBuf->paSegs[0].cbSeg, *pcbRead);
156 void *pvSeg = pSgBuf->paSegs[iSeg].pvSeg;
157 cbSeg = pSgBuf->paSegs[iSeg].cbSeg;
197 rc = RTFileWrite(pThis->hFile, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, pcbWritten);
199 rc = RTFileWriteAt(pThis->hFile, off, pSgBuf->paSegs[
[all...]
H A Dvfsmemory.cpp274 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > (uint64_t)pThis->Base.ObjInfo.cbObject)
282 cbLeftToRead = pSgBuf->paSegs[0].cbSeg;
292 uint8_t *pbDst = (uint8_t *)pSgBuf->paSegs[0].pvSeg;
456 size_t cbLeftToWrite = pSgBuf->paSegs[0].cbSeg;
464 uint8_t const *pbSrc = (uint8_t const *)pSgBuf->paSegs[0].pvSeg;
539 *pcbWritten = pSgBuf->paSegs[0].cbSeg - cbLeftToWrite;
/vbox/src/VBox/Storage/
H A DVDIfVfs.cpp98 rc = vdIfIoFileReadSync(pThis->pVDIfsIo, pThis->pStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbRead);
101 rc = vdIfIoIntFileReadSync(pThis->pVDIfsIoInt, (PVDIOSTORAGE)pThis->pStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg);
103 *pcbRead = RT_SUCCESS(rc) ? pSgBuf->paSegs[0].cbSeg : 0;
107 size_t cbAdvance = pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg;
132 rc = vdIfIoFileWriteSync(pThis->pVDIfsIo, pThis->pStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbWritten);
135 rc = vdIfIoIntFileWriteSync(pThis->pVDIfsIoInt, pThis->pStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg);
137 *pcbWritten = RT_SUCCESS(rc) ? pSgBuf->paSegs[0].cbSeg : 0;
140 pThis->offCurPos = off + (pcbWritten ? *pcbWritten : pSgBuf->paSegs[0].cbSeg);
H A DVDVfs.cpp248 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
256 cbLeftToRead = pSgBuf->paSegs[0].cbSeg;
266 rc = vdReadHelper(pThis->pDisk, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToRead);
303 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
311 cbLeftToWrite = pSgBuf->paSegs[0].cbSeg;
321 rc = vdWriteHelper(pThis->pDisk, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToWrite);
/vbox/src/VBox/Runtime/common/dvm/
H A Ddvmvfs.cpp113 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > RTDvmVolumeGetSize(pThis->hVol))
121 cbLeftToRead = pSgBuf->paSegs[0].cbSeg;
131 rc = RTDvmVolumeRead(pThis->hVol, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToRead);
168 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > RTDvmVolumeGetSize(pThis->hVol))
176 cbLeftToWrite = pSgBuf->paSegs[0].cbSeg;
186 rc = RTDvmVolumeWrite(pThis->hVol, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToWrite);
/vbox/src/VBox/Runtime/common/zip/
H A Dpkzip.cpp100 size_t cbToRead = pSgBuf->paSegs[0].cbSeg;
108 memcpy(pSgBuf->paSegs[0].pvSeg, pThis->pu8Buf + off, cbToRead);
H A Dgzipvfs.cpp383 return rtZipGzip_ReadOneSeg(pThis, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg, fBlocking, pcbRead);
452 if (cbWrittenOut == pThis->SgBuf.paSegs[0].cbSeg)
459 Assert(cbWrittenOut <= pThis->SgBuf.paSegs[0].cbSeg);
460 size_t cbLeft = pThis->SgBuf.paSegs[0].cbSeg - cbWrittenOut;
523 uint8_t const *pbSrc = (uint8_t const *)pSgBuf->paSegs[0].pvSeg;
524 size_t cbLeft = pSgBuf->paSegs[0].cbSeg;
H A Dxarvfs.cpp867 size_t cbToRead = pSgBuf->paSegs[0].cbSeg;
882 int rc = RTVfsIoStrmReadAt(pThis->hVfsIos, off + pThis->DataAttr.offData, pSgBuf->paSegs[0].pvSeg,
891 rtZipXarHashUpdate(&pThis->CtxArchived, pThis->DataAttr.uHashFunArchived, pSgBuf->paSegs[0].pvSeg, cbActuallyRead);
892 rtZipXarHashUpdate(&pThis->CtxExtracted, pThis->DataAttr.uHashFunExtracted, pSgBuf->paSegs[0].pvSeg, cbActuallyRead);
899 void const *pvHash = (uint8_t const *)pSgBuf->paSegs[0].pvSeg + offHash;
1216 int rc = RTVfsIoStrmReadAt(pThis->hVfsIosDecompressor, off, pSgBuf->paSegs[0].pvSeg, pSgBuf->paSegs[0].cbSeg,
1224 size_t cbActuallyRead = pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg;
1226 rtZipXarHashUpdate(&pThis->CtxExtracted, pThis->uHashFunExtracted, pSgBuf->paSegs[0].pvSeg, cbActuallyRead);
H A Dpkzipvfs.cpp910 size_t cbToRead = pSgBuf->paSegs[0].cbSeg;
974 int rc = RTZipDecompress(pThis->pZip, pSgBuf->paSegs[0].pvSeg, cbToRead, pcbRead);
H A Dtarvfs.cpp1037 size_t cbToRead = pSgBuf->paSegs[0].cbSeg;
1051 int rc = RTVfsIoStrmReadAt(pThis->hVfsIos, pThis->offStart + off, pSgBuf->paSegs[0].pvSeg, cbToRead, fBlocking, pcbRead);
/vbox/src/VBox/VMM/testcase/
H A DtstPDMAsyncCompletionStress.cpp138 PPDMACTESTFILESEG paSegs; member in struct:PDMACTESTFILE
170 PPDMACTESTFILESEG pSeg = &pTestFile->paSegs[iSeg];
210 PPDMACTESTFILESEG pSeg = &pTestFile->paSegs[iSeg];
434 pTestFile->paSegs = (PPDMACTESTFILESEG)RTMemAllocZ(pTestFile->cSegments * sizeof(PDMACTESTFILESEG));
435 if (pTestFile->paSegs)
440 PPDMACTESTFILESEG pSeg = &pTestFile->paSegs[i];
509 RTMemFree(pTestFile->paSegs);
542 RTMemFree(pTestFile->paSegs);
/vbox/src/VBox/Devices/Samples/
H A DDrvStorageFilter.cpp92 PCRTSGSEG paSegs, unsigned cSegs, size_t cbRead, void *pvUser)
95 int rc = pThis->pIMediaAsyncBelow->pfnStartRead(pThis->pIMediaAsyncBelow, off, paSegs, cSegs, cbRead, pvUser);
101 PCRTSGSEG paSegs, unsigned cSegs, size_t cbWrite, void *pvUser)
104 int rc = pThis->pIMediaAsyncBelow->pfnStartWrite(pThis->pIMediaAsyncBelow, off, paSegs, cSegs, cbWrite, pvUser);
91 drvStorageFltIMediaAsync_StartRead(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbRead, void *pvUser) argument
100 drvStorageFltIMediaAsync_StartWrite(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbWrite, void *pvUser) argument
/vbox/src/VBox/Runtime/r3/
H A Dsocket.cpp1101 paMsg[i].buf = (char *)pSgBuf->paSegs[i].pvSeg;
1102 paMsg[i].len = (u_long)pSgBuf->paSegs[i].cbSeg;
1127 paMsg[i].iov_base = pSgBuf->paSegs[i].pvSeg;
1128 paMsg[i].iov_len = pSgBuf->paSegs[i].cbSeg;
1168 PRTSGSEG paSegs = (PRTSGSEG)alloca(cSegs * sizeof(RTSGSEG)); local
1169 AssertReturn(paSegs, VERR_NO_TMP_MEMORY);
1172 paSegs[i].pvSeg = va_arg(va, void *);
1173 paSegs[i].cbSeg = va_arg(va, size_t);
1177 RTSgBufInit(&SgBuf, paSegs, cSegs);
1371 PRTSGSEG paSegs local
[all...]
/vbox/src/VBox/Runtime/common/checksum/
H A Dmanifest3.cpp301 size_t cbSeg = pSgBuf->paSegs[iSeg].cbSeg;
304 rtManifestHashesUpdate(pThis->pHashes, pSgBuf->paSegs[iSeg].pvSeg, cbSeg);
/vbox/src/VBox/Devices/Storage/VSCSI/
H A DVSCSIIoReq.cpp73 pVScsiIoReq->u.Io.paSeg = pVScsiReq->SgBuf.paSegs;
/vbox/include/VBox/vmm/
H A Dpdmifs.h1847 * @param paSegs Pointer to the S/G segment array.
1853 DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbRead, void *pvUser));
1861 * @param paSegs Pointer to the S/G segment array.
1867 DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbWrite, void *pvUser));
1933 * @param paSegs Pointer to the S/G segment array.
1939 DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbRead, void *pvUser));
1947 * @param paSegs Pointer to the S/G segment array.
1953 DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG paSegs, unsigned cSegs, size_t cbWrite, void *pvUser));

Completed in 140 milliseconds

12