• Home
  • Raw
  • Download

Lines Matching refs:trb

80 		union xhci_trb *trb)  in xhci_trb_virt_to_dma()  argument
84 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
87 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
90 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()
97 struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_last_seg() argument
100 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
103 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
111 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
114 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
116 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb()
142 union xhci_trb **trb) in next_trb() argument
144 if (last_trb(xhci, ring, *seg, *trb)) { in next_trb()
146 *trb = ((*seg)->trbs); in next_trb()
148 (*trb)++; in next_trb()
468 union xhci_trb *trb, int *cycle_state) in find_trb_seg() argument
473 while (cur_seg->trbs > trb || in find_trb_seg()
474 &cur_seg->trbs[TRBS_PER_SEGMENT - 1] < trb) { in find_trb_seg()
555 struct xhci_generic_trb *trb; in xhci_find_new_dequeue_state() local
592 trb = &state->new_deq_ptr->generic; in xhci_find_new_dequeue_state()
593 if (TRB_TYPE_LINK_LE32(trb->field[3]) && in xhci_find_new_dequeue_state()
594 (trb->field[3] & cpu_to_le32(LINK_TOGGLE))) in xhci_find_new_dequeue_state()
758 union xhci_trb *trb, struct xhci_event_cmd *event) in handle_stopped_endpoint() argument
787 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(trb->generic.field[3])); in handle_stopped_endpoint()
788 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in handle_stopped_endpoint()
1065 union xhci_trb *trb) in handle_set_deq_completion() argument
1075 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(trb->generic.field[3])); in handle_set_deq_completion()
1076 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in handle_set_deq_completion()
1077 stream_id = TRB_TO_STREAM_ID(le32_to_cpu(trb->generic.field[2])); in handle_set_deq_completion()
1157 union xhci_trb *trb) in handle_reset_ep_completion() argument
1162 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(trb->generic.field[3])); in handle_reset_ep_completion()
1163 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in handle_reset_ep_completion()
2736 union xhci_trb *trb; in xhci_irq() local
2742 trb = xhci->event_ring->dequeue; in xhci_irq()
2838 struct xhci_generic_trb *trb; in queue_trb() local
2840 trb = &ring->enqueue->generic; in queue_trb()
2841 trb->field[0] = cpu_to_le32(field1); in queue_trb()
2842 trb->field[1] = cpu_to_le32(field2); in queue_trb()
2843 trb->field[2] = cpu_to_le32(field3); in queue_trb()
2844 trb->field[3] = cpu_to_le32(field4); in queue_trb()