summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2024-11-06 11:14:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-06 13:26:14 +0100
commit4817754a18ef301adac4a13ba79e4f3dc3adbb74 (patch)
tree1af4810d83132a707b5b52341cb6e66534ff473e /drivers/usb/host/xhci.h
parentxhci: Don't trace ring at every enqueue or dequeue increase (diff)
downloadlinux-4817754a18ef301adac4a13ba79e4f3dc3adbb74.tar.xz
linux-4817754a18ef301adac4a13ba79e4f3dc3adbb74.zip
xhci: add stream context tracing
Show stream id, stream context type (SCT), ring dequeue pointer and the DMA address of the stream context during stream allocation Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20241106101459.775897-8-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/usb/host/xhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 7d81645c2c5d..89337562440b 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -554,6 +554,7 @@ struct xhci_stream_ctx {
/* Stream Context Types (section 6.4.1) - bits 3:1 of stream ctx deq ptr */
#define SCT_FOR_CTX(p) (((p) & 0x7) << 1)
+#define CTX_TO_SCT(p) (((p) >> 1) & 0x7)
/* Secondary stream array type, dequeue pointer is to a transfer ring */
#define SCT_SEC_TR 0
/* Primary stream array type, dequeue pointer is to a transfer ring */