Lines Matching refs:trb

77 		union xhci_trb *trb)  in xhci_trb_virt_to_dma()  argument
81 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
84 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
87 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()
94 struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_last_seg() argument
97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
100 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
108 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
111 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
113 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb()
129 union xhci_trb **trb) in next_trb() argument
131 if (last_trb(xhci, ring, *seg, *trb)) { in next_trb()
133 *trb = ((*seg)->trbs); in next_trb()
135 (*trb)++; in next_trb()
637 union xhci_trb *trb, struct xhci_event_cmd *event) in xhci_handle_cmd_stop_ep() argument
648 if (unlikely(TRB_TO_SUSPEND_PORT(le32_to_cpu(trb->generic.field[3])))) { in xhci_handle_cmd_stop_ep()
657 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
954 union xhci_trb *trb, u32 cmd_comp_code) in xhci_handle_cmd_set_deq() argument
964 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
965 stream_id = TRB_TO_STREAM_ID(le32_to_cpu(trb->generic.field[2])); in xhci_handle_cmd_set_deq()
1048 union xhci_trb *trb, u32 cmd_comp_code) in xhci_handle_cmd_reset_ep() argument
1052 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
2751 struct xhci_generic_trb *trb; in queue_trb() local
2753 trb = &ring->enqueue->generic; in queue_trb()
2754 trb->field[0] = cpu_to_le32(field1); in queue_trb()
2755 trb->field[1] = cpu_to_le32(field2); in queue_trb()
2756 trb->field[2] = cpu_to_le32(field3); in queue_trb()
2757 trb->field[3] = cpu_to_le32(field4); in queue_trb()