Lines Matching refs:cbReq
339 uint32_t cbReq = IOCPARM_LEN(ulCmd);
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);
402 OSDBGPRINT(("VBoxDrvFreeBSDIOCtlSlow: failed to allocate buffer of %d bytes; ulCmd=%#lx\n", cbReq, ulCmd));
413 if (Hdr.cbIn < cbReq)
414 RT_BZERO((uint8_t *)pHdr + Hdr.cbIn, cbReq - Hdr.cbIn);
418 Log(("VBoxDrvFreeBSDIOCtlSlow: huh? cbReq=%#x ulCmd=%#lx\n", cbReq, ulCmd));
425 int rc = supdrvIOCtl(ulCmd, &g_VBoxDrvFreeBSDDevExt, pSession, pHdr, cbReq);
434 if (cbOut > cbReq)
436 OSDBGPRINT(("VBoxDrvFreeBSDIOCtlSlow: too much output! %#x > %#x; uCmd=%#lx!\n", cbOut, cbReq, ulCmd));
437 cbOut = cbReq;