Lines Matching refs:trb
36 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
39 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
41 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb()
57 union xhci_trb *trb) in last_trb_on_last_seg() argument
60 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
63 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
185 struct xhci_generic_trb *trb; in queue_trb() local
188 trb = &ring->enqueue->generic; in queue_trb()
191 trb->field[i] = cpu_to_le32(trb_fields[i]); in queue_trb()
193 xhci_flush_cache((uintptr_t)trb, sizeof(struct xhci_generic_trb)); in queue_trb()
197 return trb; in queue_trb()