|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Functions | |
| WDF_DECLARE_CONTEXT_TYPE_WITH_NAME (XhciTransferRing, XhciRingContext) | |
| static ULONG NTAPI | XhciRingCountList (_In_ const LIST_ENTRY *Head) |
| static VOID NTAPI | XhciRingAppendList (_Inout_ PLIST_ENTRY To, _Inout_ PLIST_ENTRY From) |
| static VOID NTAPI | XhciRingPrependList (_Inout_ PLIST_ENTRY To, _Inout_ PLIST_ENTRY From) |
| static VOID NTAPI | XhciRingQueueCleanup (_In_ WDFOBJECT Object) |
| static VOID NTAPI | XhciRingGrowthWorkItem (_In_ WDFWORKITEM WorkItem) |
| static WDF_IO_FORWARD_PROGRESS_ACTION NTAPI | XhciRingExamineForwardProgress (_In_ WDFQUEUE Queue, _In_ PIRP Irp) |
| _IRQL_requires_ (PASSIVE_LEVEL) NTSTATUS XhciTransferRing | |
| Sends a synchronous IOCTL to the specified device object. | |
| _IRQL_requires_max_ (DISPATCH_LEVEL) NTSTATUS XhciTransferRing | |
Variables | |
| static const ULONG | XhciRingSegmentBytes = 0x200 |
| static const ULONG | XhciRingWideSegmentBytes = 0x1000 |
| static const ULONG | XhciRingDoubleBufferBytes = 0x200 |
| static const ULONG | XhciRingSingleSegmentStage = (XhciRingSegmentBytes / sizeof(XHCI_TRB) - 4) * PAGE_SIZE |
| static const ULONG | XhciRingIdleWaitMs = 5000 |
| static const ULONG | XhciRingIdleWaitUs = 100000 |
| static const USBD_STATUS | XhciRingUsbdNotSet = (USBD_STATUS)0xFFFFFFFF |
| static EVT_WDF_OBJECT_CONTEXT_CLEANUP | XhciRingQueueCleanup |
| static EVT_WDF_WORKITEM | XhciRingGrowthWorkItem |
| static EVT_WDF_IO_WDM_IRP_FOR_FORWARD_PROGRESS | XhciRingExamineForwardProgress |
| static KSPIN_LOCK | XhciLiveRingLock |
| static LIST_ENTRY | XhciLiveRings = { &XhciLiveRings, &XhciLiveRings } |
| #define NDEBUG |
Definition at line 10 of file xferring.cpp.
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) |
Sends a synchronous IOCTL to the specified device object.
| [in] | IoControlCode | The IOCTL to send to the device. |
| [in] | DeviceObject | Pointer to the device object that will handle the IOCTL. |
| [in] | InputBuffer | Optional pointer to a buffer containing input data for the IOCTL. When specified, the buffer should be at least of InputBufferLength size. |
| [in] | InputBufferLength | Size in bytes, of the buffer pointed by InputBuffer. |
| [out] | OutputBuffer | Optional pointer to a buffer that will receive output data from the IOCTL. When specified, the buffer should be at least of OutputBufferLength size. |
| [in] | OutputBufferLength | Size in bytes, of the buffer pointed by OutputBuffer. |
| [in] | FileObject | Optional pointer to a file object that may be necessary for the IOCTL. |
Nothing is found unless the PCI bus driver publishes the properties.
The root hub name without its prefix; NULL when the PDO has no name.
Grows a private buffer to what the helper asks for.
Lets KMDF handle the IRP, then hands it back here still uncompleted.
Waits for the device machine to answer a PnP or power event; returns the PnP status.
Deletes the UCX endpoints of the disabled pipes, then the interface record.
One 4 byte value; the registry type is not checked.
Reread whenever user experience settings change; the open status is returned.
Sends a synchronous IOCTL to the specified device object.
STATUS_SUCCESS when the caller's token is an administrator's.
Sends a synchronous IOCTL to the specified device object.
Reads one value of a walk. A missing value only clears Present; FALSE means stop.
Reads up to Size bytes of a value into a zeroed buffer; the type is not checked.
Writes a REG_BINARY value into the device's usbflags subkey.
Sets or clears ExtPropertiesInstalled from ExtPropDescSemaphore in the hardware key.
Fails only when a port cannot be bound to the USB4 host router its ACPI node names.
Assigns device, hardware, compatible, container and instance ids to a new child PDO.
Answers IRP_MN_QUERY_DEVICE_TEXT on a child PDO; always completes the IRP.
Takes the connector map lock, needed around HubConnectorFindCompanion.
Device hardware key values read at PDO prepare hardware.
Saves the MS OS 2.0 set info in usbflags when the set asks for alternate enumeration.
MsOs20Flags and EnumerationRetryCount, written at PDO start.
Rereads the UXD record; UpdateRequired says whether the device id changes.
Replacement PnP id of a UXD reserved device, or an empty String. Always succeeds.
Telemetry values under the device's Ceip subkey.
BootPathSurpriseRemovalCount + 1.
This machine's dual role features for a dual role partner.
Tells UCX the WDM PDO of the device; call right after the child PDO was created.
IOCTL_INTERNAL_USB_GET_CONTROLLER_NAME: Argument1 and its length Argument2.
IOCTL_INTERNAL_USB_GET_BUS_INFO for the device: the 16 byte USB_BUS_NOTIFICATION at Argument1.
Registers the GUID_USB_WMI_NODE_INFO instance of a child PDO (not for hubs or composites).
Registers the boot device surprise removal event on an external, non hub boot PDO.
Fires the boot device surprise removal event, if one is registered.
Sends a synchronous IOCTL to the specified device object.
Publishes "<port>#<host>" for every bound port on the hub's PDO. QUIRK: with no bound port an older value is left in place.
Binds USB 3 ports to the host routers named by the USB4 DVSEC; an earlier ACPI mapping wins.
Waits on a PnP handshake event with no timeout, printing a watchdog line every minute so a stuck machine is visible in the debugger.
Copies up to Size bytes of a device property; a failed query leaves the field zero.
Only the controller name length is real; both bandwidth fields read 0.
The answer overlays a USB_HUB_NAME on TotalSize, so TotalSize comes back as the name length + 4.
Evaluates a method without arguments into Output.
Drops every MSI descriptor and keeps only lists that still offer a line interrupt.
Picks the list with the best MSI offer: MSI-X first, then the most messages.
Keeps message descriptors covering Wanted messages and removes the others.
Evaluates _DSM on the controller ACPI object with a buffer as Arg3; returns up to 8 result bytes, 0 on failure.
Definition at line 122 of file xferring.cpp.
| _IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION; the idle machine owns the IRP afterwards.
Records hub over current in the hub hardware key, once per devnode.
First selective suspend of the device; the registry write runs in a work item.
"USB device not recognized" popup for a port.
A hub was attached beyond the allowed tier depth.
The selected configuration draws more power than the port can give.
The controller ran out of bandwidth for the device; fired by the out of bandwidth timer.
Definition at line 458 of file xferring.cpp.
| WDF_DECLARE_CONTEXT_TYPE_WITH_NAME | ( | XhciTransferRing | , |
| XhciRingContext | |||
| ) |
|
static |
Moves every entry of From to the tail of To, keeping their order.
Definition at line 60 of file xferring.cpp.
Referenced by XhciTransferRing::Cleanup(), XhciTransferRing::EnsureFreeSegments(), and XhciTransferRing::ReturnSegments().
|
static |
Definition at line 44 of file xferring.cpp.
Referenced by XhciTransferRing::Cleanup(), XhciTransferRing::EnsureFreeSegments(), and XhciTransferRing::TakeSegments().
|
static |
Definition at line 103 of file xferring.cpp.
Definition at line 92 of file xferring.cpp.
|
static |
Moves every entry of From to the head of To, keeping their order.
Definition at line 72 of file xferring.cpp.
Referenced by XhciTransferRing::ReturnSegments(), and XhciTransferRing::TakeSegments().
Definition at line 83 of file xferring.cpp.
|
static |
Definition at line 38 of file xferring.cpp.
Referenced by XhciTransferRing::MakeLive(), XhciTransferRing::ReferenceLiveRing(), and XhciTransferRing::RetireLive().
|
static |
Definition at line 39 of file xferring.cpp.
Referenced by XhciTransferRing::MakeLive(), and XhciTransferRing::ReferenceLiveRing().
Definition at line 16 of file xferring.cpp.
Referenced by _IRQL_requires_().
|
static |
Definition at line 32 of file xferring.cpp.
|
static |
Definition at line 31 of file xferring.cpp.
Referenced by _IRQL_requires_().
Definition at line 22 of file xferring.cpp.
Definition at line 23 of file xferring.cpp.
|
static |
Definition at line 30 of file xferring.cpp.
Referenced by _IRQL_requires_().
Definition at line 14 of file xferring.cpp.
Referenced by _IRQL_requires_().
|
static |
Largest bulk stage when a TD may not cross a Link TRB: one segment less a few TRBs, one page each.
Definition at line 19 of file xferring.cpp.
Referenced by _IRQL_requires_().
|
static |
USBD status meaning "no hardware result", for the caller to replace with its default.
Definition at line 26 of file xferring.cpp.
Referenced by XhciTransferRing::UsbdStatusFromCompletionCode().
Definition at line 15 of file xferring.cpp.
Referenced by _IRQL_requires_().