/* Check if the Trb is a transaction of the URBs in XHCI's asynchronous transfer list. */
BOOLEAN IsAsyncIntTrb(IN USB_XHCI_INSTANCE *Xhc, IN TRB_TEMPLATE *Trb, OUT URB **Urb)
/* Check if the Trb is a transaction of the URBs in XHCI's asynchronous transfer list. */
BOOLEAN IsAsyncIntTrb(IN USB_XHCI_INSTANCE *Xhc, IN TRB_TEMPLATE *Trb, OUT URB **Urb)
{
  LIST_ENTRY  *Entry;
  LIST_ENTRY  *Next;
  URB         *CheckedUrb;
  BASE_LIST_FOR_EACH_SAFE (Entry, Next, &Xhc->AsyncIntTransfers) {
    CheckedUrb = EFI_LIST_CONTAINER (Entry, URB, UrbList);
    if (IsTransferRingTrb (Xhc, Trb, CheckedUrb)) {
      *Urb = CheckedUrb;
      return TRUE;
    }
  }
  return FALSE;
}