Home
last modified time | relevance | path

Searched refs:Urb (Results 1 – 25 of 64) sorted by relevance

123

/reactos/drivers/usb/usbport/
H A Durb.c38 USBPORT_QueueTransferUrb(Urb); in USBPORT_HandleGetConfiguration()
73 IN PURB Urb) in USBPORT_AbortPipe() argument
116 IN PURB Urb) in USBPORT_ResetPipe() argument
179 IN PURB Urb) in USBPORT_ClearStall() argument
377 USBPORT_QueueTransferUrb(Urb); in USBPORT_HandleSetOrClearFeature()
647 USBPORT_DumpingURB(Urb); in USBPORT_ValidateTransferParametersURB()
656 USBPORT_DumpingURB(Urb); in USBPORT_ValidateTransferParametersURB()
695 IN PURB Urb, in USBPORT_ValidateURB() argument
713 USBPORT_DumpingURB(Urb); in USBPORT_ValidateURB()
751 USBPORT_DumpingURB(Urb); in USBPORT_ValidateURB()
[all …]
H A Dqueue.c391 Urb, in USBPORT_FindUrbInIrpTable()
482 PURB Urb; in USBPORT_CancelPendingTransferIrp() local
494 Urb = URB_FROM_IRP(Irp); in USBPORT_CancelPendingTransferIrp()
535 PURB Urb; in USBPORT_CancelActiveTransferIrp() local
567 Urb, in USBPORT_CancelActiveTransferIrp()
613 PURB Urb; in USBPORT_FlushAbortList() local
793 PURB Urb; in USBPORT_FlushPendingTransfers() local
903 Urb = Transfer->Urb; in USBPORT_FlushPendingTransfers()
978 Urb); in USBPORT_QueuePendingUrbToEndpoint()
999 Urb); in USBPORT_QueueActiveUrbToEndpoint()
[all …]
H A Ddebug.c224 USBPORT_DumpingURB(IN PURB Urb) in USBPORT_DumpingURB() argument
228 DPRINT_URB("UrbHeader.Length - %x\n", Urb->UrbHeader.Length); in USBPORT_DumpingURB()
229 DPRINT_URB("UrbHeader.Function - %x\n", Urb->UrbHeader.Function); in USBPORT_DumpingURB()
230 DPRINT_URB("UrbHeader.Status - %x\n", Urb->UrbHeader.Status); in USBPORT_DumpingURB()
231 DPRINT_URB("UrbHeader.UsbdDeviceHandle - %p\n", Urb->UrbHeader.UsbdDeviceHandle); in USBPORT_DumpingURB()
232 DPRINT_URB("UrbHeader.UsbdFlags - %x\n", Urb->UrbHeader.UsbdFlags); in USBPORT_DumpingURB()
234 if (Urb->UrbHeader.Length < 0x48) in USBPORT_DumpingURB()
239 DPRINT_URB("PipeHandle - %p\n", Urb->UrbControlTransfer.PipeHandle); in USBPORT_DumpingURB()
244 DPRINT_URB("UrbLink - %p\n", Urb->UrbControlTransfer.UrbLink); in USBPORT_DumpingURB()
246 if (Urb->UrbHeader.Length < 0x50) in USBPORT_DumpingURB()
[all …]
H A Ddevice.c23 PURB Urb; in USBPORT_SendSetupPacket() local
40 Urb = ExAllocatePoolWithTag(NonPagedPool, in USBPORT_SendSetupPacket()
44 if (Urb) in USBPORT_SendSetupPacket()
57 Urb->UrbHeader.UsbdFlags = 0; in USBPORT_SendSetupPacket()
104 USBPORT_QueueTransferUrb(Urb); in USBPORT_SendSetupPacket()
125 ExFreePoolWithTag(Urb, USB_PORT_TAG); in USBPORT_SendSetupPacket()
246 USBPORT_OpenInterface(IN PURB Urb, in USBPORT_OpenInterface() argument
641 while ((ULONG_PTR)InterfaceInfo < (ULONG_PTR)Urb + Urb->UrbHeader.Length); in USBPORT_HandleSelectConfiguration()
1488 IN PURB Urb) in USBPORT_HandleSelectInterface() argument
1516 Urb->UrbHeader.Length = Length; in USBPORT_HandleSelectInterface()
[all …]
H A Dusbport.c493 Urb, in USBPORT_USBDStatusToNtStatus()
497 if (Urb) in USBPORT_USBDStatusToNtStatus()
729 PURB Urb; in USBPORT_DoneTransfer() local
740 Urb = Transfer->Urb; in USBPORT_DoneTransfer()
757 USBPORT_CompleteTransfer(Urb, Urb->UrbHeader.Status); in USBPORT_DoneTransfer()
2218 Urb, in USBPORT_CompleteTransfer()
2283 USBPORT_DumpingURB(Urb); in USBPORT_CompleteTransfer()
2316 PURB Urb; in USBPORT_MapTransfer() local
2343 Urb = Transfer->Urb; in USBPORT_MapTransfer()
2563 Urb, in USBPORT_AllocateTransfer()
[all …]
/reactos/drivers/hid/hidusb/
H A Dhidusb.c125 PURB Urb; in HidUsb_ResetInterruptPipe() local
146 if (!Urb) in HidUsb_ResetInterruptPipe()
184 PURB Urb; in HidUsb_AbortPipe() local
198 if (!Urb) in HidUsb_AbortPipe()
424 PURB Urb; in HidUsb_ReadReportCompletion() local
529 PURB Urb; in HidUsb_ReadReport() local
560 if (!Urb) in HidUsb_ReadReport()
1062 PURB Urb; in Hid_GetDescriptor() local
1070 if (!Urb) in Hid_GetDescriptor()
1190 PURB Urb; in Hid_SelectConfiguration() local
[all …]
/reactos/drivers/usb/usbaudio/
H A Dusbaudio.c39 IN PURB Urb) in SubmitUrbSync() argument
98 PURB Urb; in USBAudioSelectConfiguration() local
136 if (!Urb) in USBAudioSelectConfiguration()
151 ExFreePool(Urb); in USBAudioSelectConfiguration()
174 PURB Urb; in USBAudioStartDevice() local
186 if (!Urb) in USBAudioStartDevice()
197 FreeFunction(Urb); in USBAudioStartDevice()
209 FreeFunction(Urb); in USBAudioStartDevice()
219 FreeFunction(Urb); in USBAudioStartDevice()
232 FreeFunction(Urb); in USBAudioStartDevice()
[all …]
H A Dpin.c59 PURB Urb; in UsbAudioAllocCaptureUrbIso() local
68 if (!Urb) in UsbAudioAllocCaptureUrbIso()
97 PURB Urb; in UsbAudioSetFormat() local
132 if (!Urb) in UsbAudioSetFormat()
175 PURB Urb; in USBAudioSelectAudioStreamingInterface() local
230 if (!Urb) in USBAudioSelectAudioStreamingInterface()
321 PURB Urb; in RenderInitializeUrbAndIrp() local
349 if (!Urb) in RenderInitializeUrbAndIrp()
385 PURB Urb; in CaptureInitializeUrbAndIrp() local
498 PURB Urb; in InitCapturePin() local
[all …]
/reactos/drivers/usb/usbstor_new/
H A Ddescriptor.c27 PURB Urb; in USBSTOR_GetDescriptor() local
53 Urb = (PURB) AllocateItem(NonPagedPool, sizeof(URB)); in USBSTOR_GetDescriptor()
54 if (!Urb) in USBSTOR_GetDescriptor()
66 UsbBuildGetDescriptorRequest(Urb, in USBSTOR_GetDescriptor()
79 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_GetDescriptor()
84 FreeItem(Urb); in USBSTOR_GetDescriptor()
356 PURB Urb; in USBSTOR_SelectConfigurationAndInterface() local
392 if (!Urb) in USBSTOR_SelectConfigurationAndInterface()
417 ExFreePoolWithTag(Urb, 0); in USBSTOR_SelectConfigurationAndInterface()
431 ExFreePoolWithTag(Urb, 0); in USBSTOR_SelectConfigurationAndInterface()
[all …]
H A Derror.c23 PURB Urb; in USBSTOR_GetEndpointStatus() local
31 if (!Urb) in USBSTOR_GetEndpointStatus()
48 DPRINT1("Sending Request DeviceObject %p, Urb %p\n", DeviceObject, Urb); in USBSTOR_GetEndpointStatus()
49 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_GetEndpointStatus()
54 FreeItem(Urb); in USBSTOR_GetEndpointStatus()
69 PURB Urb; in USBSTOR_ResetPipeWithHandle() local
77 if (!Urb) in USBSTOR_ResetPipeWithHandle()
89 Urb->UrbPipeRequest.Hdr.Length = sizeof(struct _URB_PIPE_REQUEST); in USBSTOR_ResetPipeWithHandle()
91 Urb->UrbPipeRequest.PipeHandle = PipeHandle; in USBSTOR_ResetPipeWithHandle()
97 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_ResetPipeWithHandle()
[all …]
H A Dmisc.c277 PURB Urb; in USBSTOR_ClassRequest() local
283 Urb = (PURB)AllocateItem(NonPagedPool, sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST)); in USBSTOR_ClassRequest()
284 if (!Urb) in USBSTOR_ClassRequest()
296 Urb->UrbControlVendorClassRequest.Hdr.Function = URB_FUNCTION_CLASS_INTERFACE; in USBSTOR_ClassRequest()
297 Urb->UrbControlVendorClassRequest.TransferFlags = TransferFlags; in USBSTOR_ClassRequest()
298 Urb->UrbControlVendorClassRequest.TransferBufferLength = TransferBufferLength; in USBSTOR_ClassRequest()
299 Urb->UrbControlVendorClassRequest.TransferBuffer = TransferBuffer; in USBSTOR_ClassRequest()
300 Urb->UrbControlVendorClassRequest.Request = RequestType; in USBSTOR_ClassRequest()
301 Urb->UrbControlVendorClassRequest.Index = Index; in USBSTOR_ClassRequest()
306 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_ClassRequest()
[all …]
/reactos/drivers/usb/usbstor/
H A Ddescriptor.c26 PURB Urb; in USBSTOR_GetDescriptor() local
42 Urb = (PURB) AllocateItem(NonPagedPool, sizeof(URB)); in USBSTOR_GetDescriptor()
43 if (!Urb) in USBSTOR_GetDescriptor()
51 UsbBuildGetDescriptorRequest(Urb, in USBSTOR_GetDescriptor()
62 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_GetDescriptor()
64 FreeItem(Urb); in USBSTOR_GetDescriptor()
241 PURB Urb; in USBSTOR_SelectConfigurationAndInterface() local
262 if (!Urb) in USBSTOR_SelectConfigurationAndInterface()
278 ExFreePoolWithTag(Urb, 0); in USBSTOR_SelectConfigurationAndInterface()
287 ExFreePoolWithTag(Urb, 0); in USBSTOR_SelectConfigurationAndInterface()
[all …]
H A Derror.c23 PURB Urb; in USBSTOR_GetEndpointStatus() local
28 if (!Urb) in USBSTOR_GetEndpointStatus()
38 DPRINT1("Sending Request DeviceObject %p, Urb %p\n", DeviceObject, Urb); in USBSTOR_GetEndpointStatus()
39 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_GetEndpointStatus()
41 FreeItem(Urb); in USBSTOR_GetEndpointStatus()
50 PURB Urb; in USBSTOR_ResetPipeWithHandle() local
55 if (!Urb) in USBSTOR_ResetPipeWithHandle()
61 Urb->UrbPipeRequest.Hdr.Length = sizeof(struct _URB_PIPE_REQUEST); in USBSTOR_ResetPipeWithHandle()
63 Urb->UrbPipeRequest.PipeHandle = PipeHandle; in USBSTOR_ResetPipeWithHandle()
67 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_ResetPipeWithHandle()
[all …]
H A Dmisc.c149 PURB Urb; in USBSTOR_ClassRequest() local
152 Urb = (PURB)AllocateItem(NonPagedPool, sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST)); in USBSTOR_ClassRequest()
153 if (!Urb) in USBSTOR_ClassRequest()
159 Urb->UrbControlVendorClassRequest.Hdr.Function = URB_FUNCTION_CLASS_INTERFACE; in USBSTOR_ClassRequest()
160 Urb->UrbControlVendorClassRequest.TransferFlags = TransferFlags; in USBSTOR_ClassRequest()
161 Urb->UrbControlVendorClassRequest.TransferBufferLength = TransferBufferLength; in USBSTOR_ClassRequest()
162 Urb->UrbControlVendorClassRequest.TransferBuffer = TransferBuffer; in USBSTOR_ClassRequest()
163 Urb->UrbControlVendorClassRequest.Request = RequestType; in USBSTOR_ClassRequest()
164 Urb->UrbControlVendorClassRequest.Index = Index; in USBSTOR_ClassRequest()
166 Status = USBSTOR_SyncUrbRequest(DeviceObject, Urb); in USBSTOR_ClassRequest()
[all …]
H A Dscsi.c73 RtlZeroMemory(&Context->Urb, sizeof(struct _URB_BULK_OR_INTERRUPT_TRANSFER)); in USBSTOR_IssueBulkOrInterruptRequest()
75 Context->Urb.UrbHeader.Length = sizeof(struct _URB_BULK_OR_INTERRUPT_TRANSFER); in USBSTOR_IssueBulkOrInterruptRequest()
76 Context->Urb.UrbHeader.Function = URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER; in USBSTOR_IssueBulkOrInterruptRequest()
78 Context->Urb.UrbBulkOrInterruptTransfer.PipeHandle = PipeHandle; in USBSTOR_IssueBulkOrInterruptRequest()
79 Context->Urb.UrbBulkOrInterruptTransfer.TransferFlags = TransferFlags; in USBSTOR_IssueBulkOrInterruptRequest()
80 Context->Urb.UrbBulkOrInterruptTransfer.TransferBufferLength = TransferBufferLength; in USBSTOR_IssueBulkOrInterruptRequest()
81 Context->Urb.UrbBulkOrInterruptTransfer.TransferBuffer = TransferBuffer; in USBSTOR_IssueBulkOrInterruptRequest()
82 Context->Urb.UrbBulkOrInterruptTransfer.TransferBufferMDL = TransferBufferMDL; in USBSTOR_IssueBulkOrInterruptRequest()
87 NextStack->Parameters.Others.Argument1 = &Context->Urb; in USBSTOR_IssueBulkOrInterruptRequest()
283 IoFreeMdl(Context->Urb.UrbBulkOrInterruptTransfer.TransferBufferMDL); in USBSTOR_DataCompletionRoutine()
[all …]
/reactos/drivers/usb/usbccgp/
H A Ddescriptor.c27 PURB Urb; in USBCCGP_GetDescriptor() local
54 if (!Urb) in USBCCGP_GetDescriptor()
66 UsbBuildGetDescriptorRequest(Urb, in USBCCGP_GetDescriptor()
84 FreeItem(Urb); in USBCCGP_GetDescriptor()
419 PURB Urb; in USBCCGP_SelectInterface() local
425 if (!Urb) in USBCCGP_SelectInterface()
458 FreeItem(Urb); in USBCCGP_SelectInterface()
473 PURB Urb; in USBCCGP_SelectConfiguration() local
492 if (!Urb) in USBCCGP_SelectConfiguration()
510 ExFreePool(Urb); in USBCCGP_SelectConfiguration()
[all …]
H A Dpdo.c508 PURB Urb; in USBCCGP_BuildConfigurationDescriptor() local
681 Urb = (PURB)IoStack->Parameters.Others.Argument1; in USBCCGP_BuildConfigurationDescriptor()
682 ASSERT(Urb); in USBCCGP_BuildConfigurationDescriptor()
693 Urb->UrbControlDescriptorRequest.TransferBufferLength = Size; in USBCCGP_BuildConfigurationDescriptor()
713 PURB Urb, NewUrb; in USBCCGP_PDOSelectConfiguration() local
733 Urb = (PURB)IoStack->Parameters.Others.Argument1; in USBCCGP_PDOSelectConfiguration()
734 ASSERT(Urb); in USBCCGP_PDOSelectConfiguration()
739 if (Urb->UrbSelectConfiguration.ConfigurationHandle) in USBCCGP_PDOSelectConfiguration()
957 PURB Urb; in PDO_HandleInternalDeviceControl() local
974 Urb = (PURB)IoStack->Parameters.Others.Argument1; in PDO_HandleInternalDeviceControl()
[all …]
/reactos/drivers/usb/usbhub/
H A Dusbhub.c362 Urb); in USBH_FdoSyncSubmitUrb()
406 if (!Urb) in USBH_Transact()
889 if (!Urb) in USBH_GetDeviceDescriptor()
935 if (!Urb) in USBH_SyncGetDeviceConfigurationDescriptor()
964 if (Urb) in USBH_SyncGetDeviceConfigurationDescriptor()
1268 if (!Urb) in USBH_SyncGetStringDescriptor()
1338 if (!Urb) in USBH_SyncGetStatus()
1685 Urb->Index = Port; in USBH_ChangeIndicationAckChange()
1812 Urb->Value = 0; in USBH_ChangeIndicationQueryChange()
1813 Urb->Index = Port; in USBH_ChangeIndicationQueryChange()
[all …]
H A Dioctl.c28 PURB Urb; in USBH_SelectConfigOrInterfaceComplete() local
73 Urb = URB_FROM_IRP(Irp); in USBH_SelectConfigOrInterfaceComplete()
93 PURB Urb; in USBH_PdoUrbFilter() local
102 Urb = URB_FROM_IRP(Irp); in USBH_PdoUrbFilter()
107 Urb); in USBH_PdoUrbFilter()
214 PURB Urb; in USBH_PdoIoctlSubmitUrb() local
221 Urb = URB_FROM_IRP(Irp); in USBH_PdoIoctlSubmitUrb()
1101 if (!Urb) in USBH_IoctlGetDescriptor()
1114 Urb->TransferBufferMDL = NULL; in USBH_IoctlGetDescriptor()
1115 Urb->UrbLink = NULL; in USBH_IoctlGetDescriptor()
[all …]
/reactos/sdk/lib/drivers/wdf/shared/targets/usb/um/
H A Dusbstubum.cpp35 _In_ PURB Urb in USBD_UrbFree() argument
39 UNREFERENCED_PARAMETER(Urb); in USBD_UrbFree()
48 _Outptr_result_bytebuffer_(sizeof(URB)) PURB *Urb in USBD_UrbAllocate()
52 UNREFERENCED_PARAMETER(Urb); in USBD_UrbAllocate()
66 PURB *Urb
71 UNREFERENCED_PARAMETER(Urb);
139 _In_ PURB Urb in USBD_AssignUrbToIoStackLocation() argument
144 UNREFERENCED_PARAMETER(Urb); in USBD_AssignUrbToIoStackLocation()
/reactos/sdk/lib/drivers/wdf/shared/targets/usb/
H A Dfxusbinterfaceapi.cpp130 if (Params->Types.Urb.Urb == NULL || in __drv_maxIRQL()
131 Params->Types.Urb.Urb->UrbHeader.Function != URB_FUNCTION_SELECT_INTERFACE || in __drv_maxIRQL()
132 (Params->Types.Urb.Urb->UrbHeader.Length < in __drv_maxIRQL()
138 Params->Types.Urb.Urb, status); in __drv_maxIRQL()
143 Params->Types.Urb.Urb); in __drv_maxIRQL()
H A Dfxusbinterface.cpp585 __in PURB Urb in SelectSetting() argument
650 if (Urb->UrbSelectInterface.Hdr.Length < interfaceStructSize) { in SelectSetting()
672 numPipes = (UCHAR) ((Urb->UrbSelectInterface.Interface.Length - in SelectSetting()
761 SetInfo(&Urb->UrbSelectInterface.Interface); in SelectSetting()
817 RtlZeroMemory(Urb, size); in FormatSelectSettingUrb()
822 UsbBuildSelectInterfaceRequest(Urb, in FormatSelectSettingUrb()
830 Urb->UrbSelectInterface.Interface.Length = in FormatSelectSettingUrb()
833 Urb->UrbSelectInterface.Interface.NumberOfPipes = NumEndpoints; in FormatSelectSettingUrb()
841 &Urb->UrbSelectInterface.Interface.Pipes[i] < in FormatSelectSettingUrb()
842 WDF_PTR_ADD_OFFSET(&Urb->UrbSelectInterface.Interface, in FormatSelectSettingUrb()
[all …]
H A Dusbutil.cpp31 __in PURB Urb,
40 ASSERT(Urb->UrbHeader.Length >= sizeof(_URB_HEADER));
52 USBD_AssignUrbToIoStackLocation(UsbdHandle, irp->GetNextIrpStackLocation(), Urb);
55 irp->SetNextStackParameterOthersArgument1(Urb);
488 __in_xcount(Urb->Length) PUMURB_HEADER Urb,
513 FX_VERIFY(INTERNAL, CHECK_NOT_NULL(Urb));
514 FX_VERIFY(INTERNAL, CHECK_TODO(Urb->Length >= sizeof(_UMURB_HEADER)));
541 pIoIrp->SetOtherParametersForNextStackLocation((PVOID*)&Urb,
/reactos/sdk/lib/drivers/wdf/shared/targets/usb/km/
H A Dfxusbdeviceapikm.cpp76 PURB Urb in __drv_maxIRQL()
104 "WDFUSBDEVICE %p, Urb %p", UsbDevice, Urb); in __drv_maxIRQL()
106 FxPointerNotNull(pFxDriverGlobals, Urb); in __drv_maxIRQL()
118 buf.SetBuffer(Urb, 0); in __drv_maxIRQL()
138 UsbDevice, Urb, status); in __drv_maxIRQL()
383 PURB* Urb in __drv_maxIRQL()
440 status = pUsbDevice->CreateUrb(Attributes, UrbMemory, Urb); in __drv_maxIRQL()
/reactos/drivers/usb/usbd/
H A Dusbd.c334 PURB Urb; in USBD_CreateConfigurationRequestEx() local
353 Urb = ExAllocatePool(NonPagedPool, UrbSize); in USBD_CreateConfigurationRequestEx()
354 if (!Urb) in USBD_CreateConfigurationRequestEx()
361 RtlZeroMemory(Urb, UrbSize); in USBD_CreateConfigurationRequestEx()
364 Urb->UrbSelectConfiguration.Hdr.Function = URB_FUNCTION_SELECT_CONFIGURATION; in USBD_CreateConfigurationRequestEx()
365 Urb->UrbSelectConfiguration.Hdr.Length = UrbSize; in USBD_CreateConfigurationRequestEx()
366 Urb->UrbSelectConfiguration.ConfigurationDescriptor = ConfigurationDescriptor; in USBD_CreateConfigurationRequestEx()
369 InterfaceInfo = &Urb->UrbSelectConfiguration.Interface; in USBD_CreateConfigurationRequestEx()
394 return Urb; in USBD_CreateConfigurationRequestEx()

123