Lines Matching defs:pUrb

593     PVUSBURB pUrb = pUrbOsX->pVUsbUrb;
594 if (pUrb)
596 Assert(pUrb->u32Magic == VUSBURB_MAGIC);
597 if (pUrb->enmType == VUSBXFERTYPE_ISOC)
601 //if (pUrb->enmDir == VUSBDIRECTION_IN)
602 memcpy(pUrb->abData, pUrbOsX->u.Isoc.pBuf->pvBuf, pUrb->cbData);
605 "%16.*Rhxd\n", pUrb->cbData, pUrb->cbData, pUrb->abData));
607 for (unsigned i = 0; i < pUrb->cIsocPkts; i++)
610 Log2((" %d{%d/%d-%x-%RX64}", i, pUrbOsX->u.Isoc.aFrames[i].frActCount, pUrb->aIsocPkts[i].cb, pUrbOsX->u.Isoc.aFrames[i].frStatus,
613 Log2((" %d{%d/%d-%x}", i, pUrbOsX->u.Isoc.aFrames[i].frActCount, pUrb->aIsocPkts[i].cb, pUrbOsX->u.Isoc.aFrames[i].frStatus));
615 pUrb->aIsocPkts[i].enmStatus = vusbProxyDarwinStatusToVUsbStatus(pUrbOsX->u.Isoc.aFrames[i].frStatus);
616 pUrb->aIsocPkts[i].cb = pUrbOsX->u.Isoc.aFrames[i].frActCount;
621 for (int i = (int)pUrb->cIsocPkts - 1; i >= 0; i--)
626 pUrb->cbData = off; /* 'Size' seems to be pointing at an error code or something... */
627 pUrb->enmStatus = VUSBSTATUS_OK; /* Don't use 'irc'. OHCI expects OK unless it's a really bad error. */
631 pUrb->cbData = cb;
632 pUrb->enmStatus = vusbProxyDarwinStatusToVUsbStatus(irc);
633 if (pUrb->enmType == VUSBXFERTYPE_MSG)
634 pUrb->cbData += sizeof(VUSBSETUP);
654 pUrb->pszDesc, cb, pUrb ? pUrb->EndPt : 0xff, irc, pUrb ? pUrb->enmStatus : 0xff));
1597 static DECLCALLBACK(int) usbProxyDarwinUrbQueue(PUSBPROXYDEV pProxyDev, PVUSBURB pUrb)
1600 LogFlow(("%s: usbProxyDarwinUrbQueue: pProxyDev=%s pUrb=%p EndPt=%d cbData=%d\n",
1601 pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb, pUrb->EndPt, pUrb->cbData));
1609 if (pUrb->EndPt)
1612 const uint8_t EndPt = pUrb->EndPt | (pUrb->enmDir == VUSBDIRECTION_IN ? 0x80 : 0);
1617 pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb->EndPt, pUrb->cbData));
1631 pUrbOsX->pVUsbUrb = pUrb;
1633 pUrbOsX->enmType = pUrb->enmType;
1639 switch (pUrb->enmType)
1643 AssertMsgBreak(pUrb->cbData >= sizeof(VUSBSETUP), ("cbData=%d\n", pUrb->cbData));
1644 PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
1666 Assert(pUrb->enmDir == VUSBDIRECTION_IN || pUrb->enmDir == VUSBDIRECTION_OUT);
1667 if (pUrb->enmDir == VUSBDIRECTION_OUT)
1668 irc = (*pIf->ppIfI)->WritePipeAsync(pIf->ppIfI, u8PipeRef, pUrb->abData, pUrb->cbData,
1671 irc = (*pIf->ppIfI)->ReadPipeAsync(pIf->ppIfI, u8PipeRef, pUrb->abData, pUrb->cbData,
1680 Assert(pUrb->enmDir == VUSBDIRECTION_IN || pUrb->enmDir == VUSBDIRECTION_OUT);
1684 AssertBreak(pUrb->cbData <= 8192);
1687 if (pUrb->enmDir == VUSBDIRECTION_OUT)
1688 memcpy(pUrbOsX->u.Isoc.pBuf->pvBuf, pUrb->abData, pUrb->cbData);
1690 memset(pUrbOsX->u.Isoc.pBuf->pvBuf, 0xfe, pUrb->cbData);
1707 for (i = 0; i < pUrb->cIsocPkts; i++)
1709 pUrbOsX->u.Isoc.aFrames[i].frReqCount = pUrb->aIsocPkts[i].cb;
1729 if (pUrb->enmDir == VUSBDIRECTION_OUT)
1731 pUrbOsX->u.Isoc.pBuf->pvBuf, FrameNo, pUrb->cIsocPkts, 0, pUrbOsX->u.Isoc.aFrames,
1735 pUrbOsX->u.Isoc.pBuf->pvBuf, FrameNo, pUrb->cIsocPkts, 0, pUrbOsX->u.Isoc.aFrames,
1738 if (pUrb->enmDir == VUSBDIRECTION_OUT)
1740 pUrb->abData, FrameNo, pUrb->cIsocPkts, &pUrbOsX->u.Isoc.aFrames[0],
1744 pUrb->abData, FrameNo, pUrb->cIsocPkts, &pUrbOsX->u.Isoc.aFrames[0],
1751 pUrb->pszDesc, pPipe->u64NextFrameNo, FrameNo, pUrb->cIsocPkts, j, u8PipeRef));
1753 pPipe->u64NextFrameNo = FrameNo + pUrb->cIsocPkts;
1767 AssertMsgFailed(("%s: enmType=%#x\n", pUrb->pszDesc, pUrb->enmType));
1776 Log(("%s: usbProxyDarwinUrbQueue: success\n", pUrb->pszDesc));
1786 pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb->EndPt, pUrb->cbData, irc));
1793 pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb->EndPt, pUrb->cbData, irc));
1808 PVUSBURB pUrb = NULL;
1868 && !pUrb)
1890 pUrb = pUrbOsX->pVUsbUrb;
1891 if (pUrb)
1893 pUrb->Dev.pvPrivate = NULL;
1900 if (pUrb)
1901 LogFlowFunc(("LEAVE: %s: pProxyDev=%s returns %p\n", pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb));
1905 return pUrb;
1920 static DECLCALLBACK(int) usbProxyDarwinUrbCancel(PUSBPROXYDEV pProxyDev, PVUSBURB pUrb)
1924 pUrb->pszDesc, pProxyDev->pUsbIns->pszName, pUrb->EndPt));
1930 if (!pUrb->EndPt)
1935 const uint8_t EndPt = pUrb->EndPt | (pUrb->enmDir == VUSBDIRECTION_IN ? 0x80 : 0);
1940 Log(("usbProxyDarwinUrbCancel: pProxyDev=%s pUrb=%p EndPt=%d - cannot find the interface / pipe!\n",
1941 pProxyDev->pUsbIns->pszName, pUrb, pUrb->EndPt));
1947 Log(("usbProxyDarwinUrbCancel: pProxyDev=%s pUrb=%p EndPt=%d -> %#x!\n",
1948 pProxyDev->pUsbIns->pszName, pUrb, pUrb->EndPt, irc));