Lines Matching refs:trb

100 				 struct cdns2_trb *trb)
102 u32 offset = (char *)trb - (char *)pep->ring.trbs;
170 * Increment a trb index.
228 struct cdns2_trb *trb)
230 if (trb == (pep->ring.trbs + (TRBS_PER_SEGMENT - 1)))
233 return ++trb;
281 struct cdns2_trb *trb)
293 pep->wa1_trb = trb;
367 struct cdns2_trb *trb = preq->trb;
372 trace_cdns2_queue_trb(pep, trb + i);
373 if (trb + i == link_trb) {
374 trb = pep->ring.trbs;
402 * One extra link trb for IN direction.
464 * Let's assume that driver prepares trb with trb->length 700 and burst size
504 struct cdns2_trb *trb;
586 trb = pep->ring.trbs + pep->ring.enqueue;
587 trb->buffer = cpu_to_le32(TRB_BUFFER(trb_dma));
588 trb->length = cpu_to_le32(length);
589 trb->control = cpu_to_le32(control);
620 struct cdns2_trb *trb;
639 trb = pep->ring.trbs + ring->enqueue;
651 trb->buffer = cpu_to_le32(pep->ring.dma +
653 trb->length = 0;
654 trb->control = cpu_to_le32(control);
672 trb->buffer = cpu_to_le32(trb_dma);
673 trb->length = cpu_to_le32(TRB_BURST(pep->trb_burst_size) |
675 trb->control = cpu_to_le32(control);
714 struct cdns2_trb *trb;
735 trb = &pep->ring.trbs[TRBS_PER_SEGMENT];
736 trb->length = 0;
737 trb->buffer = cpu_to_le32(TRB_BUFFER(buffer));
738 trb->control = cpu_to_le32((hw_ccs ? TRB_CYCLE : 0) | TRB_TYPE(TRB_NORMAL));
744 trb++;
745 trb->length = 0;
746 trb->buffer = cpu_to_le32(TRB_BUFFER(buffer));
747 trb->control = cpu_to_le32((hw_ccs ? TRB_CYCLE : 0) |
751 trb->control |= cpu_to_le32(TRB_TOGGLE);
784 preq->trb = ring->trbs + ring->enqueue;
802 preq->trb->control = preq->trb->control ^ cpu_to_le32(1);
843 * Check whether trb has been handled by DMA.
883 struct cdns2_trb *trb;
900 /* Current trb doesn't belong to this request. */
916 trb = &ring->trbs[ring->dequeue];
918 if ((le32_to_cpu(trb->control) & TRB_CYCLE) != ring->ccs)
953 struct cdns2_trb *trb;
956 trb = pep->ring.trbs + pep->ring.dequeue;
960 trace_cdns2_complete_trb(pep, trb);
962 trb = cdns2_next_trb(pep, trb);
976 struct cdns2_trb *trb;
980 trb = pep->ring.trbs + pep->ring.dequeue;
986 while (TRB_FIELD_TO_TYPE(le32_to_cpu(trb->control)) == TRB_LINK &&
987 le32_to_cpu(trb->length)) {
988 trace_cdns2_complete_trb(pep, trb);
990 trb = pep->ring.trbs + pep->ring.dequeue;
1005 trb = pep->ring.trbs + pep->ring.dequeue;
1006 trace_cdns2_complete_trb(pep, trb);
1011 * trb->length.
1016 TRB_LEN(le32_to_cpu(trb->length));
1783 link_trb = preq->trb;
1807 if (pep->wa1_trb == preq->trb)
1840 struct cdns2_trb *trb = NULL;
1846 trb = preq->trb;
1847 if (trb) {
1848 trb_tmp = *trb;
1849 trb->control = trb->control ^ cpu_to_le32(TRB_CYCLE);
1865 if (trb)
1866 *trb = trb_tmp;