diff options
| author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2025-11-19 17:23:57 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-21 16:52:59 +0300 |
| commit | 86dcf43be869fe683923f577ddc3d04ec37ff581 (patch) | |
| tree | 2e2a2b567301ff2907853e8262cc3c8f4fe0795e /scripts/stackusage | |
| parent | fad902d6709e349babe8fc79550552512facac30 (diff) | |
| download | linux-86dcf43be869fe683923f577ddc3d04ec37ff581.tar.xz | |
xhci: simplify and rework trb_in_td()
The trb_in_td() checking is quite complex, especially when checking for
TRBs in ranges that can span several segments.
Simplify the search by creating a position index for each TRB on the
ring, and just compare the position indexes.
Add a more generic dma_in_range() helper that checks if a trb dma
address is in the range between a start and end trb and call it from
trb_in_td()
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20251119142417.2820519-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
