/vbox/src/VBox/Debugger/ |
H A D | DBGPlugInCommonELF.cpp | 56 * @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 D | DBGPlugInCommonELFTmpl.cpp.h | 192 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 D | VBoxNetIntIf.cpp | 57 * @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 D | VBoxNetLib.h | 62 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 D | dbgmodcontainer.cpp | 132 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 D | dbgmoddwarf.cpp | 480 /** 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 D | dbgmod.cpp | 1331 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 D | sg.cpp | 52 && (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 D | sg.h | 58 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 D | vfsstdfile.cpp | 141 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 D | vfsmemory.cpp | 274 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 D | VDIfVfs.cpp | 98 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 D | VDVfs.cpp | 248 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 D | dvmvfs.cpp | 113 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 D | pkzip.cpp | 100 size_t cbToRead = pSgBuf->paSegs[0].cbSeg; 108 memcpy(pSgBuf->paSegs[0].pvSeg, pThis->pu8Buf + off, cbToRead);
|
H A D | gzipvfs.cpp | 383 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 D | xarvfs.cpp | 867 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 D | pkzipvfs.cpp | 910 size_t cbToRead = pSgBuf->paSegs[0].cbSeg; 974 int rc = RTZipDecompress(pThis->pZip, pSgBuf->paSegs[0].pvSeg, cbToRead, pcbRead);
|
H A D | tarvfs.cpp | 1037 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 D | tstPDMAsyncCompletionStress.cpp | 138 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 D | DrvStorageFilter.cpp | 92 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 D | socket.cpp | 1101 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 D | manifest3.cpp | 301 size_t cbSeg = pSgBuf->paSegs[iSeg].cbSeg; 304 rtManifestHashesUpdate(pThis->pHashes, pSgBuf->paSegs[iSeg].pvSeg, cbSeg);
|
/vbox/src/VBox/Devices/Storage/VSCSI/ |
H A D | VSCSIIoReq.cpp | 73 pVScsiIoReq->u.Io.paSeg = pVScsiReq->SgBuf.paSegs;
|
/vbox/include/VBox/vmm/ |
H A D | pdmifs.h | 1847 * @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));
|