diff options
| author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2025-11-19 17:23:56 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-21 16:52:59 +0300 |
| commit | fad902d6709e349babe8fc79550552512facac30 (patch) | |
| tree | 22259c5fd8c47e0ca99db7dd7876a2a1d8000f3e /tools/perf/scripts/python | |
| parent | 8d34983720155b8f05de765f0183d9b0e1345cc0 (diff) | |
| download | linux-fad902d6709e349babe8fc79550552512facac30.tar.xz | |
xhci: Add helper to find trb from its dma address
Add a xhci_dma_to_trb() helper, and use it to find the transfer TRB
early in handle_tx_event() based on the dma address found in the
event TRB.
With this helper we can avoid using 'ep_seg' transfer TRB segment
variable as both a a boolean to indicate if the transfer TRB is part
of the next queued TD, and to actually find the transfer TRB based
on ep_seg and ep_trb_dma.
This is a first step in reworking and cleaning up trb_in_td() and
handle_tx_event()
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20251119142417.2820519-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
