Lines Matching defs:pUrb
57 PVUSBURB pUrb;
298 Log3(("%s: usbProxyOs2AsyncThread: pPickup\n", pUrbOs2->pUrb->pszDesc));
305 PVUSBURB pUrb = pUrbOs2->pUrb;
306 uint8_t *pbData = &pUrb->abData[0];
307 ULONG cbData = pUrb->cbData;
327 switch (pUrb->enmType)
332 Log2(("%s: usbProxyOs2AsyncThread: CtlrMsg\n", pUrb->pszDesc));
348 if (pUrb->enmDir == VUSBDIRECTION_IN)
350 Log2(("%s: usbProxyOs2AsyncThread: BulkRead %d\n", pUrb->pszDesc, cbData));
351 rc = g_pfnUsbBulkRead2(pDevOs2->hDevice, pUrb->EndPt | 0x80, 0, !pUrb->fShortNotOk, &cbData, pbData, 500);//5*6000);
355 Log2(("%s: usbProxyOs2AsyncThread: BulkWrite %d\n", pUrb->pszDesc, cbData));
356 rc = g_pfnUsbBulkWrite2(pDevOs2->hDevice, pUrb->EndPt, 0, !pUrb->fShortNotOk, cbData, pbData, 500);//5*6000);
364 Log2(("%s: usbProxyOs2AsyncThread: Unsupported\n", pUrb->pszDesc));
371 memcpy(pUrb->abData, pbData, pUrb->cbData);
376 pUrb->enmStatus = VUSBSTATUS_OK;
377 else if (rc == USB_ERROR_LESSTRANSFERED && !pUrb->fShortNotOk)
379 Assert(pUrb->cbData >= cbData);
380 pUrb->cbData = cbData;
381 pUrb->enmStatus = VUSBSTATUS_DATA_UNDERRUN;
384 pUrb->enmStatus = VUSBSTATUS_STALL;
385 Log2(("%s: usbProxyOs2AsyncThread: orc=%d enmStatus=%d cbData=%d \n", pUrb->pszDesc, orc, pUrb->enmStatus, pUrb->cbData)); NOREF(orc);
401 Log2(("%s: usbProxyOs2AsyncThread: orc=%d enmStatus=%d cbData=%d!\n", pUrb->pszDesc, orc, pUrb->enmStatus, pUrb->cbData)); NOREF(orc);
705 static int usbProxyOs2UrbQueue(PVUSBURB pUrb)
707 PUSBPROXYDEV pProxyDev = (PUSBPROXYDEV)pUrb->pDev;
709 LogFlow(("usbProxyOs2UrbQueue: pProxyDev=%s pUrb=%p EndPt=%d cbData=%d\n",
710 pProxyDev->pUsbIns->pszName, pUrb, pUrb->EndPt, pUrb->cbData));
715 switch (pUrb->enmDir)
721 AssertMsgFailed(("usbProxyOs2UrbQueue: Invalid direction %d\n", pUrb->enmDir));
725 switch (pUrb->enmType)
747 pUrbOs2->pUrb = pUrb;
776 PVUSBURB pUrb = NULL;
788 pUrb = pUrbOs2->pUrb;
812 LogFlow(("usbProxyOs2UrbReap: dev=%s returns %p\n", pProxyDev->pUsbIns->pszName, pUrb));
813 return pUrb;
821 static void usbProxyOs2UrbCancel(PVUSBURB pUrb)
824 PUSBPROXYDEV pProxyDev = (PUSBPROXYDEV)pUrb->pDev;
825 PUSBPROXYURBOS2 pUrbOs2 = (PUSBPROXYURBOS2)pUrb->Dev.pvProxyUrb;
840 pUrb, errno, pProxyDev->pUsbIns->pszName));
850 pUrb, errno, pProxyDev->pUsbIns->pszName));