Home
last modified time | relevance | path

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

12

/drivers/usb/cdns3/
A Dcdns3-debug.h113 struct cdns3_trb *trb; in cdns3_dbg_ring() local
120 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring()
125 priv_ep->dequeue, trb, in cdns3_dbg_ring()
126 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
128 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
131 priv_ep->enqueue, trb, in cdns3_dbg_ring()
145 trb = &priv_ep->trb_pool[i]; in cdns3_dbg_ring()
148 le32_to_cpu(trb->buffer), in cdns3_dbg_ring()
149 le32_to_cpu(trb->length), in cdns3_dbg_ring()
150 le32_to_cpu(trb->control)); in cdns3_dbg_ring()
[all …]
A Dcdns3-gadget.c1019 priv_req->trb = trb; in cdns3_ep_run_stream_transfer()
1158 priv_req->trb = trb; in cdns3_ep_run_transfer()
1204 priv_req->trb = trb; in cdns3_ep_run_transfer()
1321 trb = priv_req->trb; in cdns3_ep_run_transfer()
1353 trb->control = trb->control ^ cpu_to_le32(1); in cdns3_ep_run_transfer()
1626 if (trb != priv_req->trb) in cdns3_transfer_completed()
1629 priv_req->trb, trb); in cdns3_transfer_completed()
2799 trb = priv_req->trb; in __cdns3_gadget_ep_clear_halt()
2800 if (trb) { in __cdns3_gadget_ep_clear_halt()
2802 trb->control = trb->control ^ cpu_to_le32(TRB_CYCLE); in __cdns3_gadget_ep_clear_halt()
[all …]
A Dcdnsp-trace.h338 TP_ARGS(ring, trb),
354 __entry->trb = (union cdnsp_trb *)trb;
356 (union cdnsp_trb *)trb);
369 TP_ARGS(ring, trb)
374 TP_ARGS(ring, trb)
379 TP_ARGS(ring, trb)
384 TP_ARGS(ring, trb)
389 TP_ARGS(ring, trb)
394 TP_ARGS(ring, trb)
399 TP_ARGS(ring, trb)
[all …]
A Dcdnsp-ring.c72 union cdnsp_trb *trb) in cdnsp_trb_virt_to_dma() argument
99 union cdnsp_trb *trb) in cdnsp_last_trb_on_ring() argument
115 trb->generic.field[0] = 0; in cdnsp_trb_to_noop()
116 trb->generic.field[1] = 0; in cdnsp_trb_to_noop()
117 trb->generic.field[2] = 0; in cdnsp_trb_to_noop()
132 union cdnsp_trb **trb) in cdnsp_next_trb() argument
136 *trb = ((*seg)->trbs); in cdnsp_next_trb()
138 (*trb)++; in cdnsp_next_trb()
516 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in cdnsp_td_to_noop()
961 for (sum = 0; trb != stop_trb; cdnsp_next_trb(pdev, ring, &seg, &trb)) { in cdnsp_sum_trb_lengths()
[all …]
A Dcdns3-trace.h386 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);
407 __get_str(name), __entry->trb, __entry->buffer,
424 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb),
425 TP_ARGS(priv_ep, trb)
[all …]
A Dcdnsp-gadget.h1533 union cdnsp_trb *trb);
1534 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb);
1537 union cdnsp_trb *trb);
A Dcdns3-gadget.h1235 struct cdns3_trb *trb; member
1346 struct cdns3_trb *trb);
/drivers/usb/gadget/udc/cdns2/
A Dcdns2-debug.h103 struct cdns2_trb *trb; in cdns2_raw_ring() local
110 trb = &trbs[ring->dequeue]; in cdns2_raw_ring()
111 dma = cdns2_trb_virt_to_dma(pep, trb); in cdns2_raw_ring()
114 ring->dequeue, trb, &dma); in cdns2_raw_ring()
116 trb = &trbs[ring->enqueue]; in cdns2_raw_ring()
120 ring->enqueue, trb, &dma); in cdns2_raw_ring()
134 trb = &trbs[i]; in cdns2_raw_ring()
137 le32_to_cpu(trb->buffer), in cdns2_raw_ring()
138 le32_to_cpu(trb->length), in cdns2_raw_ring()
139 le32_to_cpu(trb->control)); in cdns2_raw_ring()
[all …]
A Dcdns2-gadget.c234 return ++trb; in cdns2_next_trb()
368 struct cdns2_trb *trb = preq->trb; in cdns2_dbg_request_trbs() local
737 trb->length = 0; in cdns2_prepare_first_isoc_transfer()
745 trb++; in cdns2_prepare_first_isoc_transfer()
746 trb->length = 0; in cdns2_prepare_first_isoc_transfer()
803 preq->trb->control = preq->trb->control ^ cpu_to_le32(1); in cdns2_ep_run_transfer()
963 trb = cdns2_next_trb(pep, trb); in cdns2_skip_isoc_td()
1847 trb = preq->trb; in cdns2_halt_endpoint()
1848 if (trb) { in cdns2_halt_endpoint()
1850 trb->control = trb->control ^ cpu_to_le32(TRB_CYCLE); in cdns2_halt_endpoint()
[all …]
A Dcdns2-trace.h403 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);
422 __get_str(name), __entry->trb, __entry->buffer,
429 TP_PROTO(struct cdns2_endpoint *pep, struct cdns2_trb *trb),
430 TP_ARGS(pep, trb)
[all …]
A Dcdns2-gadget.h601 struct cdns2_trb *trb; member
692 struct cdns2_trb *trb);
/drivers/usb/dwc3/
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;
243 __get_str(name), __entry->trb, __entry->enqueue,
281 TP_ARGS(dep, trb)
[all …]
A Dep0.c39 struct dwc3_trb *trb; in dwc3_ep0_prepare_one_trb() local
50 trb->size = len; in dwc3_ep0_prepare_one_trb()
51 trb->ctrl = type; in dwc3_ep0_prepare_one_trb()
53 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_prepare_one_trb()
57 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_prepare_one_trb()
59 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_prepare_one_trb()
864 struct dwc3_trb *trb; in dwc3_ep0_complete_data() local
875 trb = dwc->ep0_trb; in dwc3_ep0_complete_data()
899 trb++; in dwc3_ep0_complete_data()
922 struct dwc3_trb *trb; in dwc3_ep0_complete_status() local
[all …]
A Dgadget.c205 if (req->trb) in dwc3_gadget_del_and_unmap_request()
209 req->trb = NULL; in dwc3_gadget_del_and_unmap_request()
476 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument
969 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local
1272 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local
1291 if (!req->trb) { in dwc3_prepare_one_trb()
1293 req->trb = trb; in dwc3_prepare_one_trb()
2057 if (!req->trb) in dwc3_gadget_ep_skip_trbs()
2071 struct dwc3_trb *trb; in dwc3_gadget_ep_skip_trbs() local
2197 struct dwc3_trb *trb; in __dwc3_gadget_ep_set_halt() local
[all …]
A Ddebugfs.c910 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show() local
911 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl); in dwc3_trb_ring_show()
914 trb->bph, trb->bpl, trb->size, in dwc3_trb_ring_show()
916 !!(trb->ctrl & DWC3_TRB_CTRL_IOC), in dwc3_trb_ring_show()
917 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI), in dwc3_trb_ring_show()
918 !!(trb->ctrl & DWC3_TRB_CTRL_CSP), in dwc3_trb_ring_show()
919 !!(trb->ctrl & DWC3_TRB_CTRL_CHN), in dwc3_trb_ring_show()
920 !!(trb->ctrl & DWC3_TRB_CTRL_LST), in dwc3_trb_ring_show()
921 !!(trb->ctrl & DWC3_TRB_CTRL_HWO), in dwc3_trb_ring_show()
A Dcore.h978 struct dwc3_trb *trb; member
/drivers/usb/gadget/udc/
A Dtegra-xudc.c372 trb_read_data_lo(trb); in trb_read_data_ptr()
622 type, trb, trb->data_lo, trb->data_hi, trb->status, in dump_trb()
623 trb->control); in dump_trb()
921 return trb; in trb_phys_to_virt()
1192 req->last_trb = trb; in tegra_xudc_queue_trbs()
1348 memset(trb, 0, sizeof(*trb)); in squeeze_transfer_ring()
1350 trb++; in squeeze_transfer_ring()
1386 if (trb >= req->first_trb && (trb <= req->last_trb || in trb_in_request()
1390 if (trb < req->first_trb && trb <= req->last_trb && in trb_in_request()
1410 if (trb < req->first_trb && (enq_trb <= trb || in trb_before_request()
[all …]
/drivers/usb/host/
A Dxhci-trace.h112 TP_ARGS(ring, trb, dma),
124 __entry->field0 = le32_to_cpu(trb->field[0]);
125 __entry->field1 = le32_to_cpu(trb->field[1]);
126 __entry->field2 = le32_to_cpu(trb->field[2]);
138 TP_ARGS(ring, trb, dma)
143 TP_ARGS(ring, trb, dma)
148 TP_ARGS(ring, trb, dma)
153 TP_ARGS(ring, trb, dma)
159 TP_ARGS(ring, trb, dma)
164 TP_ARGS(ring, trb, dma)
[all …]
A Dxhci-dbgcap.c158 req->trb = NULL; in xhci_dbc_giveback()
178 trb->generic.field[0] = 0; in trb_to_noop()
179 trb->generic.field[1] = 0; in trb_to_noop()
180 trb->generic.field[2] = 0; in trb_to_noop()
187 trb_to_noop(req->trb); in xhci_dbc_flush_single_request()
243 union xhci_trb *trb, *next; in xhci_dbc_queue_trb() local
245 trb = ring->enqueue; in xhci_dbc_queue_trb()
267 union xhci_trb *trb; in xhci_dbc_queue_bulk_tx() local
279 trb = ring->enqueue; in xhci_dbc_queue_bulk_tx()
289 req->trb = ring->enqueue; in xhci_dbc_queue_bulk_tx()
[all …]
A Dxhci-ring.c72 union xhci_trb *trb) in xhci_trb_virt_to_dma() argument
76 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
133 if (trb_is_link(trb)) { in trb_to_noop()
151 union xhci_trb **trb) in next_trb() argument
153 if (trb_is_link(*trb) || last_trb_on_seg(*seg, *trb)) { in next_trb()
155 *trb = ((*seg)->trbs); in next_trb()
157 (*trb)++; in next_trb()
809 if (flip_cycle && trb != td->start_trb && trb != td->end_trb) in td_to_noop()
815 next_trb(&seg, &trb); in td_to_noop()
2298 for (sum = 0; trb != stop_trb; next_trb(&seg, &trb)) { in sum_trb_lengths()
[all …]
A Dxhci-debugfs.c201 union xhci_trb *trb; in xhci_ring_dump_segment() local
205 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
206 dma = seg->dma + i * sizeof(*trb); in xhci_ring_dump_segment()
208 xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]), in xhci_ring_dump_segment()
209 le32_to_cpu(trb->generic.field[1]), in xhci_ring_dump_segment()
210 le32_to_cpu(trb->generic.field[2]), in xhci_ring_dump_segment()
211 le32_to_cpu(trb->generic.field[3]))); in xhci_ring_dump_segment()
A Dxhci-dbgcap.h167 union xhci_trb *trb; member
A Dxhci-mem.c98 union xhci_trb *trb; in xhci_set_link_trb() local
104 trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_set_link_trb()
107 val = le32_to_cpu(trb->link.control); in xhci_set_link_trb()
112 trb->link.control = cpu_to_le32(val); in xhci_set_link_trb()
113 trb->link.segment_ptr = cpu_to_le64(seg->next->dma); in xhci_set_link_trb()
/drivers/usb/early/
A Dxhci-dbc.c392 struct xdbc_trb *trb, *link_trb; in xdbc_queue_trb() local
394 trb = ring->enqueue; in xdbc_queue_trb()
395 trb->field[0] = cpu_to_le32(field1); in xdbc_queue_trb()
396 trb->field[1] = cpu_to_le32(field2); in xdbc_queue_trb()
397 trb->field[2] = cpu_to_le32(field3); in xdbc_queue_trb()
398 trb->field[3] = cpu_to_le32(field4); in xdbc_queue_trb()
467 struct xdbc_trb *trb; in xdbc_bulk_transfer() local
487 trb = ring->enqueue; in xdbc_bulk_transfer()
515 trb->field[3] |= cpu_to_le32(cycle); in xdbc_bulk_transfer()
517 trb->field[3] &= cpu_to_le32(~TRB_CYCLE); in xdbc_bulk_transfer()
/drivers/net/wireless/mediatek/mt76/mt7915/
A Dmac.c1941 u32 trb; in mt7915_mac_severe_check() local
1950 trb = mt76_rr(dev, MT_TRB_RXPSR0(phy->mt76->band_idx)); in mt7915_mac_severe_check()
1952 if ((FIELD_GET(MT_TRB_RXPSR0_RX_RMAC_PTR, trb) != in mt7915_mac_severe_check()
1953 FIELD_GET(MT_TRB_RXPSR0_RX_WTBL_PTR, trb)) && in mt7915_mac_severe_check()
1956 trb == phy->trb_ts) in mt7915_mac_severe_check()
1960 phy->trb_ts = trb; in mt7915_mac_severe_check()

Completed in 102 milliseconds

12