Lines Matching refs:cur_trb
527 union xhci_trb *cur_trb; in td_to_noop() local
529 for (cur_seg = cur_td->start_seg, cur_trb = cur_td->first_trb; in td_to_noop()
531 next_trb(xhci, ep_ring, &cur_seg, &cur_trb)) { in td_to_noop()
532 if ((cur_trb->generic.field[3] & TRB_TYPE_BITMASK) == in td_to_noop()
537 cur_trb->generic.field[3] &= ~TRB_CHAIN; in td_to_noop()
541 cur_trb, in td_to_noop()
542 (unsigned long long)xhci_trb_virt_to_dma(cur_seg, cur_trb), in td_to_noop()
546 cur_trb->generic.field[0] = 0; in td_to_noop()
547 cur_trb->generic.field[1] = 0; in td_to_noop()
548 cur_trb->generic.field[2] = 0; in td_to_noop()
550 cur_trb->generic.field[3] &= TRB_CYCLE; in td_to_noop()
551 cur_trb->generic.field[3] |= TRB_TYPE(TRB_TR_NOOP); in td_to_noop()
554 cur_trb, in td_to_noop()
555 (unsigned long long)xhci_trb_virt_to_dma(cur_seg, cur_trb), in td_to_noop()
559 if (cur_trb == cur_td->last_trb) in td_to_noop()
1705 union xhci_trb *cur_trb; in process_isoc_td() local
1752 for (cur_trb = ep_ring->dequeue, in process_isoc_td()
1753 cur_seg = ep_ring->deq_seg; cur_trb != event_trb; in process_isoc_td()
1754 next_trb(xhci, ep_ring, &cur_seg, &cur_trb)) { in process_isoc_td()
1755 if ((cur_trb->generic.field[3] & in process_isoc_td()
1757 (cur_trb->generic.field[3] & in process_isoc_td()
1760 TRB_LEN(cur_trb->generic.field[2]); in process_isoc_td()
1762 len += TRB_LEN(cur_trb->generic.field[2]) - in process_isoc_td()
1814 union xhci_trb *cur_trb; in process_bulk_intr_td() local
1894 for (cur_trb = ep_ring->dequeue, cur_seg = ep_ring->deq_seg; in process_bulk_intr_td()
1895 cur_trb != event_trb; in process_bulk_intr_td()
1896 next_trb(xhci, ep_ring, &cur_seg, &cur_trb)) { in process_bulk_intr_td()
1897 if ((cur_trb->generic.field[3] & in process_bulk_intr_td()
1899 (cur_trb->generic.field[3] & in process_bulk_intr_td()
1902 TRB_LEN(cur_trb->generic.field[2]); in process_bulk_intr_td()
1909 TRB_LEN(cur_trb->generic.field[2]) - in process_bulk_intr_td()