/vbox/src/VBox/Devices/Graphics/ |
H A D | DevVGA-SVGA3d-shared.h | 21 AssertReturn(pState, VERR_NO_MEMORY); 55 AssertReturn(pContext->id == cid, VERR_INTERNAL_ERROR); 88 AssertReturn(pData, VERR_NO_MEMORY); 119 AssertReturn(pData, VERR_NO_MEMORY); 184 AssertReturn(pMipmapLevel, VERR_NO_MEMORY); 186 AssertReturn(pMipmapLevelSize, VERR_NO_MEMORY); 222 AssertReturn(pMipmapLevel->pSurfaceData, VERR_NO_MEMORY); 349 AssertReturn(pState, VERR_NO_MEMORY); 509 AssertReturn(pData, VERR_NO_MEMORY); 688 AssertReturn(pDat 767 AssertReturn(reg < _32K, VERR_INVALID_PARAMETER); function [all...] |
H A D | DevVGA-SVGA3d-win.cpp | 476 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY); 501 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY); 509 AssertReturn(pState->pD3D9, VERR_INTERNAL_ERROR); 518 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR); 521 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR); 594 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY); 615 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY); 734 AssertReturn(pState, VERR_NO_MEMORY); 1391 AssertReturn(pState, VERR_NO_MEMORY); 1396 AssertReturn(si 2929 AssertReturn(cid < SVGA3D_MAX_CONTEXT_IDS, VERR_INVALID_PARAMETER); function 4270 AssertReturn(type < SVGA3D_RT_MAX, VERR_INVALID_PARAMETER); function [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | pipe-posix.cpp | 130 AssertReturn(!(fFlags & ~RTPIPE_C_VALID_MASK), VERR_INVALID_PARAMETER); 221 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, VERR_INVALID_HANDLE); 226 AssertReturn(ASMAtomicCmpXchgU32(&pThis->u32Magic, ~RTPIPE_MAGIC, RTPIPE_MAGIC), VERR_INVALID_HANDLE); 246 AssertReturn(!(fFlags & ~RTPIPE_N_VALID_MASK), VERR_INVALID_PARAMETER); 247 AssertReturn(!!(fFlags & RTPIPE_N_READ) != !!(fFlags & RTPIPE_N_WRITE), VERR_INVALID_PARAMETER); 254 AssertReturn(fstat(hNative, &st) == 0, RTErrConvertFromErrno(errno)); 258 AssertReturn(fFd != -1, VERR_INVALID_HANDLE); 295 AssertReturn(pThis->u32Magic == RTPIPE_MAGIC, -1); 323 AssertReturn(cUsers < RTPIPE_POSIX_USERS_MASK / 2, VERR_INTERNAL_ERROR_4); function 385 AssertReturn(cUser function [all...] |
/vbox/include/iprt/ |
H A D | string.h | 1427 AssertReturn(CodePoint < 0x100, NULL); function
|
H A D | assert.h | 539 /** @def AssertReturn 547 # define AssertReturn(expr, rc) \ macro 557 # define AssertReturn(expr, rc) \
|
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPLib.cpp | 667 AssertReturn(pReqHdr->u32Magic == SUPVMMR0REQHDR_MAGIC, VERR_INVALID_MAGIC); 690 AssertReturn(pReqHdr->u32Magic == SUPVMMR0REQHDR_MAGIC, VERR_INVALID_MAGIC); 753 AssertReturn(cchService < RT_SIZEOFMEMB(SUPCALLSERVICE, u.In.szName), VERR_INVALID_PARAMETER); 782 AssertReturn(pReqHdr->u32Magic == SUPR0SERVICEREQHDR_MAGIC, VERR_INVALID_MAGIC); 913 AssertReturn(cPages > 0, VERR_PAGE_COUNT_OUT_OF_RANGE); 928 AssertReturn(cPages > 0, VERR_PAGE_COUNT_OUT_OF_RANGE); 1096 AssertReturn(!fFlags, VERR_INVALID_PARAMETER); 1226 AssertReturn(!(fProt & ~(RTMEM_PROT_NONE | RTMEM_PROT_READ | RTMEM_PROT_WRITE | RTMEM_PROT_EXEC)), VERR_INVALID_PARAMETER); 1266 AssertReturn(cPages > 0, VERR_PAGE_COUNT_OUT_OF_RANGE); 1364 AssertReturn(cPage 1942 AssertReturn(cchModule < RT_SIZEOFMEMB(SUPTRACERUMODREG, u.In.szName), VERR_FILENAME_TOO_LONG); AssertReturn(!RTPathHavePath(pszModule), VERR_INVALID_PARAMETER); AssertReturn(fFlags == SUP_TRACER_UMOD_FLAGS_EXE || fFlags == SUP_TRACER_UMOD_FLAGS_SHARED, VERR_INVALID_PARAMETER); if (!pVtgHdr->offProbeLocs) argument [all...] |
/vbox/src/VBox/Main/src-all/ |
H A D | ExtPackManagerImpl.cpp | 240 AssertReturn(autoInitSpan.isOk(), E_FAIL); 673 AssertReturn(autoInitSpan.isOk(), E_FAIL); 1479 AssertReturn(enmKind > VBOXEXTPACKMODKIND_INVALID && enmKind < VBOXEXTPACKMODKIND_END, VERR_INVALID_PARAMETER); 1482 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER); 1505 AssertReturn(cbPath > 0, VERR_BUFFER_OVERFLOW); 1508 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER); 1530 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VBOXEXTPACKCTX_INVALID); 1551 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER); 1576 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER); 1601 AssertReturn(pHl 2179 AssertReturn(cArgs < RT_ELEMENTS(apszArgs) - 1, E_UNEXPECTED); function [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | CPUMR3CpuId.cpp | 739 AssertReturn(!ppaLeaves, VERR_INVALID_PARAMETER); 740 AssertReturn(!pcLeaves, VERR_INVALID_PARAMETER); 1053 AssertReturn(pVM, VERR_INVALID_PARAMETER); 1054 AssertReturn(pNewLeaf, VERR_INVALID_PARAMETER); 1917 AssertReturn(rc == VERR_CFGM_VALUE_NOT_FOUND, rc); 1923 AssertReturn(rc == VERR_CFGM_VALUE_NOT_FOUND, rc); 1929 AssertReturn(rc == VERR_CFGM_VALUE_NOT_FOUND, rc); 1935 AssertReturn(rc == VERR_CFGM_VALUE_NOT_FOUND, rc); 2749 AssertReturn(pVM->cCpus <= 64, VERR_TOO_MANY_CPUS); 840 AssertLogRelReturn(cLeaves < CPUM_CPUID_MAX_LEAVES, VERR_TOO_MANY_CPUID_LEAVES); paLeaves = cpumR3CpuIdEnsureSpace(pVM, ppaLeaves, cLeaves); if (!paLeaves) return VERR_NO_MEMORY; if (i < cLeaves) memmove(&paLeaves[i + 1], &paLeaves[i], (cLeaves - i) * sizeof(paLeaves[0])); *pcLeaves += 1; paLeaves[i] = *pNewLeaf; cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves); return VINF_SUCCESS; } static void cpumR3CpuIdRemoveRange(PCPUMCPUIDLEAF paLeaves, uint32_t *pcLeaves, uint32_t uFirst, uint32_t uLast) { uint32_t cLeaves = *pcLeaves; Assert(uFirst <= uLast); uint32_t iFirst = 0; while ( iFirst < cLeaves && paLeaves[iFirst].uLeaf < uFirst) iFirst++; uint32_t iEnd = iFirst; while ( iEnd < cLeaves && paLeaves[iEnd].uLeaf <= uLast) iEnd++; if (iFirst < iEnd) { if (iEnd < cLeaves) memmove(&paLeaves[iFirst], &paLeaves[iEnd], (cLeaves - iEnd) * sizeof(paLeaves[0])); *pcLeaves = cLeaves -= (iEnd - iFirst); } cpumR3CpuIdAssertOrder(paLeaves, *pcLeaves); } static bool cpumR3IsEcxRelevantForCpuIdLeaf(uint32_t uLeaf, uint32_t *pcSubLeaves, bool *pfFinalEcxUnchanged) { *pfFinalEcxUnchanged = false; uint32_t auCur[4]; uint32_t auPrev[4]; ASMCpuIdExSlow(uLeaf, 0, 0, 0, &auPrev[0], &auPrev[1], &auPrev[2], &auPrev[3]); uint32_t uSubLeaf = 1; for (;;) { ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &auCur[0], &auCur[1], &auCur[2], &auCur[3]); if (memcmp(auCur, auPrev, sizeof(auCur))) break; uSubLeaf++; if (uSubLeaf >= 64) { *pcSubLeaves = 1; return false; } } uint32_t cRepeats = 0; uSubLeaf = 0; for (;;) { ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &auCur[0], &auCur[1], &auCur[2], &auCur[3]); if ( auCur[0] == 0 && auCur[1] == 0 && (auCur[2] == 0 || auCur[2] == uSubLeaf) && (auCur[3] == 0 || uLeaf == 0xb ) ) { cRepeats = 0; break; } if ( auCur[0] == auPrev[0] && auCur[1] == auPrev[1] && ( auCur[2] == auPrev[2] || ( auCur[2] == uSubLeaf && auPrev[2] == uSubLeaf - 1) ) && auCur[3] == auPrev[3]) { cRepeats++; if (cRepeats > 4) break; } else cRepeats = 0; if ( uLeaf == 0xb && (auCur[2] & 0xff00) == 0 && (auPrev[2] & 0xff00) == 0) { cRepeats = 0; break; } if (uSubLeaf >= 128) { uint32_t cDocLimit = UINT32_MAX; if (uLeaf == 0x4) cDocLimit = 4; else if (uLeaf == 0x7) cDocLimit = 1; else if (uLeaf == 0xf) cDocLimit = 2; if (cDocLimit != UINT32_MAX) { *pfFinalEcxUnchanged = auCur[2] == uSubLeaf && uLeaf == 0xb; *pcSubLeaves = cDocLimit + 3; return true; } *pcSubLeaves = UINT32_MAX; return true; } uSubLeaf++; memcpy(auPrev, auCur, sizeof(auCur)); } *pfFinalEcxUnchanged = auCur[2] == uSubLeaf && uLeaf == 0xb; *pcSubLeaves = uSubLeaf + 1 - cRepeats; if (*pcSubLeaves == 0) *pcSubLeaves = 1; return true; } VMMR3DECL(int) CPUMR3CpuIdGetLeaf(PVM pVM, PCPUMCPUIDLEAF pLeaf, uint32_t uLeaf, uint32_t uSubLeaf) { PCPUMCPUIDLEAF pcLeaf = cpumR3CpuIdGetLeaf(pVM->cpum.s.GuestInfo.paCpuIdLeavesR3, pVM->cpum.s.GuestInfo.cCpuIdLeaves, uLeaf, uSubLeaf); if (pcLeaf) { memcpy(pLeaf, pcLeaf, sizeof(*pLeaf)); return VINF_SUCCESS; } return VERR_NOT_FOUND; } VMMR3DECL(int) CPUMR3CpuIdInsert(PVM pVM, PCPUMCPUIDLEAF pNewLeaf) { AssertReturn(pVM, VERR_INVALID_PARAMETER); AssertReturn(pNewLeaf, VERR_INVALID_PARAMETER); if ( pNewLeaf->uLeaf == UINT32_C(0x00000000) || pNewLeaf->uLeaf == UINT32_C(0x00000001) || pNewLeaf->uLeaf == UINT32_C(0x80000000) || pNewLeaf->uLeaf == UINT32_C(0x80000001) || pNewLeaf->uLeaf == UINT32_C(0xc0000000) || pNewLeaf->uLeaf == UINT32_C(0xc0000001) ) argument
|