Lines Matching defs:pUrb
585 * @param pUrb The URB triggering the event.
588 DECLHIDDEN(int) VUSBSnifferRecordEvent(VUSBSNIFFER hSniffer, PVUSBURB pUrb, VUSBSNIFFEREVENT enmEvent)
613 UsbHdr.u64Id = (uint64_t)pUrb; /** @todo: check whether the pointer is a good ID. */
618 cbUrbLength = pUrb->cbData;
622 cbUrbLength = pUrb->cbData;
632 pbData = &pUrb->abData[0];
634 switch (pUrb->enmType)
641 cIsocPkts = pUrb->cIsocPkts;
643 if ( pUrb->aIsocPkts[i].enmStatus != VUSBSTATUS_OK
644 && pUrb->aIsocPkts[i].enmStatus != VUSBSTATUS_NOT_ACCESSED)
648 UsbHdr.u.IsoRec.i32NumDesc = pUrb->cIsocPkts;
663 AssertMsgFailed(("invalid transfer type %d\n", pUrb->enmType));
666 if (pUrb->enmDir == VUSBDIRECTION_IN)
671 else if (pUrb->enmDir == VUSBDIRECTION_OUT)
674 || pUrb->enmType == VUSBXFERTYPE_CTRL
675 || pUrb->enmType == VUSBXFERTYPE_MSG)
678 else if (pUrb->enmDir == VUSBDIRECTION_SETUP)
684 UsbHdr.u8EndpointNumber = pUrb->EndPt | (pUrb->enmDir == VUSBDIRECTION_IN ? 0x80 : 0x00);
685 UsbHdr.u8DeviceAddress = pUrb->DstAddress;
690 UsbHdr.i32Status = pUrb->enmStatus;
698 if ( (pUrb->enmType == VUSBXFERTYPE_MSG || pUrb->enmType == VUSBXFERTYPE_CTRL)
701 PVUSBSETUP pSetup = (PVUSBSETUP)pUrb->abData;
725 IsoDesc.i32Status = pUrb->aIsocPkts[i].enmStatus;
726 IsoDesc.u32Offset = pUrb->aIsocPkts[i].off;
727 IsoDesc.u32Len = pUrb->aIsocPkts[i].cb;