Searched refs:cbReq (Results 1 - 25 of 70) sorted by relevance

123

/vbox/src/VBox/Additions/common/VBoxGuestLib/
H A DGenericRequest.cpp33 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 Dalloc-r0drv.cpp125 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 Dalloc-r0drv.h49 uint32_t cbReq; member in struct:RTMEMHDR
/vbox/src/VBox/VMM/VMMR0/
H A DPDMR0Driver.cpp46 AssertMsgReturn(pReq->Hdr.cbReq == sizeof(*pReq), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
/vbox/src/VBox/Runtime/r3/
H A Dallocex.h45 uint32_t cbReq; member in struct:RTMEMHDRR3
H A Dallocex.cpp99 pHdr->cbReq = (uint32_t)cb;
116 Assert(pHdr->cbReq == cb);
/vbox/src/VBox/HostDrivers/Support/freebsd/
H A DSUPDrv-freebsd.c339 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 DGMM.cpp44 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 DtstRTR0ThreadPreemptionDriver.cpp135 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 DtstRTR0DbgKrnlInfoDriver.cpp109 Req.Hdr.cbReq = sizeof(Req);
120 Req.Hdr.cbReq = sizeof(Req);
135 Req.Hdr.cbReq = sizeof(Req);
H A DtstRTR0MemUserKernelDriver.cpp110 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 DtstRTR0SemMutexDriver.cpp76 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 DtstRTR0CommonDriver.h138 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 DtstRTR0DbgKrnlInfo.cpp59 size_t cchErr = pReqHdr->cbReq - sizeof(*pReqHdr);
H A DtstRTR0Common.h60 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 DVBoxGuest-darwin.cpp495 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 DSUPDrvIOC.h528 #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 DSUPLib.cpp664 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 DSUPDrv-darwin.cpp653 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 Dalloc-r0drv-haiku.c60 pHdr->cbReq = cb;
/vbox/src/VBox/Runtime/r0drv/nt/
H A Dalloc-r0drv-nt.cpp55 pHdr->cbReq = (uint32_t)cb;
/vbox/src/VBox/Runtime/r0drv/os2/
H A Dalloc-r0drv-os2.cpp59 pHdr->cbReq = cb;
/vbox/src/VBox/HostDrivers/Support/os2/
H A DSUPDrv-os2.cpp317 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 DtstGlobalConfig.cpp64 Req.Hdr.cbReq = sizeof(Req);
/vbox/src/VBox/HostDrivers/VBoxUSB/solaris/
H A DUSBLib-solaris.cpp215 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);

Completed in 2020 milliseconds

123