/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | GenericRequest.cpp | 33 DECLVBGL(int) VbglGRVerify (const VMMDevRequestHeader *pReq, size_t cbReq) argument 37 if (!pReq || cbReq < sizeof (VMMDevRequestHeader)) 39 dprintf(("VbglGRVerify: Invalid parameter: pReq = %p, cbReq = %zu\n", pReq, cbReq)); 43 if (pReq->size > cbReq) 45 dprintf(("VbglGRVerify: request size %u > buffer size %zu\n", pReq->size, cbReq)); 52 if (cbReq < cbReqExpected) 54 dprintf(("VbglGRVerify: buffer size %zu < expected size %zu\n", cbReq, cbReqExpected)); 58 if (cbReqExpected == cbReq) 91 if (cbReq > VMMDEV_MAX_VMMDEVREQ_SIZ [all...] |
/vbox/src/VBox/Runtime/r0drv/ |
H A D | alloc-r0drv.cpp | 125 pHdr->cbReq = (uint32_t)cb; Assert(pHdr->cbReq == cb); 144 pHdr->cbReq = (uint32_t)cb; Assert(pHdr->cbReq == cb); 210 pHdrOld->cbReq = (uint32_t)cbNew; Assert(pHdrOld->cbReq == cbNew); 224 pHdrNew->cbReq = (uint32_t)cbNew; Assert(pHdrNew->cbReq == cbNew); 226 AssertReleaseMsg(!memcmp((uint8_t *)(pHdrOld + 1) + pHdrOld->cbReq, &g_abFence[0], RTR0MEM_FENCE_EXTRA), 227 ("pHdr=%p pvOld=%p cbReq [all...] |
H A D | alloc-r0drv.h | 49 uint32_t cbReq; member in struct:RTMEMHDR
|
/vbox/src/VBox/VMM/VMMR0/ |
H A D | PDMR0Driver.cpp | 46 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | allocex.h | 45 uint32_t cbReq; member in struct:RTMEMHDRR3
|
H A D | allocex.cpp | 99 pHdr->cbReq = (uint32_t)cb; 116 Assert(pHdr->cbReq == cb);
|
/vbox/src/VBox/HostDrivers/Support/freebsd/ |
H A D | SUPDrv-freebsd.c | 339 uint32_t cbReq = IOCPARM_LEN(ulCmd); local 348 if (RT_UNLIKELY(cbReq < sizeof(*pHdr))) 350 OSDBGPRINT(("VBoxDrvFreeBSDIOCtlSlow: cbReq=%#x < %#x; ulCmd=%#lx\n", cbReq, (int)sizeof(*pHdr), ulCmd)); 358 if (RT_UNLIKELY( RT_MAX(pHdr->cbIn, pHdr->cbOut) != cbReq 362 OSDBGPRINT(("VBoxDrvFreeBSDIOCtlSlow: max(%#x,%#x) != %#x; ulCmd=%#lx\n", pHdr->cbIn, pHdr->cbOut, cbReq, ulCmd)); 369 else if ((IOC_DIRMASK & ulCmd) == IOC_VOID && !cbReq) 387 cbReq = RT_MAX(Hdr.cbIn, Hdr.cbOut); 390 || cbReq > _1M*16)) 399 pHdr = (PSUPREQHDR)RTMemTmpAlloc(cbReq); [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | GMM.cpp | 44 Req.Hdr.cbReq = sizeof(Req); 61 Req.Hdr.cbReq = sizeof(Req); 86 pReq->Hdr.cbReq = cb; 167 pReq->Hdr.cbReq = cb; 190 pReq->Hdr.cbReq = RT_OFFSETOF(GMMFREEPAGESREQ, aPages[cPages]); 217 pReq->Hdr.cbReq = RT_OFFSETOF(GMMFREEPAGESREQ, aPages[cActualPages]); 258 pReq->Hdr.cbReq = cb; 282 Req.Hdr.cbReq = sizeof(Req); 297 Req.Hdr.cbReq = sizeof(Req); 328 Req.Hdr.cbReq [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTR0ThreadPreemptionDriver.cpp | 135 Req.Hdr.cbReq = sizeof(Req); 146 Req.Hdr.cbReq = sizeof(Req); 161 Req.Hdr.cbReq = sizeof(Req); 180 Req.Hdr.cbReq = sizeof(Req); 212 Req.Hdr.cbReq = sizeof(Req); 241 Req.Hdr.cbReq = sizeof(Req); 261 Req.Hdr.cbReq = sizeof(Req);
|
H A D | tstRTR0DbgKrnlInfoDriver.cpp | 109 Req.Hdr.cbReq = sizeof(Req); 120 Req.Hdr.cbReq = sizeof(Req); 135 Req.Hdr.cbReq = sizeof(Req);
|
H A D | tstRTR0MemUserKernelDriver.cpp | 110 Req.Hdr.cbReq = sizeof(Req); 121 Req.Hdr.cbReq = sizeof(Req); 136 Req.Hdr.cbReq = sizeof(Req); 155 Req.Hdr.cbReq = sizeof(Req); 174 Req.Hdr.cbReq = sizeof(Req); 193 Req.Hdr.cbReq = sizeof(Req);
|
H A D | tstRTR0SemMutexDriver.cpp | 76 Req.Hdr.cbReq = sizeof(Req); 114 pReq->Hdr.cbReq = sizeof(*pReq); 153 pReq->Hdr.cbReq = sizeof(*pReq); 226 Req.Hdr.cbReq = sizeof(Req); 237 Req.Hdr.cbReq = sizeof(Req); 252 Req.Hdr.cbReq = sizeof(Req);
|
H A D | tstRTR0CommonDriver.h | 138 Req.Hdr.cbReq = sizeof(Req); 149 Req.Hdr.cbReq = sizeof(Req); 237 Req.Hdr.cbReq = sizeof(Req); 267 Req.Hdr.cbReq = sizeof(Req);
|
H A D | tstRTR0DbgKrnlInfo.cpp | 59 size_t cchErr = pReqHdr->cbReq - sizeof(*pReqHdr);
|
H A D | tstRTR0Common.h | 60 size_t cchErr = pReqHdr->cbReq - sizeof(pReq->Hdr); \ 82 size_t cbErr = pReqHdr->cbReq - sizeof(pReq->Hdr); \
|
/vbox/src/VBox/Additions/common/VBoxGuest/ |
H A D | VBoxGuest-darwin.cpp | 495 uint32_t cbReq = IOCPARM_LEN(iCmd); local 503 else if ((IOC_DIRMASK & iCmd) == IOC_VOID && !cbReq) 521 cbReq = Hdr.cbData; 522 if (RT_UNLIKELY(cbReq > _1M*16)) 532 pvReqData = RTMemTmpAlloc(cbReq); 534 pvPageBuf = pvReqData = IOMallocAligned(RT_ALIGN_Z(cbReq, PAGE_SIZE), 8); 537 Log(("VbgdDarwinIOCtlSlow: failed to allocate buffer of %d bytes; iCmd=%#lx\n", cbReq, iCmd)); 546 IOFreeAligned(pvPageBuf, RT_ALIGN_Z(cbReq, PAGE_SIZE)); 554 Log(("VbgdDarwinIOCtlSlow: huh? cbReq=%#x iCmd=%#lx\n", cbReq, iCm [all...] |
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPDrvIOC.h | 528 #define SUP_IOCTL_CALL_VMMR0(cbReq) SUP_CTL_CODE_SIZE(7, SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)) 530 #define SUP_IOCTL_CALL_VMMR0_SIZE(cbReq) RT_UOFFSETOF(SUPCALLVMMR0, abReqPkt[cbReq]) 531 #define SUP_IOCTL_CALL_VMMR0_SIZE_IN(cbReq) SUP_IOCTL_CALL_VMMR0_SIZE(cbReq) 532 #define SUP_IOCTL_CALL_VMMR0_SIZE_OUT(cbReq) SUP_IOCTL_CALL_VMMR0_SIZE(cbReq) 562 #define SUP_IOCTL_CALL_VMMR0_BIG_SIZE(cbReq) RT_UOFFSETOF(SUPCALLVMMR0, abReqPkt[cbReq]) [all...] |
H A D | SUPLib.cpp | 664 else if (SUP_IOCTL_CALL_VMMR0_SIZE(pReqHdr->cbReq) < _4K) /* FreeBSD won't copy more than 4K. */ 668 const size_t cbReq = pReqHdr->cbReq; local 670 PSUPCALLVMMR0 pReq = (PSUPCALLVMMR0)alloca(SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)); 673 pReq->Hdr.cbIn = SUP_IOCTL_CALL_VMMR0_SIZE_IN(cbReq); 674 pReq->Hdr.cbOut = SUP_IOCTL_CALL_VMMR0_SIZE_OUT(cbReq); 681 memcpy(&pReq->abReqPkt[0], pReqHdr, cbReq); 682 rc = suplibOsIOCtl(&g_supLibData, SUP_IOCTL_CALL_VMMR0(cbReq), pReq, SUP_IOCTL_CALL_VMMR0_SIZE(cbReq)); 685 memcpy(pReqHdr, &pReq->abReqPkt[0], cbReq); 691 const size_t cbReq = pReqHdr->cbReq; local 783 const size_t cbReq = pReqHdr->cbReq; local [all...] |
/vbox/src/VBox/HostDrivers/Support/darwin/ |
H A D | SUPDrv-darwin.cpp | 653 uint32_t cbReq = IOCPARM_LEN(iCmd); local 657 if (RT_UNLIKELY(cbReq < sizeof(*pHdr))) 659 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: cbReq=%#x < %#x; iCmd=%#lx\n", cbReq, (int)sizeof(*pHdr), iCmd)); 667 if (RT_UNLIKELY( RT_MAX(pHdr->cbIn, pHdr->cbOut) != cbReq 671 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: max(%#x,%#x) != %#x; iCmd=%#lx\n", pHdr->cbIn, pHdr->cbOut, cbReq, iCmd)); 675 else if ((IOC_DIRMASK & iCmd) == IOC_VOID && !cbReq) 693 cbReq = RT_MAX(Hdr.cbIn, Hdr.cbOut); 696 || cbReq > _1M*16)) 705 pHdr = (PSUPREQHDR)RTMemTmpAlloc(cbReq); [all...] |
/vbox/src/VBox/Runtime/r0drv/haiku/ |
H A D | alloc-r0drv-haiku.c | 60 pHdr->cbReq = cb;
|
/vbox/src/VBox/Runtime/r0drv/nt/ |
H A D | alloc-r0drv-nt.cpp | 55 pHdr->cbReq = (uint32_t)cb;
|
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | alloc-r0drv-os2.cpp | 59 pHdr->cbReq = cb;
|
/vbox/src/VBox/HostDrivers/Support/os2/ |
H A D | SUPDrv-os2.cpp | 317 uint32_t cbReq = RT_MAX(pHdr->cbIn, pHdr->cbOut); local 320 && cbReq <= _1M*16)) 325 if (((uintptr_t)pHdr & PAGE_OFFSET_MASK) + cbReq > PAGE_SIZE) 330 rc = KernVMLock(VMDHL_WRITE, pHdr, cbReq, &Lock, (KernPageList_t *)-1, NULL); 331 AssertMsgReturn(!rc, ("KernVMLock(VMDHL_WRITE, %p, %#x, &p, NULL, NULL) -> %d\n", pHdr, cbReq, &Lock, rc), VERR_LOCK_FAILED); 337 rc = supdrvIOCtl(iFunction, &g_DevExt, pSession, pHdr, cbReq);
|
/vbox/src/VBox/VMM/testcase/ |
H A D | tstGlobalConfig.cpp | 64 Req.Hdr.cbReq = sizeof(Req);
|
/vbox/src/VBox/HostDrivers/VBoxUSB/solaris/ |
H A D | USBLib-solaris.cpp | 215 size_t cbReq = sizeof(VBOXUSBREQ_RESET_DEVICE) + strlen(pszDevicePath); local 216 VBOXUSBREQ_RESET_DEVICE *pReq = (VBOXUSBREQ_RESET_DEVICE *)RTMemTmpAllocZ(cbReq); 223 int rc = usblibDoIOCtl(VBOXUSBMON_IOCTL_RESET_DEVICE, pReq, cbReq);
|