Searched refs:trb (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/drivers/usb/cdns3/
H A Dcdns3-debug.h113 struct cdns3_trb *trb; local
120 trb = &priv_ep->trb_pool[priv_ep->dequeue];
124 "\n\t\tRing deq index: %d, trb: %p (virt), 0x%llx (dma)\n",
125 priv_ep->dequeue, trb,
126 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb));
128 trb = &priv_ep->trb_pool[priv_ep->enqueue];
130 "\t\tRing enq index: %d, trb: %p (virt), 0x%llx (dma)\n",
131 priv_ep->enqueue, trb,
132 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb));
145 trb
[all...]
H A Dcdns3-gadget.c188 struct cdns3_trb *trb)
190 u32 offset = (char *)trb - (char *)priv_ep->trb_pool;
246 * The last trb has zeroed cycle bit
302 * cdns3_ep_inc_trb - increment a trb index.
957 struct cdns3_trb *trb)
969 priv_ep->wa1_trb = trb;
996 struct cdns3_trb *trb; local
1016 trb = priv_ep->trb_pool + priv_ep->enqueue;
1019 priv_req->trb = trb;
187 cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) argument
956 cdns3_wa1_update_guard(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) argument
1121 struct cdns3_trb *trb; local
1489 struct cdns3_trb *trb; local
1553 struct cdns3_trb *trb; local
2787 struct cdns3_trb *trb = NULL; local
[all...]
H A Dcdnsp-trace.h209 TP_printk("DMA: suspect event: %pad, trb-start: %pad, trb-end %pad, "
337 TP_PROTO(struct cdnsp_ring *ring, struct cdnsp_generic_trb *trb),
338 TP_ARGS(ring, trb),
345 __field(union cdnsp_trb *, trb)
350 __entry->field0 = le32_to_cpu(trb->field[0]);
351 __entry->field1 = le32_to_cpu(trb->field[1]);
352 __entry->field2 = le32_to_cpu(trb->field[2]);
353 __entry->field3 = le32_to_cpu(trb->field[3]);
354 __entry->trb
[all...]
H A Dcdns3-trace.h232 " trb: [start:%d, end:%d], flags:%x SID: %u",
386 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb),
387 TP_ARGS(priv_ep, trb),
390 __field(struct cdns3_trb *, trb)
399 __entry->trb = trb;
400 __entry->buffer = le32_to_cpu(trb->buffer);
401 __entry->length = le32_to_cpu(trb->length);
402 __entry->control = le32_to_cpu(trb->control);
406 TP_printk("%s: trb
[all...]
H A Dcdnsp-ring.c72 union cdnsp_trb *trb)
74 unsigned long segment_offset = trb - seg->trbs;
76 if (trb < seg->trbs || segment_offset >= TRBS_PER_SEGMENT)
79 return seg->dma + (segment_offset * sizeof(*trb));
82 static bool cdnsp_trb_is_noop(union cdnsp_trb *trb) argument
84 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]);
87 static bool cdnsp_trb_is_link(union cdnsp_trb *trb) argument
89 return TRB_TYPE_LINK_LE32(trb->link.control);
92 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb) argument
94 return trb
71 cdnsp_trb_virt_to_dma(struct cdnsp_segment *seg, union cdnsp_trb *trb) argument
97 cdnsp_last_trb_on_ring(struct cdnsp_ring *ring, struct cdnsp_segment *seg, union cdnsp_trb *trb) argument
104 cdnsp_link_trb_toggles_cycle(union cdnsp_trb *trb) argument
109 cdnsp_trb_to_noop(union cdnsp_trb *trb, u32 noop_type) argument
129 cdnsp_next_trb(struct cdnsp_device *pdev, struct cdnsp_ring *ring, struct cdnsp_segment **seg, union cdnsp_trb **trb) argument
509 union cdnsp_trb *trb = td->first_trb; local
953 union cdnsp_trb *trb = ring->dequeue; local
1606 struct cdnsp_generic_trb *trb; local
[all...]
H A Dcdnsp-gadget.h930 * cmd_trb: Pointer to command TRB, or the value passed by the event data trb
1514 union cdnsp_trb *trb);
1515 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb);
1518 union cdnsp_trb *trb);
H A Dcdns3-gadget.h1133 * @trb_burst_size: number of burst used in trb.
1222 * @trb: the first TRB association with this request
1229 * @finished_trb: number of trb has already finished per request
1235 struct cdns3_trb *trb; member in struct:cdns3_request
1346 struct cdns3_trb *trb);
/linux-master/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-debug.h103 struct cdns2_trb *trb; local
110 trb = &trbs[ring->dequeue];
111 dma = cdns2_trb_virt_to_dma(pep, trb);
113 "\n\t\tRing deq index: %d, trb: V=%p, P=0x%pad\n",
114 ring->dequeue, trb, &dma);
116 trb = &trbs[ring->enqueue];
117 dma = cdns2_trb_virt_to_dma(pep, trb);
119 "\t\tRing enq index: %d, trb: V=%p, P=0x%pad\n",
120 ring->enqueue, trb, &dma);
134 trb
[all...]
H A Dcdns2-gadget.c100 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; local
99 cdns2_trb_virt_to_dma(struct cdns2_endpoint *pep, struct cdns2_trb *trb) argument
227 cdns2_next_trb(struct cdns2_endpoint *pep, struct cdns2_trb *trb) argument
280 cdns2_wa1_update_guard(struct cdns2_endpoint *pep, struct cdns2_trb *trb) argument
504 struct cdns2_trb *trb; local
620 struct cdns2_trb *trb; local
714 struct cdns2_trb *trb; local
883 struct cdns2_trb *trb; local
953 struct cdns2_trb *trb; local
976 struct cdns2_trb *trb; local
1840 struct cdns2_trb *trb = NULL; local
[all...]
H A Dcdns2-trace.h310 "trb: [start: %d, end: %d]",
403 TP_PROTO(struct cdns2_endpoint *pep, struct cdns2_trb *trb),
404 TP_ARGS(pep, trb),
407 __field(struct cdns2_trb *, trb)
415 __entry->trb = trb;
416 __entry->buffer = le32_to_cpu(trb->buffer);
417 __entry->length = le32_to_cpu(trb->length);
418 __entry->control = le32_to_cpu(trb->control);
421 TP_printk("%s: trb
[all...]
H A Dcdns2-gadget.h582 * @trb: the first TRB association with this request.
586 * @finished_trb: number of trb has already finished per request.
592 struct cdns2_trb *trb; member in struct:cdns2_request
683 struct cdns2_trb *trb);
/linux-master/drivers/usb/dwc3/
H A Dtrace.h218 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb),
219 TP_ARGS(dep, trb),
222 __field(struct dwc3_trb *, trb)
233 __entry->trb = trb;
234 __entry->bpl = trb->bpl;
235 __entry->bph = trb->bph;
236 __entry->size = trb->size;
237 __entry->ctrl = trb->ctrl;
242 TP_printk("%s: trb
[all...]
H A Dep0.c39 struct dwc3_trb *trb; local
43 trb = &dwc->ep0_trb[dep->trb_enqueue];
48 trb->bpl = lower_32_bits(buf_dma);
49 trb->bph = upper_32_bits(buf_dma);
50 trb->size = len;
51 trb->ctrl = type;
53 trb->ctrl |= (DWC3_TRB_CTRL_HWO
57 trb->ctrl |= DWC3_TRB_CTRL_CHN;
59 trb->ctrl |= (DWC3_TRB_CTRL_IOC
62 trace_dwc3_prepare_trb(dep, trb);
863 struct dwc3_trb *trb; local
921 struct dwc3_trb *trb; local
[all...]
H A Dgadget.c161 * dwc3_ep_inc_trb - increment a trb index.
206 if (req->trb)
210 req->trb = NULL;
482 struct dwc3_trb *trb)
484 u32 offset = (char *) trb - (char *) dep->trb_pool;
500 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n",
916 struct dwc3_trb *trb; local
921 trb = &dep->trb_pool[0];
922 trb_dma = dwc3_trb_dma_offset(dep, trb);
1217 struct dwc3_trb *trb; local
481 dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) argument
2022 struct dwc3_trb *trb; local
2148 struct dwc3_trb *trb; local
3352 dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep, struct dwc3_request *req, struct dwc3_trb *trb, const struct dwc3_event_depevt *event, int status, int chain) argument
3424 struct dwc3_trb *trb; local
3450 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue]; local
3493 struct dwc3_trb *trb; local
[all...]
H A Ddebugfs.c910 struct dwc3_trb *trb = &dep->trb_pool[i]; local
911 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl);
914 trb->bph, trb->bpl, trb->size,
916 !!(trb->ctrl & DWC3_TRB_CTRL_IOC),
917 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI),
918 !!(trb->ctrl & DWC3_TRB_CTRL_CSP),
919 !!(trb->ctrl & DWC3_TRB_CTRL_CHN),
920 !!(trb
[all...]
H A Dcore.h935 * @trb: pointer to struct dwc3_trb
936 * @trb_dma: DMA address of @trb
964 struct dwc3_trb *trb; member in struct:dwc3_request
985 * @ep0_trb: trb which is used for the ctrl_req
/linux-master/drivers/usb/host/
H A Dxhci-trace.h111 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb),
112 TP_ARGS(ring, trb),
122 __entry->field0 = le32_to_cpu(trb->field[0]);
123 __entry->field1 = le32_to_cpu(trb->field[1]);
124 __entry->field2 = le32_to_cpu(trb->field[2]);
125 __entry->field3 = le32_to_cpu(trb->field[3]);
134 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb),
135 TP_ARGS(ring, trb)
139 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb),
140 TP_ARGS(ring, trb)
[all...]
H A Dxhci-dbgcap.c158 req->trb = NULL;
178 union xhci_trb *trb = req->trb; local
180 trb->generic.field[0] = 0;
181 trb->generic.field[1] = 0;
182 trb->generic.field[2] = 0;
183 trb->generic.field[3] &= cpu_to_le32(TRB_CYCLE);
184 trb->generic.field[3] |= cpu_to_le32(TRB_TYPE(TRB_TR_NOOP));
241 union xhci_trb *trb, *next; local
243 trb
264 union xhci_trb *trb; local
466 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; local
[all...]
H A Dxhci-ring.c70 union xhci_trb *trb)
74 if (!seg || !trb || trb < seg->trbs)
77 segment_offset = trb - seg->trbs;
80 return seg->dma + (segment_offset * sizeof(*trb));
83 static bool trb_is_noop(union xhci_trb *trb) argument
85 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]);
88 static bool trb_is_link(union xhci_trb *trb) argument
90 return TRB_TYPE_LINK_LE32(trb->link.control);
93 static bool last_trb_on_seg(struct xhci_segment *seg, union xhci_trb *trb) argument
69 xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb) argument
98 last_trb_on_ring(struct xhci_ring *ring, struct xhci_segment *seg, union xhci_trb *trb) argument
104 link_trb_toggles_cycle(union xhci_trb *trb) argument
129 trb_to_noop(union xhci_trb *trb, u32 noop_type) argument
148 next_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment **seg, union xhci_trb **trb) argument
772 union xhci_trb *trb = td->first_trb; local
1104 xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 comp_code) argument
1343 xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) argument
1452 xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) argument
2263 union xhci_trb *trb = ring->dequeue; local
3198 struct xhci_generic_trb *trb; local
[all...]
H A Dxhci-debugfs.c201 union xhci_trb *trb; local
205 trb = &seg->trbs[i];
206 dma = seg->dma + i * sizeof(*trb);
208 xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]),
209 le32_to_cpu(trb->generic.field[1]),
210 le32_to_cpu(trb->generic.field[2]),
211 le32_to_cpu(trb->generic.field[3])));
494 seq_printf(s, "Show stream ID %d trb ring, supported [1 - %d]\n",
581 /* Show trb ring of stream ID 1 by default */
H A Dxhci-dbgcap.h165 union xhci_trb *trb; member in struct:dbc_request
/linux-master/drivers/usb/gadget/udc/
H A Dtegra-xudc.c336 static inline u32 trb_read_##name(struct tegra_xudc_trb *trb) \
338 return (le32_to_cpu(trb->member) >> (shift)) & (mask); \
341 trb_write_##name(struct tegra_xudc_trb *trb, u32 val) \
345 tmp = le32_to_cpu(trb->member) & ~((mask) << (shift)); \
347 trb->member = cpu_to_le32(tmp); \
369 static inline u64 trb_read_data_ptr(struct tegra_xudc_trb *trb) argument
371 return ((u64)trb_read_data_hi(trb) << 32) |
372 trb_read_data_lo(trb);
375 static inline void trb_write_data_ptr(struct tegra_xudc_trb *trb, u64 addr) argument
377 trb_write_data_lo(trb, lower_32_bit
617 dump_trb(struct tegra_xudc *xudc, const char *type, struct tegra_xudc_trb *trb) argument
895 trb_virt_to_phys(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) argument
911 struct tegra_xudc_trb *trb; local
1079 tegra_xudc_queue_one_trb(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb, bool ioc) argument
1185 struct tegra_xudc_trb *trb = &ep->transfer_ring[ep->enq_ptr]; local
1338 struct tegra_xudc_trb *trb = req->first_trb; local
1379 trb_in_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) argument
1401 trb_before_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) argument
1700 setup_link_trb(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) argument
2635 trb_to_request(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) argument
2655 struct tegra_xudc_trb *trb; local
2706 struct tegra_xudc_trb *trb; local
[all...]
H A Dmv_u3d_core.c190 /* Free trb for the request */
236 dev_err(u3d->dev, "add trb to non-empty queue!\n");
243 /* Configure the trb address and set the DCS bit.
244 * Both DCS bit and own bit in trb should be set.
272 struct mv_u3d_trb *trb; local
282 trb = kzalloc(sizeof(*trb), GFP_ATOMIC);
283 if (!trb)
293 kfree(trb);
298 trb
332 mv_u3d_build_trb_chain(struct mv_u3d_req *req, unsigned *length, struct mv_u3d_trb *trb, int *is_last) argument
403 struct mv_u3d_trb *trb; local
[all...]
/linux-master/drivers/usb/early/
H A Dxhci-dbc.c392 struct xdbc_trb *trb, *link_trb; local
394 trb = ring->enqueue;
395 trb->field[0] = cpu_to_le32(field1);
396 trb->field[1] = cpu_to_le32(field2);
397 trb->field[2] = cpu_to_le32(field3);
398 trb->field[3] = cpu_to_le32(field4);
467 struct xdbc_trb *trb; local
487 trb = ring->enqueue;
510 * Add a barrier between writes of trb fields and flipping
515 trb
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmac.c1928 u32 trb; local
1937 trb = mt76_rr(dev, MT_TRB_RXPSR0(phy->mt76->band_idx));
1939 if ((FIELD_GET(MT_TRB_RXPSR0_RX_RMAC_PTR, trb) !=
1940 FIELD_GET(MT_TRB_RXPSR0_RX_WTBL_PTR, trb)) &&
1943 trb == phy->trb_ts)
1947 phy->trb_ts = trb;

Completed in 263 milliseconds

12