• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/host/

Lines Matching defs:trb

80 		union xhci_trb *trb)
84 if (!seg || !trb || trb < seg->trbs)
87 segment_offset = trb - seg->trbs;
90 return seg->dma + (segment_offset * sizeof(*trb));
97 struct xhci_segment *seg, union xhci_trb *trb)
100 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) &&
103 return trb->link.control & LINK_TOGGLE;
111 struct xhci_segment *seg, union xhci_trb *trb)
114 return trb == &seg->trbs[TRBS_PER_SEGMENT];
116 return (trb->link.control & TRB_TYPE_BITMASK) == TRB_TYPE(TRB_LINK);
125 /* Updates trb to point to the next TRB in the ring, and updates seg if the next
132 union xhci_trb **trb)
134 if (last_trb(xhci, ring, *seg, *trb)) {
136 *trb = ((*seg)->trbs);
138 (*trb)++;
380 * Find the segment that trb is in. Start searching in start_seg.
386 union xhci_trb *trb, int *cycle_state)
391 while (cur_seg->trbs > trb ||
392 &cur_seg->trbs[TRBS_PER_SEGMENT - 1] < trb) {
471 struct xhci_generic_trb *trb;
503 trb = &state->new_deq_ptr->generic;
504 if ((trb->field[3] & TRB_TYPE_BITMASK) == TRB_TYPE(TRB_LINK) &&
505 (trb->field[3] & LINK_TOGGLE))
640 union xhci_trb *trb)
653 slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]);
654 ep_index = TRB_TO_EP_INDEX(trb->generic.field[3]);
878 union xhci_trb *trb)
888 slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]);
889 ep_index = TRB_TO_EP_INDEX(trb->generic.field[3]);
890 stream_id = TRB_TO_STREAM_ID(trb->generic.field[2]);
952 union xhci_trb *trb)
957 slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]);
958 ep_index = TRB_TO_EP_INDEX(trb->generic.field[3]);
2025 union xhci_trb *trb;
2031 trb = xhci->event_ring->dequeue;
2045 xhci_trb_virt_to_dma(xhci->event_ring->deq_seg, trb),
2046 lower_32_bits(trb->link.segment_ptr),
2047 upper_32_bits(trb->link.segment_ptr),
2048 (unsigned int) trb->link.intr_target,
2049 (unsigned int) trb->link.control);
2140 struct xhci_generic_trb *trb;
2142 trb = &ring->enqueue->generic;
2143 trb->field[0] = field1;
2144 trb->field[1] = field2;
2145 trb->field[2] = field3;
2146 trb->field[3] = field4;
2184 xhci_dbg(xhci, "prepare_ring: pointing to link trb\n");