/vbox/src/VBox/VMM/VMMR3/ |
H A D | PGM.cpp | 470 * than once will put the GMM off balance. 701 { 1, 1, DBGCVAR_CAT_STRING, 0, "enabled", "on/off." }, 2132 const uintptr_t off = pVM->pgm.s.pbDynPageMapBaseGC - pMapping->GCPtr; local 2133 const unsigned iPT = off >> X86_PD_SHIFT; 2134 const unsigned iPG = (off >> X86_PT_SHIFT) & X86_PT_MASK; 3361 * @returns VBox status code. May suspend or power off the VM on error, but this
|
H A D | SELM.cpp | 552 * the VM it self is at this point powered off or suspended. 1177 unsigned off; local 1178 pVM->selm.s.offLdtHyper = off = (GCPtrLdt & PAGE_OFFSET_MASK); 1179 RTGCPTR GCPtrShadowLDT = (RTGCPTR)((RTGCUINTPTR)pVM->selm.s.pvLdtRC + off); 1180 PX86DESC pShadowLDT = (PX86DESC)((uintptr_t)pVM->selm.s.pvLdtR3 + off); 1207 off = GCPtrLdt & (sizeof(X86DESC) - 1); 1208 AssertMsg(!off, ("LDT is not aligned on entry size! GCPtrLdt=%08x\n", GCPtrLdt)); 1238 pLDTE = (PX86DESC)((uintptr_t)pShadowLDT + off); 1869 unsigned off = (GCPtrLDTEGuest & PAGE_OFFSET_MASK); local 1870 PX86DESC pLDTE = (PX86DESC)((uintptr_t)pVM->selm.s.pvLdtR3 + off); [all...] |
H A D | VMM.cpp | 1903 RTHCUINTPTR off = R0Addr - MMHyperCCToR0(pVM, pVCpu->vmm.s.pbEMTStackR3); local 1905 RTHCUINTPTR off = pVCpu->vmm.s.CallRing3JmpBufR0.cbSavedStack - (pVCpu->vmm.s.CallRing3JmpBufR0.SpCheck - R0Addr); local 1907 if ( off > VMM_STACK_SIZE 1908 || off + cbRead >= VMM_STACK_SIZE) 1911 memcpy(pvBuf, &pVCpu->vmm.s.pbEMTStackR3[off], cbRead);
|
H A D | PDMBlkCache.cpp | 73 uint64_t off, size_t cbData, uint8_t *pbBuffer); 483 DECLINLINE(int) pdmBlkCacheEnqueue(PPDMBLKCACHE pBlkCache, uint64_t off, size_t cbXfer, PPDMBLKCACHEIOXFER pIoXfer) argument 496 off, cbXfer, 504 off, cbXfer, 512 off, cbXfer, 520 off, cbXfer, 932 uint64_t off; local 935 SSMR3GetU64(pSSM, &off); 938 pEntry = pdmBlkCacheEntryAlloc(pBlkCache, off, cbEntry, NULL); 1544 static PPDMBLKCACHEENTRY pdmBlkCacheGetCacheEntryByOffset(PPDMBLKCACHE pBlkCache, uint64_t off) argument 1568 pdmBlkCacheGetCacheBestFitEntryByOffset(PPDMBLKCACHE pBlkCache, uint64_t off, PPDMBLKCACHEENTRY *ppEntryAbove) argument 1608 pdmBlkCacheEntryAlloc(PPDMBLKCACHE pBlkCache, uint64_t off, size_t cbData, uint8_t *pbBuffer) argument 1755 pdmBlkCacheEntryBoundariesCalc(PPDMBLKCACHE pBlkCache, uint64_t off, uint32_t cb, uint32_t *pcbEntry) argument 1813 pdmBlkCacheEntryCreate(PPDMBLKCACHE pBlkCache, uint64_t off, size_t cb, size_t *pcbData) argument 1923 PDMR3BlkCacheRead(PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pcSgBuf, size_t cbRead, void *pvUser) argument 2144 PDMR3BlkCacheWrite(PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pcSgBuf, size_t cbWrite, void *pvUser) argument [all...] |
H A D | PDMDevHlp.cpp | 500 static DECLCALLBACK(int) pdmR3DevHlp_MMHyperMapMMIO2(PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS off, RTGCPHYS cb, argument 506 LogFlow(("pdmR3DevHlp_MMHyperMapMMIO2: caller='%s'/%d: iRegion=%#x off=%RGp cb=%RGp pszDesc=%p:{%s} pRCPtr=%p\n", 507 pDevIns->pReg->szName, pDevIns->iInstance, iRegion, off, cb, pszDesc, pszDesc, pRCPtr)); 516 int rc = MMR3HyperMapMMIO2(pVM, pDevIns, iRegion, off, cb, pszDesc, pRCPtr); 526 static DECLCALLBACK(int) pdmR3DevHlp_MMIO2MapKernel(PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS off, RTGCPHYS cb, argument 532 LogFlow(("pdmR3DevHlp_MMIO2MapKernel: caller='%s'/%d: iRegion=%#x off=%RGp cb=%RGp pszDesc=%p:{%s} pR0Ptr=%p\n", 533 pDevIns->pReg->szName, pDevIns->iInstance, iRegion, off, cb, pszDesc, pszDesc, pR0Ptr)); 542 int rc = PGMR3PhysMMIO2MapKernel(pVM, pDevIns, iRegion, off, cb, pszDesc, pR0Ptr); 1937 static DECLCALLBACK(int) pdmR3DevHlp_DMAReadMemory(PPDMDEVINS pDevIns, unsigned uChannel, void *pvBuffer, uint32_t off, uint32_t cbBlock, uint32_t *pcbRead) 1942 LogFlow(("pdmR3DevHlp_DMAReadMemory: caller='%s'/%d: uChannel=%d pvBuffer=%p off [all...] |
/vbox/src/VBox/VMM/include/ |
H A D | PGMInline.h | 100 RTGCPHYS off; local 102 || (off = GCPhys - pRam->GCPhys) >= pRam->cb) 105 return &pRam->aPages[off >> PAGE_SHIFT]; 125 RTGCPHYS off; local 127 || (off = GCPhys - pRam->GCPhys) >= pRam->cb) 152 RTGCPHYS off; local 155 || RT_UNLIKELY((off = GCPhys - pRam->GCPhys) >= pRam->cb)) 159 || (off = GCPhys - pRam->GCPhys) >= pRam->cb) 165 *ppPage = &pRam->aPages[off >> PAGE_SHIFT]; 184 RTGCPHYS off; local 276 RTGCPHYS off; local 352 RTGCPHYS off; local [all...] |
/vbox/src/VBox/Debugger/ |
H A D | DBGPlugInWinNt.cpp | 197 * (For fending off illegal interface method calls.) */ 294 static DECLCALLBACK(int) dbgDiggerWinNtRdr_Read(void *pvBuf, size_t cb, size_t off, void *pvUser) argument 297 uint32_t offFile = (uint32_t)off; 298 AssertReturn(offFile == off, VERR_INVALID_PARAMETER); 445 /* Check for images chopped off around '.rsrc'. */
|
/vbox/src/VBox/Debugger/testcase/ |
H A D | tstDBGCStubs.cpp | 30 VMMR3DECL(int) DBGFR3AddrFromSelOff(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off) argument 33 if (Sel == 0xbad && off == 0xbad) 37 pAddress->FlatPtr = (uint32_t)(Sel << 4) | off; 40 pAddress->off = pAddress->FlatPtr;
|
/vbox/src/VBox/Devices/Bus/ |
H A D | DevPCI.cpp | 1286 uint8_t off; member in struct:PciField 1293 /* off,cb,fW,fB, pszName */ 1352 uint8_t off = s_aFields[i].off; local 1357 if (f & 1) AssertMsg(!ASMBitTest(bmDevice, off), ("%#x\n", off)); 1358 if (f & 2) AssertMsg(!ASMBitTest(bmBridge, off), ("%#x\n", off)); 1359 if (f & 1) ASMBitSet(bmDevice, off); 1360 if (f & 2) ASMBitSet(bmBridge, off); 1366 AssertMsg(ASMBitTest(bmDevice, off), ("%#x\\n", off)); local 1367 AssertMsg(ASMBitTest(bmBridge, off), ("%#x\\n", off)); local 1379 uint8_t const off = s_aFields[i].off; local [all...] |
/vbox/src/VBox/Devices/EFI/ |
H A D | DevEFI.cpp | 1100 uint64_t off = pThis->offInfo; local 1101 if (off >= 8) 1103 return (uint8_t)(u64 >> (off * 8)); 1115 uint32_t off = pThis->offInfo; local 1116 if (off >= 4) 1118 return (uint8_t)(u32 >> (off * 8)); 1131 uint32_t off = pThis->offInfo; local 1132 if (off >= cbBuf) 1134 return ((uint8_t const *)pvBuf)[off]; 1685 static void cmosWrite(PPDMDEVINS pDevIns, unsigned off, uint32_ argument [all...] |
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPLib.cpp | 844 uint32_t off = 0; local 847 pReq->u.In.offFlags = off; 848 memcpy(&pReq->u.In.szStrings[off], pszFlags, cchFlags + 1); 849 off += cchFlags + 1; 856 pReq->u.In.offGroups = off; 857 memcpy(&pReq->u.In.szStrings[off], pszGroups, cchGroups + 1); 858 off += cchGroups + 1; 865 pReq->u.In.offDestination = off; 866 memcpy(&pReq->u.In.szStrings[off], pszDest, cchDest + 1); 867 off 1179 SUPR3PageMapKernel(void *pvR3, uint32_t off, uint32_t cb, uint32_t fFlags, PRTR0PTR pR0Ptr) argument 1218 SUPR3PageProtect(void *pvR3, RTR0PTR R0Ptr, uint32_t off, uint32_t cb, uint32_t fProt) argument 1882 uint32_t off = 0; local [all...] |
/vbox/src/VBox/HostDrivers/Support/win/ |
H A D | SUPHardenedVerifyProcess-win.cpp | 320 static int supHardNtVpReadImage(PSUPHNTVPIMAGE pImage, uint64_t off, void *pvBuf, size_t cbRead) argument 322 return pImage->pCacheEntry->pNtViRdr->Core.pfnRead(&pImage->pCacheEntry->pNtViRdr->Core, pvBuf, cbRead, off); 437 uint32_t off = 0; local 438 while (off < cbThis && pbFile[off] == pbMemory[off]) 439 off++; 441 pImage->uImageBase + uRva + off, uRva + off, pbFile[off], pbMemor [all...] |
/vbox/src/VBox/HostDrivers/VBoxNetFlt/linux/ |
H A D | VBoxNetFlt-linux.c | 578 uint32_t off = RT_OFFSETOF(RTNETETHERHDR, EtherType); local 582 if (off <= pSG->aSegs[i].cb) 584 if (off + sizeof(uint16_t) <= pSG->aSegs[i].cb) 585 u16Type = RT_BE2H_U16(*(uint16_t *)((uintptr_t)pSG->aSegs[i].pv + off)); 587 u16Type = RT_BE2H_U16( ((uint16_t)( ((uint8_t *)pSG->aSegs[i].pv)[off] ) << 8) 592 off -= pSG->aSegs[i].cb; 1185 Log5(("vboxNetFltLinuxCanForwardAsGso: Bad transport length; off=%#x + cb=%#x => %#x; skb_len=%#x (%s)\n", 1209 Log5(("vboxNetFltLinuxCanForwardAsGso: No space for TCP header; off=%#x cb=%#x skb_len=%#x\n", offTransport, cbTransportHdr, pSkb->len)); 1222 Log5(("vboxNetFltLinuxCanForwardAsGso: No space for UDP header; off=%#x skb_len=%#x\n", offTransport, pSkb->len));
|
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvHostBase.cpp | 135 static DECLCALLBACK(int) drvHostBaseRead(PPDMIBLOCK pInterface, uint64_t off, void *pvBuf, size_t cbRead) argument 138 LogFlow(("%s-%d: drvHostBaseRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", 139 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, off, pvBuf, cbRead, pThis->pszDevice)); 163 const uint32_t LBA = off / pThis->cbBlock; 164 AssertReturn(!(off % pThis->cbBlock), VERR_INVALID_PARAMETER); 179 off += cbRead32; 188 rc = RTFileReadAt(pThis->hFileDevice, off, pvBuf, cbRead, NULL); 191 Log2(("%s-%d: drvHostBaseRead: off=%#llx cbRead=%#x\n" 193 pThis->pDrvIns->pReg->szName, pThis->pDrvIns->iInstance, off, cbRead, cbRead, pvBuf)); 198 off, pvBu 211 drvHostBaseWrite(PPDMIBLOCK pInterface, uint64_t off, const void *pvBuf, size_t cbWrite) argument [all...] |
/vbox/src/VBox/Devices/USB/darwin/ |
H A D | USBProxyDevice-darwin.cpp | 606 uint32_t off = 0; local 617 off += pUrbOsX->u.Isoc.aFrames[i].frActCount; 626 pUrb->cbData = off; /* 'Size' seems to be pointing at an error code or something... */
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/ |
H A D | VBoxDTraceR0.cpp | 388 size_t off = 0; local 389 while (off < cbMax) 391 rc = RTR0MemUserCopyFrom(&pszDst[off], uUserAddr + off, 1); 396 pszDst[off] = '\0'; 399 if (!pszDst[off]) 401 off++;
|
/vbox/src/VBox/Storage/ |
H A D | QCOW.cpp | 763 * @param off The logical offset to convert. 768 DECLINLINE(void) qcowConvertLogicalOffset(PQCOWIMAGE pImage, uint64_t off, uint32_t *pidxL1, argument 775 *poffCluster = off & pImage->fOffsetMask; 776 *pidxL1 = off >> pImage->cL1Shift; 777 *pidxL2 = (off & pImage->fL2Mask) >> pImage->cL2Shift; 853 uint64_t off = pL2Entry->paL2Tbl[idxL2]; local 858 if (RT_UNLIKELY(off & QCOW_V2_COMPRESSED_FLAG)) 861 off &= ~(QCOW_V2_COMPRESSED_FLAG | QCOW_V2_COPIED_FLAG); 865 if (RT_UNLIKELY(off & QCOW_V1_COMPRESSED_FLAG)) 868 off [all...] |
H A D | QED.cpp | 711 * @param off The logical offset to convert. 716 DECLINLINE(void) qedConvertLogicalOffset(PQEDIMAGE pImage, uint64_t off, uint32_t *pidxL1, argument 723 *poffCluster = off & pImage->fOffsetMask; 724 *pidxL1 = (off & pImage->fL1Mask) >> pImage->cL1Shift; 725 *pidxL2 = (off & pImage->fL2Mask) >> pImage->cL2Shift;
|
/vbox/src/VBox/Additions/solaris/SharedFolders/ |
H A D | vboxfs_vnode.c | 677 * mask off the permissions based on uid/gid 768 offset_t off = offset; local 772 while (off < uiop->uio_loffset) { 777 off += step; 780 if (off >= uiop->uio_loffset) { 955 offset_t off, 1514 offset_t off, 1535 io_off = off; 1540 ppages = pvn_read_kluster(dvp, off, segp, addr, &io_off, &io_len, off, pagelistsiz 950 sffs_space( vnode_t *vp, int cmd, struct flock64 *bfp, int flags, offset_t off, cred_t *cred, caller_context_t *ct) argument 1512 sffs_readpages( vnode_t *dvp, offset_t off, page_t *pagelist[], size_t pagelistsize, struct seg *segp, caddr_t addr, enum seg_rw segaccess) argument 1590 sffs_getpage( vnode_t *dvp, offset_t off, size_t len, uint_t *protp, page_t *pagelist[], size_t pagelistsize, struct seg *segp, caddr_t addr, enum seg_rw segaccess, cred_t *credp , caller_context_t *ct ) argument 1701 sffs_putpage( vnode_t *dvp, offset_t off, size_t len, int flags, cred_t *credp , caller_context_t *ct ) argument 1740 sffs_map( vnode_t *dvp, offset_t off, struct as *asp, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *credp , caller_context_t *ct ) argument 1824 sffs_addmap( vnode_t *dvp, offset_t off, struct as *asp, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *credp , caller_context_t *ct ) argument 1847 sffs_delmap( vnode_t *dvp, offset_t off, struct as *asp, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *credp , caller_context_t *ct ) argument [all...] |
/vbox/include/VBox/vmm/ |
H A D | ssm.h | 224 uint32_t off; member in struct:SSMFIELD 233 #define SSMFIELD_ENTRY_INT(Name, off, cb, enmTransformer) \ 234 { (PFNSSMFIELDGETPUT)(uintptr_t)(enmTransformer), (off), (cb), Name } 257 #define SSMFIELD_ENTRY_CUSTOM(Field, off, cb) SSMFIELD_ENTRY_INT("custom::" #Field, off, cb, SSMFIELDTRANS_NO_TRANSFORMATION)
|
/vbox/src/VBox/Runtime/common/vfs/ |
H A D | vfsbase.cpp | 1647 RTDECL(int) RTVfsIsRangeInUse(RTVFS hVfs, uint64_t off, size_t cb, argument 1655 int rc = pThis->pOps->pfnIsRangeInUse(pThis->Base.pvThis, off, cb, pfUsed); 2063 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbRead); 2069 RTDECL(int) RTVfsIoStrmReadAt(RTVFSIOSTREAM hVfsIos, RTFOFF off, void *pvBuf, size_t cbToRead, argument 2086 int rc = pThis->pOps->pfnRead(pThis->Base.pvThis, off, &SgBuf, fBlocking, pcbRead); 2108 int rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, -1 /*off*/, &SgBuf, fBlocking, pcbWritten); 2114 RTDECL(int) RTVfsIoStrmWriteAt(RTVFSIOSTREAM hVfsIos, RTFOFF off, const void *pvBuf, size_t cbToWrite, argument 2131 int rc = pThis->pOps->pfnWrite(pThis->Base.pvThis, off, &SgBuf, fBlocking, pcbWritten); 2152 rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, pSgBuf, fBlocking, pcbRead); 2164 rc = pThis->pOps->pfnRead(pThis->Base.pvThis, -1 /*off*/, 2259 RTFOFF off; local 2549 RTVfsFileWriteAt(RTVFSFILE hVfsFile, RTFOFF off, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten) argument 2566 RTVfsFileReadAt(RTVFSFILE hVfsFile, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead) argument [all...] |
/vbox/src/VBox/Runtime/common/zip/ |
H A D | pkzipvfs.cpp | 699 uint64_t off = cbFile - cbBuf; local 700 while (off >= offMin) 702 rc = RTVfsIoStrmReadAt(pThis->hVfsIos, off, pu8Buf, cbBuf, true /*fBlocking*/, NULL); 708 off += offMagic; 710 rc = RTVfsIoStrmReadAt(pThis->hVfsIos, off, &eocd, sizeof(eocd) - 1, 718 if (off + RT_OFFSETOF(RTZIPPKZIPENDOFCENTRDIRREC, u8Comment) + eocd.cbComment == cbFile) 739 off -= cbBuf - 4; 748 && off > (unsigned)sizeof(RTZIPPKZIP64ENDOFCENTRDIRLOC)) 750 off -= sizeof(RTZIPPKZIP64ENDOFCENTRDIRLOC); 753 rc = RTVfsIoStrmReadAt(pThis->hVfsIos, off, 898 rtZipPkzipFssIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 985 rtZipPkzipFssIos_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcWritten) argument [all...] |
H A D | xarvfs.cpp | 845 static DECLCALLBACK(int) rtZipXarFssIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 848 AssertReturn(off >= -1, VERR_INVALID_PARAMETER); 854 if (off == -1) 855 off = pThis->offCurPos; 856 if (off < 0 || off > pThis->DataAttr.cbDataArchived) 860 if (off >= pThis->DataAttr.cbDataArchived) 868 uint64_t cbLeft = pThis->DataAttr.cbDataArchived - off; 882 int rc = RTVfsIoStrmReadAt(pThis->hVfsIos, off + pThis->DataAttr.offData, pSgBuf->paSegs[0].pvSeg, 954 static DECLCALLBACK(int) rtZipXarFssIos_Write(void *pvThis, RTFOFF off, PCRTSGBU argument 1199 rtZipXarFssDecompIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) argument 1268 rtZipXarFssDecompIos_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten) argument [all...] |
/vbox/src/VBox/Runtime/r3/ |
H A D | xml.cpp | 360 size_t off = (size_t)aPos; local 361 if ((uint64_t) off != aPos) 364 if (off > m->len) 367 m->pos = off;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/ |
H A D | unix.c | 2714 off_t off; local 2715 LL_L2I(off, offset); 2716 LL_I2L(rv, lseek(osfd, off, whence)); 3557 PRInt32 off; local 3560 LL_L2I(off, offset); 3562 fmap->fd->secret->md.osfd, off)) == (void *) -1) {
|