ReactOS 0.4.16-dev-297-gc569aee
|
#include <ntifs.h>
#include <windef.h>
#include <stdio.h>
#include <wdmguid.h>
#include <ntstrsafe.h>
#include <usb.h>
#include <hubbusif.h>
#include <usbbusif.h>
#include <usbdlib.h>
#include <usbuser.h>
#include <drivers/usbport/usbmport.h>
Go to the source code of this file.
Classes | |
struct | _USBPORT_COMMON_BUFFER_HEADER |
struct | _USBPORT_PIPE_HANDLE |
struct | _USBPORT_CONFIGURATION_HANDLE |
struct | _USBPORT_INTERFACE_HANDLE |
struct | _USBPORT_DEVICE_HANDLE |
struct | _USBPORT_ENDPOINT |
struct | _USBPORT_TRANSFER |
struct | _USBPORT_IRP_TABLE |
struct | _USBPORT_COMMON_DEVICE_EXTENSION |
struct | _USBPORT_DEVICE_EXTENSION |
struct | _USBPORT_RH_DESCRIPTORS |
struct | _USBPORT_RHDEVICE_EXTENSION |
struct | _USBPORT_ASYNC_CALLBACK_DATA |
struct | _TIMER_WORK_QUEUE_ITEM |
union | _USB2_TT_ENDPOINT_PARAMS |
union | _USB2_TT_ENDPOINT_NUMS |
struct | _USB2_TT_ENDPOINT |
struct | _USB2_FRAME_BUDGET |
struct | _USB2_TT |
struct | _USB2_TT_EXTENSION |
struct | _USB2_HC_EXTENSION |
struct | _USB2_REBALANCE |
Variables | |
KSPIN_LOCK | USBPORT_SpinLock |
LIST_ENTRY | USBPORT_MiniPortDrivers |
#define USB2_MAX_MICROFRAMES (USB2_FRAMES * USB2_MICROFRAMES) |
#define USBPORT_RECIPIENT_HUB BMREQUEST_TO_DEVICE |
#define USBPORT_RECIPIENT_PORT BMREQUEST_TO_OTHER |
typedef struct _USB2_FRAME_BUDGET * PUSB2_FRAME_BUDGET |
typedef struct _USB2_HC_EXTENSION * PUSB2_HC_EXTENSION |
typedef struct _USB2_REBALANCE * PUSB2_REBALANCE |
typedef struct _USB2_TT_ENDPOINT * PUSB2_TT_ENDPOINT |
typedef struct _USB2_TT_EXTENSION * PUSB2_TT_EXTENSION |
typedef USBD_STATUS* PUSBD_STATUS |
typedef struct _USBPORT_ENDPOINT * PUSBPORT_ENDPOINT |
typedef struct _USBPORT_IRP_TABLE * PUSBPORT_IRP_TABLE |
typedef struct _USBPORT_ISO_BLOCK* PUSBPORT_ISO_BLOCK |
typedef struct _USBPORT_PIPE_HANDLE * PUSBPORT_PIPE_HANDLE |
typedef struct _USBPORT_TRANSFER * PUSBPORT_TRANSFER |
typedef struct _USB2_REBALANCE USB2_REBALANCE |
typedef struct _USB2_TT_ENDPOINT USB2_TT_ENDPOINT |
typedef union _USB2_TT_ENDPOINT_NUMS USB2_TT_ENDPOINT_NUMS |
typedef union _USB2_TT_ENDPOINT_PARAMS USB2_TT_ENDPOINT_PARAMS |
typedef struct _USBPORT_ENDPOINT USBPORT_ENDPOINT |
typedef struct _USBPORT_TRANSFER USBPORT_TRANSFER |
C_ASSERT | ( | sizeof(USB2_TT_ENDPOINT_NUMS) | = =sizeof(ULONG) | ) |
C_ASSERT | ( | sizeof(USB2_TT_ENDPOINT_PARAMS) | = =sizeof(ULONG) | ) |
C_ASSERT | ( | sizeof(USBPORT_ASYNC_CALLBACK_DATA) | = =16+18 *sizeof(PVOID) | ) |
C_ASSERT | ( | sizeof(USBPORT_DEVICE_EXTENSION) | = =0x500 | ) |
VOID NTAPI MiniportCloseEndpoint | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint | ||
) |
Definition at line 549 of file endpoint.c.
Referenced by USBPORT_DeleteEndpoint(), USBPORT_ReopenPipe(), and USBPORT_RestoreDevice().
MPSTATUS NTAPI MiniportOpenEndpoint | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint | ||
) |
Definition at line 722 of file endpoint.c.
Referenced by USBPORT_OpenPipe(), USBPORT_ReopenPipe(), and USBPORT_RestoreDevice().
VOID NTAPI USB2_InitController | ( | IN PUSB2_HC_EXTENSION | HcExtension | ) |
Definition at line 2217 of file usb2.c.
Referenced by USBPORT_AddDevice().
Definition at line 2160 of file usb2.c.
Referenced by USB2_InitController(), and USBPORT_InitializeTT().
VOID NTAPI USBPORT_AbortEndpoint | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint, | ||
IN PIRP | Irp | ||
) |
Definition at line 1354 of file queue.c.
Referenced by USBPORT_AbortPipe(), and USBPORT_AbortTransfers().
Definition at line 214 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 91 of file queue.c.
Referenced by USBPORT_StartDevice().
VOID NTAPI USBPORT_AddDeviceHandle | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_DEVICE_HANDLE | DeviceHandle | ||
) |
Definition at line 769 of file device.c.
Referenced by USBPORT_CreateDevice(), and USBPORT_RootHubCreateDevice().
VOID NTAPI USBPORT_AddPipeHandle | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PUSBPORT_PIPE_HANDLE | PipeHandle | ||
) |
Definition at line 444 of file endpoint.c.
Referenced by USBPORT_OpenPipe(), and USBPORT_RestoreDevice().
VOID NTAPI USBPORT_AddUSB1Fdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 66 of file usbport.c.
Referenced by USBPORT_FdoPnP().
VOID NTAPI USBPORT_AddUSB2Fdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 82 of file usbport.c.
Referenced by USBPORT_FdoPnP().
VOID NTAPI USBPORT_AdjustDeviceCapabilities | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PDEVICE_OBJECT | PdoDevice | ||
) |
Definition at line 668 of file power.c.
Referenced by USBPORT_CreatePdo().
BOOLEAN NTAPI USBPORT_AllocateBandwidthUSB2 | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint | ||
) |
Definition at line 1799 of file usb2.c.
Referenced by USBPORT_OpenPipe().
PUSBPORT_COMMON_BUFFER_HEADER NTAPI USBPORT_AllocateCommonBuffer | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN SIZE_T | BufferLength | ||
) |
Definition at line 1708 of file usbport.c.
Referenced by USBPORT_OpenPipe(), USBPORT_ReopenPipe(), and USBPORT_StartDevice().
USBD_STATUS NTAPI USBPORT_AllocateTransfer | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PURB | Urb, | ||
IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, | ||
IN PIRP | Irp, | ||
IN PRKEVENT | Event | ||
) |
Definition at line 2543 of file usbport.c.
Referenced by USBPORT_SendSetupPacket(), and USBPORT_ValidateURB().
ULONG NTAPI USBPORT_AssertFailure | ( | PVOID | MiniPortExtension, |
PVOID | FailedAssertion, | ||
PVOID | FileName, | ||
ULONG | LineNumber, | ||
PCHAR | Message | ||
) |
Definition at line 38 of file debug.c.
Referenced by USBPORT_RegisterUSBPortDriver().
VOID NTAPI USBPORT_BadRequestFlush | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1328 of file queue.c.
Referenced by USBHI_FlushTransfers(), and USBPORT_TimerDpc().
Definition at line 529 of file queue.c.
Referenced by USBPORT_FlushPendingTransfers().
VOID NTAPI USBPORT_CancelSplitTransfer | ( | IN PUSBPORT_TRANSFER | SplitTransfer | ) |
Definition at line 314 of file trfsplit.c.
Referenced by USBPORT_DmaEndpointPaused().
VOID NTAPI USBPORT_ClosePipe | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PDEVICE_OBJECT | FdoDevice, | ||
IN PUSBPORT_PIPE_HANDLE | PipeHandle | ||
) |
Definition at line 590 of file endpoint.c.
Referenced by USBPORT_CloseConfiguration(), USBPORT_CreateDevice(), USBPORT_HandleSelectInterface(), USBPORT_RemoveDevice(), and USBPORT_RestoreDevice().
Definition at line 246 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 123 of file queue.c.
Referenced by USBPORT_StartDevice().
ULONG NTAPI USBPORT_CompleteIsoTransfer | ( | IN PVOID | MiniPortExtension, |
IN PVOID | MiniPortEndpoint, | ||
IN PVOID | TransferParameters, | ||
IN ULONG | TransferLength | ||
) |
Definition at line 25 of file iso.c.
Referenced by USBPORT_RegisterUSBPortDriver().
VOID NTAPI USBPORT_CompletePdoWaitWake | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 15 of file power.c.
Referenced by USBPORT_HcWakeDpc(), USBPORT_IsrDpc(), and USBPORT_PdoDevicePowerState().
Definition at line 2198 of file usbport.c.
Referenced by USBPORT_CancelPendingTransferIrp(), USBPORT_DoneTransfer(), USBPORT_FlushCancelList(), USBPORT_FlushPendingTransfers(), and USBPORT_QueuePendingTransferIrp().
NTSTATUS NTAPI USBPORT_CreateDevice | ( | IN OUT PUSB_DEVICE_HANDLE * | pUsbdDeviceHandle, |
IN PDEVICE_OBJECT | FdoDevice, | ||
IN PUSBPORT_DEVICE_HANDLE | HubDeviceHandle, | ||
IN USHORT | PortStatus, | ||
IN USHORT | Port | ||
) |
Definition at line 982 of file device.c.
Referenced by USBHI_CreateUsbDevice().
NTSTATUS NTAPI USBPORT_CreateWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1427 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 19 of file debug.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 545 of file power.c.
Referenced by USBPORT_TimerDpc().
VOID NTAPI USBPORT_DoneSplitTransfer | ( | IN PUSBPORT_TRANSFER | SplitTransfer | ) |
Definition at line 278 of file trfsplit.c.
Referenced by USBPORT_FlushDoneTransfers().
VOID NTAPI USBPORT_DoneTransfer | ( | IN PUSBPORT_TRANSFER | Transfer | ) |
Definition at line 724 of file usbport.c.
Referenced by USBPORT_DoneSplitTransfer(), and USBPORT_FlushDoneTransfers().
VOID NTAPI USBPORT_DoSetPowerD0 | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 104 of file power.c.
Referenced by USBPORT_WorkerThread().
VOID NTAPI USBPORT_DpcHandler | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 864 of file usbport.c.
Referenced by USBPORT_IsrDpcHandler(), and USBPORT_WorkerRequestDpc().
VOID NTAPI USBPORT_DumpingCapabilities | ( | IN PDEVICE_CAPABILITIES | Capabilities | ) |
Definition at line 170 of file debug.c.
Referenced by USBPORT_QueryCapabilities().
VOID NTAPI USBPORT_DumpingConfiguration | ( | IN PUSB_CONFIGURATION_DESCRIPTOR | ConfigDescriptor | ) |
Definition at line 105 of file debug.c.
Referenced by USBPORT_HandleSelectConfiguration().
VOID NTAPI USBPORT_DumpingDeviceDescriptor | ( | IN PUSB_DEVICE_DESCRIPTOR | DeviceDescriptor | ) |
Definition at line 79 of file debug.c.
Referenced by USBHI_GetUsbDescriptors(), and USBHI_QueryDeviceInformation().
VOID NTAPI USBPORT_DumpingEndpointProperties | ( | IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties | ) |
Definition at line 257 of file debug.c.
Referenced by USBPORT_GetDeviceHwIds().
VOID NTAPI USBPORT_DumpingSetupPacket | ( | IN PUSB_DEFAULT_PIPE_SETUP_PACKET | SetupPacket | ) |
Definition at line 212 of file debug.c.
Referenced by USBPORT_DumpingURB(), USBPORT_HandleGetConfiguration(), USBPORT_HandleGetSetDescriptor(), USBPORT_HandleGetStatus(), USBPORT_HandleSetOrClearFeature(), and USBPORT_HandleVendorOrClass().
VOID NTAPI USBPORT_DumpingTtEndpoint | ( | IN PUSB2_TT_ENDPOINT | TtEndpoint | ) |
Definition at line 224 of file debug.c.
Referenced by USBPORT_CompleteTransfer(), USBPORT_ValidateTransferParametersURB(), and USBPORT_ValidateURB().
BOOLEAN NTAPI USBPORT_EndpointHasQueuedTransfers | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint, | ||
IN PULONG | TransferCount | ||
) |
Definition at line 254 of file endpoint.c.
Referenced by USBPORT_DeviceHasTransfers(), and USBPORT_FlushDoneTransfers().
Definition at line 1656 of file endpoint.c.
Referenced by USBPORT_DpcHandler(), USBPORT_FlushPendingTransfers(), USBPORT_MapTransfer(), and USBPORT_WorkerThreadHandler().
NTSTATUS NTAPI USBPORT_FdoDeviceControl | ( | PDEVICE_OBJECT | FdoDevice, |
PIRP | Irp | ||
) |
Definition at line 454 of file ioctl.c.
Referenced by USBPORT_Dispatch().
Definition at line 1110 of file pnp.c.
Referenced by USBPORT_Dispatch().
Definition at line 489 of file power.c.
Referenced by USBPORT_Dispatch().
PDEVICE_RELATIONS NTAPI USBPORT_FindCompanionControllers | ( | IN PDEVICE_OBJECT | USB2FdoDevice, |
IN BOOLEAN | IsObRefer, | ||
IN BOOLEAN | IsFDOsReturned | ||
) |
Definition at line 136 of file usbport.c.
Referenced by USBPORT_RH_SetFeatureUSB2PortPower(), USBPORT_RootHubPowerAndChirpAllCcPorts(), and USBPORT_SynchronizeRootHubCallback().
Definition at line 381 of file queue.c.
Referenced by USBPORT_FlushPendingTransfers().
PDEVICE_OBJECT NTAPI USBPORT_FindUSB2Controller | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 27 of file usbport.c.
Referenced by USBHI_GetExtendedHubInformation(), USBPORT_SynchronizeControllersStart(), and USBPORT_WorkerThread().
VOID NTAPI USBPORT_FlushAbortList | ( | IN PUSBPORT_ENDPOINT | Endpoint | ) |
Definition at line 605 of file queue.c.
Referenced by USBPORT_EndpointWorker(), and USBPORT_FlushCancelList().
VOID NTAPI USBPORT_FlushAllEndpoints | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1171 of file queue.c.
Referenced by USBPORT_WorkerThreadHandler().
VOID NTAPI USBPORT_FlushCancelList | ( | IN PUSBPORT_ENDPOINT | Endpoint | ) |
Definition at line 714 of file queue.c.
Referenced by USBPORT_AbortEndpoint(), USBPORT_DmaEndpointWorker(), USBPORT_KillEndpointActiveTransfers(), and USBPORT_RootHubEndpointWorker().
VOID NTAPI USBPORT_FlushClosedEndpointList | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1281 of file endpoint.c.
Referenced by USBPORT_WorkerThreadHandler().
VOID NTAPI USBPORT_FlushController | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1259 of file queue.c.
Referenced by USBPORT_SuspendController().
VOID NTAPI USBPORT_FlushMapTransfers | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 2483 of file usbport.c.
Referenced by USBPORT_AbortTransfers(), and USBPORT_FlushPendingTransfers().
VOID NTAPI USBPORT_FlushPendingTransfers | ( | IN PUSBPORT_ENDPOINT | Endpoint | ) |
Definition at line 785 of file queue.c.
Referenced by USBPORT_AbortEndpoint(), USBPORT_DpcHandler(), USBPORT_FlushAllEndpoints(), USBPORT_KillEndpointActiveTransfers(), and USBPORT_QueueTransferUrb().
VOID NTAPI USBPORT_FreeBandwidthUSB2 | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint | ||
) |
Definition at line 2040 of file usb2.c.
Referenced by USBPORT_ClosePipe(), and USBPORT_OpenPipe().
VOID NTAPI USBPORT_FreeCommonBuffer | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_COMMON_BUFFER_HEADER | HeaderBuffer | ||
) |
Definition at line 1770 of file usbport.c.
Referenced by USBPORT_DeleteEndpoint(), USBPORT_ReopenPipe(), and USBPORT_StartDevice().
ULONG NTAPI USBPORT_GetEndpointState | ( | IN PUSBPORT_ENDPOINT | Endpoint | ) |
Definition at line 332 of file endpoint.c.
Referenced by USBPORT_DmaEndpointPaused(), USBPORT_DmaEndpointWorker(), USBPORT_DpcHandler(), USBPORT_EndpointWorker(), USBPORT_FlushAllEndpoints(), USBPORT_InvalidateEndpointHandler(), USBPORT_OpenPipe(), and USBPORT_SyncResetPipeAndClearStall().
NTSTATUS NTAPI USBPORT_GetRegistryKeyValueFullInfo | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PDEVICE_OBJECT | PdoDevice, | ||
IN BOOL | UseDriverKey, | ||
IN PCWSTR | SourceString, | ||
IN ULONG | LengthStr, | ||
IN PVOID | Buffer, | ||
IN ULONG | NumberOfBytes | ||
) |
Definition at line 296 of file usbport.c.
Referenced by USBHI_GetExtendedHubInformation(), USBPORT_GetMiniportRegistryKeyValue(), USBPORT_IsSelectiveSuspendEnabled(), and USBPORT_StartDevice().
NTSTATUS NTAPI USBPORT_GetSymbolicName | ( | IN PDEVICE_OBJECT | RootHubPdo, |
IN PUNICODE_STRING | DestinationString | ||
) |
Definition at line 62 of file ioctl.c.
Referenced by USBHI_GetRootHubSymbolicName(), and USBPORT_UserGetRootHubName().
NTSTATUS NTAPI USBPORT_GetUsbDescriptor | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PDEVICE_OBJECT | FdoDevice, | ||
IN UCHAR | Type, | ||
IN PUCHAR | ConfigDesc, | ||
IN PULONG | ConfigDescSize | ||
) |
Definition at line 1425 of file device.c.
Referenced by USBHI_GetUsbDescriptors().
NTSTATUS NTAPI USBPORT_HandleSelectConfiguration | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PIRP | Irp, | ||
IN PURB | Urb | ||
) |
Definition at line 574 of file device.c.
Referenced by USBPORT_HandleSubmitURB().
NTSTATUS NTAPI USBPORT_HandleSelectInterface | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PIRP | Irp, | ||
IN PURB | Urb | ||
) |
Definition at line 1486 of file device.c.
Referenced by USBPORT_HandleSubmitURB().
Definition at line 791 of file urb.c.
Referenced by USBPORT_PdoInternalDeviceControl().
VOID NTAPI USBPORT_HcQueueWakeDpc | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 63 of file power.c.
Referenced by USBPORT_InvalidateRootHub().
VOID NTAPI USBPORT_HcWakeDpc | ( | IN PRKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 52 of file power.c.
Referenced by USBPORT_StartDevice().
Definition at line 612 of file power.c.
Referenced by USBPORT_PdoInternalDeviceControl().
NTSTATUS NTAPI USBPORT_Initialize20Hub | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_DEVICE_HANDLE | HubDeviceHandle, | ||
IN ULONG | TtCount | ||
) |
Definition at line 2012 of file device.c.
Referenced by USBHI_Initialize20Hub().
NTSTATUS NTAPI USBPORT_InitializeDevice | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PDEVICE_OBJECT | FdoDevice | ||
) |
Definition at line 1316 of file device.c.
Referenced by USBHI_InitializeUsbDevice().
USBD_STATUS NTAPI USBPORT_InitializeIsoTransfer | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN struct _URB_ISOCH_TRANSFER * | Urb, | ||
IN PUSBPORT_TRANSFER | Transfer | ||
) |
Definition at line 143 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 20 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 266 of file queue.c.
Referenced by USBPORT_FlushPendingTransfers(), and USBPORT_QueuePendingTransferIrp().
Definition at line 1077 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 635 of file usbport.c.
Referenced by USBPORT_FdoPnP(), and USBPORT_InvalidateController().
VOID NTAPI USBPORT_InvalidateEndpointHandler | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint, | ||
IN ULONG | Type | ||
) |
Definition at line 1317 of file endpoint.c.
Referenced by USBPORT_AbortEndpoint(), USBPORT_CancelActiveTransferIrp(), USBPORT_DmaEndpointWorker(), USBPORT_FlushDoneTransfers(), USBPORT_FlushPendingTransfers(), USBPORT_InvalidateEndpoint(), USBPORT_InvalidateRootHub(), USBPORT_IsrDpcHandler(), USBPORT_MapTransfer(), and USBPORT_SetEndpointState().
Definition at line 917 of file roothub.c.
Referenced by USBPORT_RegisterUSBPortDriver().
VOID NTAPI USBPORT_IsrDpc | ( | IN PRKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 1031 of file usbport.c.
Referenced by USBPORT_StartDevice().
ULONG NTAPI USBPORT_LogEntry | ( | IN PVOID | MiniPortExtension, |
IN ULONG | DriverTag, | ||
IN ULONG | EnumTag, | ||
IN ULONG | P1, | ||
IN ULONG | P2, | ||
IN ULONG | P3 | ||
) |
Definition at line 60 of file debug.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 555 of file usbport.c.
Referenced by USBPORT_ResumeController(), and USBPORT_StartDevice().
VOID NTAPI USBPORT_NukeAllEndpoints | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 300 of file endpoint.c.
Referenced by USBPORT_ResumeController().
NTSTATUS NTAPI USBPORT_OpenPipe | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, | ||
IN PUSBPORT_PIPE_HANDLE | PipeHandle, | ||
IN PUSBD_STATUS | UsbdStatus | ||
) |
NTSTATUS NTAPI USBPORT_PdoDeviceControl | ( | PDEVICE_OBJECT | PdoDevice, |
PIRP | Irp | ||
) |
Definition at line 317 of file ioctl.c.
Referenced by USBPORT_Dispatch().
Definition at line 1517 of file pnp.c.
Referenced by USBPORT_Dispatch().
Definition at line 322 of file power.c.
Referenced by USBPORT_Dispatch().
NTSTATUS NTAPI USBPORT_PdoQueryInterface | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PDEVICE_OBJECT | PdoDevice, | ||
IN PIRP | Irp | ||
) |
Definition at line 782 of file iface.c.
Referenced by USBPORT_PdoPnP().
Definition at line 169 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 46 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 988 of file queue.c.
Referenced by USBPORT_FlushPendingTransfers().
BOOLEAN NTAPI USBPORT_QueueDoneTransfer | ( | IN PUSBPORT_TRANSFER | Transfer, |
IN USBD_STATUS | USBDStatus | ||
) |
Definition at line 839 of file usbport.c.
Referenced by USBPORT_MapTransfer(), USBPORT_MiniportCompleteTransfer(), and USBPORT_RootHubEndpointWorker().
Definition at line 1085 of file queue.c.
Referenced by USBPORT_HandleDataTransfers(), USBPORT_HandleGetConfiguration(), USBPORT_HandleGetSetDescriptor(), USBPORT_HandleGetStatus(), USBPORT_HandleSetOrClearFeature(), USBPORT_HandleVendorOrClass(), and USBPORT_SendSetupPacket().
Definition at line 230 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 107 of file queue.c.
Referenced by USBPORT_StartDevice().
Definition at line 357 of file queue.c.
Referenced by USBPORT_DoneTransfer(), and USBPORT_FlushCancelList().
NTSTATUS NTAPI USBPORT_RemoveDevice | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN OUT PUSBPORT_DEVICE_HANDLE | DeviceHandle, | ||
IN ULONG | Flags | ||
) |
Definition at line 1584 of file device.c.
Referenced by USBHI_RemoveUsbDevice().
VOID NTAPI USBPORT_RemoveDeviceHandle | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_DEVICE_HANDLE | DeviceHandle | ||
) |
Definition at line 784 of file device.c.
Referenced by USBPORT_RemoveDevice(), and USBPORT_RestoreDevice().
Definition at line 369 of file queue.c.
Referenced by USBPORT_CancelPendingTransferIrp(), and USBPORT_FlushPendingTransfers().
VOID NTAPI USBPORT_RemovePipeHandle | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PUSBPORT_PIPE_HANDLE | PipeHandle | ||
) |
Definition at line 456 of file endpoint.c.
Referenced by USBPORT_ClosePipe(), and USBPORT_RestoreDevice().
VOID NTAPI USBPORT_RemoveUSBxFdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 98 of file usbport.c.
NTSTATUS NTAPI USBPORT_ReopenPipe | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint | ||
) |
Definition at line 1165 of file endpoint.c.
Referenced by USBPORT_InitializeDevice().
NTSTATUS NTAPI USBPORT_RestoreDevice | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN OUT PUSBPORT_DEVICE_HANDLE | OldDeviceHandle, | ||
IN OUT PUSBPORT_DEVICE_HANDLE | NewDeviceHandle | ||
) |
Definition at line 1701 of file device.c.
Referenced by USBHI_RestoreUsbDevice().
NTSTATUS NTAPI USBPORT_RootHubCreateDevice | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PDEVICE_OBJECT | PdoDevice | ||
) |
Definition at line 747 of file roothub.c.
Referenced by USBPORT_PdoPnP().
VOID NTAPI USBPORT_RootHubEndpointWorker | ( | PUSBPORT_ENDPOINT | Endpoint | ) |
VOID NTAPI USBPORT_RootHubPowerAndChirpAllCcPorts | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 963 of file roothub.c.
Referenced by USBPORT_SynchronizeRootHubCallback().
NTSTATUS NTAPI USBPORT_SendSetupPacket | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PDEVICE_OBJECT | FdoDevice, | ||
IN PUSB_DEFAULT_PIPE_SETUP_PACKET | SetupPacket, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length, | ||
IN OUT PULONG | TransferedLen, | ||
IN OUT PUSBD_STATUS | pUSBDStatus | ||
) |
Definition at line 15 of file device.c.
Referenced by USBPORT_ClearStall(), USBPORT_CreateDevice(), USBPORT_GetUsbDescriptor(), USBPORT_HandleSelectConfiguration(), USBPORT_InitializeDevice(), USBPORT_OpenInterface(), and USBPORT_RestoreDevice().
Definition at line 363 of file endpoint.c.
Referenced by USBPORT_ClosePipe(), USBPORT_DmaEndpointWorker(), USBPORT_OpenPipe(), and USBPORT_SyncResetPipeAndClearStall().
NTSTATUS NTAPI USBPORT_SetRegistryKeyValue | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN BOOL | UseDriverKey, | ||
IN ULONG | Type, | ||
IN PCWSTR | ValueNameString, | ||
IN PVOID | Data, | ||
IN ULONG | DataSize | ||
) |
Definition at line 248 of file usbport.c.
Referenced by USBHI_ControllerSelectiveSuspend(), USBPORT_RegisterDeviceInterface(), and USBPORT_StartDevice().
VOID NTAPI USBPORT_SignalWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1111 of file usbport.c.
Referenced by USBPORT_ClosePipe(), USBPORT_DpcHandler(), USBPORT_InvalidateEndpointHandler(), USBPORT_StopWorkerThread(), USBPORT_SynchronizeControllersStart(), USBPORT_SynchronizeRootHubCallback(), and USBPORT_WorkerThreadHandler().
VOID NTAPI USBPORT_SplitTransfer | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_ENDPOINT | Endpoint, | ||
IN PUSBPORT_TRANSFER | Transfer, | ||
IN PLIST_ENTRY | List | ||
) |
Definition at line 232 of file trfsplit.c.
Referenced by USBPORT_MapTransfer().
Definition at line 1675 of file usbport.c.
Referenced by USBPORT_StartDevice().
VOID NTAPI USBPORT_StopWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1455 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 30 of file debug.c.
Referenced by USBPORT_RegisterUSBPortDriver().
VOID NTAPI USBPORT_TransferFlushDpc | ( | IN PRKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 825 of file usbport.c.
Referenced by USBPORT_StartDevice().
VOID NTAPI USBPORT_UpdateAllocatedBwTt | ( | IN PUSB2_TT_EXTENSION | TtExtension | ) |
Definition at line 1768 of file usb2.c.
Referenced by USBPORT_AllocateBandwidthUSB2(), USBPORT_ClosePipe(), USBPORT_FreeBandwidthUSB2(), USBPORT_InitializeTT(), and USBPORT_RemoveDevice().
Definition at line 485 of file usbport.c.
Referenced by USBPORT_AbortPipe(), USBPORT_ClearStall(), USBPORT_CompleteTransfer(), USBPORT_DoneTransfer(), USBPORT_FlushAbortList(), USBPORT_HandleGetCurrentFrame(), USBPORT_HandleGetStatus(), USBPORT_HandleSelectConfiguration(), USBPORT_HandleSelectInterface(), USBPORT_HandleSubmitURB(), USBPORT_OpenInterface(), USBPORT_OpenPipe(), USBPORT_ResetPipe(), USBPORT_RestoreDevice(), USBPORT_SendSetupPacket(), USBPORT_SyncResetPipeAndClearStall(), and USBPORT_ValidateURB().
BOOLEAN NTAPI USBPORT_ValidateDeviceHandle | ( | IN PDEVICE_OBJECT | FdoDevice, |
IN PUSBPORT_DEVICE_HANDLE | DeviceHandle | ||
) |
Definition at line 801 of file device.c.
Referenced by USBPORT_CreateDevice(), USBPORT_HandleSubmitURB(), USBPORT_RemoveDevice(), and USBPORT_RestoreDevice().
BOOLEAN NTAPI USBPORT_ValidatePipeHandle | ( | IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, |
IN PUSBPORT_PIPE_HANDLE | PipeHandle | ||
) |
Definition at line 469 of file endpoint.c.
Referenced by USBPORT_AbortPipe(), USBPORT_ClearStall(), USBPORT_ResetPipe(), USBPORT_SyncResetPipeAndClearStall(), and USBPORT_ValidateURB().
Definition at line 543 of file usbport.c.
Referenced by USBPORT_AbortTransfers(), USBPORT_ClosePipe(), USBPORT_FlushController(), USBPORT_InitializeDevice(), USBPORT_OpenPipe(), USBPORT_PdoDevicePowerState(), USBPORT_RegisterUSBPortDriver(), USBPORT_RemoveDevice(), USBPORT_ReopenPipe(), USBPORT_RestoreDevice(), USBPORT_ResumeController(), USBPORT_RootHubPowerAndChirpAllCcPorts(), USBPORT_SuspendController(), USBPORT_SynchronizeRootHubCallback(), and USBPORT_SyncResetPipeAndClearStall().
VOID NTAPI USBPORT_WorkerRequestDpc | ( | IN PRKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 701 of file usbport.c.
Referenced by USBPORT_StartDevice().
|
extern |
Definition at line 18 of file usbport.c.
Referenced by USBPORT_FindMiniPort(), and USBPORT_RegisterUSBPortDriver().
|
extern |
Definition at line 22 of file usbport.c.
Referenced by USBPORT_AddUSB1Fdo(), USBPORT_AddUSB2Fdo(), USBPORT_FindCompanionControllers(), USBPORT_FindMiniPort(), USBPORT_FindUSB2Controller(), USBPORT_RegisterUSBPortDriver(), and USBPORT_RemoveUSBxFdo().