/linux/drivers/usb/cdns3/ |
A D | cdns3-debug.h | 114 struct cdns3_trb *trb; in cdns3_dbg_ring() local 121 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring() 126 priv_ep->dequeue, trb, in cdns3_dbg_ring() 127 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring() 129 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring() 132 priv_ep->enqueue, trb, in cdns3_dbg_ring() 149 trb = &ring[i]; in cdns3_dbg_ring() 152 le32_to_cpu(trb->buffer), in cdns3_dbg_ring() 153 le32_to_cpu(trb->length), in cdns3_dbg_ring() 154 le32_to_cpu(trb->control)); in cdns3_dbg_ring() [all …]
|
A D | cdns3-gadget.c | 1013 priv_req->trb = trb; in cdns3_ep_run_stream_transfer() 1151 priv_req->trb = trb; in cdns3_ep_run_transfer() 1265 trb = priv_req->trb; in cdns3_ep_run_transfer() 1297 trb->control = trb->control ^ cpu_to_le32(1); in cdns3_ep_run_transfer() 1559 if (trb != priv_req->trb) in cdns3_transfer_completed() 1562 priv_req->trb, trb); in cdns3_transfer_completed() 2695 trb = priv_req->trb; in __cdns3_gadget_ep_clear_halt() 2696 if (trb) in __cdns3_gadget_ep_clear_halt() 2697 trb->control = trb->control ^ cpu_to_le32(TRB_CYCLE); in __cdns3_gadget_ep_clear_halt() 2711 if (trb) in __cdns3_gadget_ep_clear_halt() [all …]
|
A D | cdnsp-trace.h | 339 TP_ARGS(ring, trb), 356 __entry->trb = (union cdnsp_trb *)trb; 358 (union cdnsp_trb *)trb); 371 TP_ARGS(ring, trb) 376 TP_ARGS(ring, trb) 381 TP_ARGS(ring, trb) 386 TP_ARGS(ring, trb) 391 TP_ARGS(ring, trb) 396 TP_ARGS(ring, trb) 401 TP_ARGS(ring, trb) [all …]
|
A D | cdnsp-ring.c | 72 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() 515 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in cdnsp_td_to_noop() 956 for (sum = 0; trb != stop_trb; cdnsp_next_trb(pdev, ring, &seg, &trb)) { in cdnsp_sum_trb_lengths() [all …]
|
A D | cdns3-trace.h | 390 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb), 391 TP_ARGS(priv_ep, trb), 394 __field(struct cdns3_trb *, trb) 403 __entry->trb = trb; 404 __entry->buffer = le32_to_cpu(trb->buffer); 405 __entry->length = le32_to_cpu(trb->length); 406 __entry->control = le32_to_cpu(trb->control); 411 __get_str(name), __entry->trb, __entry->buffer, 428 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb), 429 TP_ARGS(priv_ep, trb) [all …]
|
A D | cdnsp-gadget.h | 1516 union cdnsp_trb *trb); 1517 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb); 1520 union cdnsp_trb *trb);
|
A D | cdns3-gadget.h | 1232 struct cdns3_trb *trb; member 1340 struct cdns3_trb *trb);
|
/linux/drivers/usb/dwc3/ |
A D | trace.h | 220 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), 221 TP_ARGS(dep, trb), 224 __field(struct dwc3_trb *, trb) 235 __entry->trb = trb; 236 __entry->bpl = trb->bpl; 237 __entry->bph = trb->bph; 238 __entry->size = trb->size; 239 __entry->ctrl = trb->ctrl; 245 __get_str(name), __entry->trb, __entry->enqueue, 282 TP_ARGS(dep, trb) [all …]
|
A D | ep0.c | 37 struct dwc3_trb *trb; in dwc3_ep0_prepare_one_trb() local 48 trb->size = len; in dwc3_ep0_prepare_one_trb() 49 trb->ctrl = type; in dwc3_ep0_prepare_one_trb() 51 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_prepare_one_trb() 55 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_prepare_one_trb() 57 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_prepare_one_trb() 836 struct dwc3_trb *trb; in dwc3_ep0_complete_data() local 847 trb = dwc->ep0_trb; in dwc3_ep0_complete_data() 871 trb++; in dwc3_ep0_complete_data() 894 struct dwc3_trb *trb; in dwc3_ep0_complete_status() local [all …]
|
A D | gadget.c | 187 if (req->trb) in dwc3_gadget_del_and_unmap_request() 191 req->trb = NULL; in dwc3_gadget_del_and_unmap_request() 445 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 899 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local 904 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 1296 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 1312 if (!req->trb) { in dwc3_prepare_one_trb() 1314 req->trb = trb; in dwc3_prepare_one_trb() 1918 if (!req->trb) in dwc3_gadget_ep_skip_trbs() 1932 struct dwc3_trb *trb; in dwc3_gadget_ep_skip_trbs() local [all …]
|
A D | debugfs.c | 806 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show() local 807 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl); in dwc3_trb_ring_show() 810 trb->bph, trb->bpl, trb->size, in dwc3_trb_ring_show() 812 !!(trb->ctrl & DWC3_TRB_CTRL_IOC), in dwc3_trb_ring_show() 813 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI), in dwc3_trb_ring_show() 814 !!(trb->ctrl & DWC3_TRB_CTRL_CSP), in dwc3_trb_ring_show() 815 !!(trb->ctrl & DWC3_TRB_CTRL_CHN), in dwc3_trb_ring_show() 816 !!(trb->ctrl & DWC3_TRB_CTRL_LST), in dwc3_trb_ring_show() 817 !!(trb->ctrl & DWC3_TRB_CTRL_HWO), in dwc3_trb_ring_show()
|
A D | core.h | 932 struct dwc3_trb *trb; member
|
/linux/drivers/usb/host/ |
A D | xhci-trace.h | 116 TP_ARGS(ring, trb), 127 __entry->field0 = le32_to_cpu(trb->field[0]); 128 __entry->field1 = le32_to_cpu(trb->field[1]); 129 __entry->field2 = le32_to_cpu(trb->field[2]); 140 TP_ARGS(ring, trb) 145 TP_ARGS(ring, trb) 150 TP_ARGS(ring, trb) 155 TP_ARGS(ring, trb) 160 TP_ARGS(ring, trb) 165 TP_ARGS(ring, trb) [all …]
|
A D | xhci-dbgcap.c | 143 req->trb = NULL; in xhci_dbc_giveback() 163 union xhci_trb *trb = req->trb; in xhci_dbc_flush_single_request() local 165 trb->generic.field[0] = 0; in xhci_dbc_flush_single_request() 166 trb->generic.field[1] = 0; in xhci_dbc_flush_single_request() 167 trb->generic.field[2] = 0; in xhci_dbc_flush_single_request() 226 union xhci_trb *trb, *next; in xhci_dbc_queue_trb() local 228 trb = ring->enqueue; in xhci_dbc_queue_trb() 249 union xhci_trb *trb; in xhci_dbc_queue_bulk_tx() local 261 trb = ring->enqueue; in xhci_dbc_queue_bulk_tx() 271 req->trb = ring->enqueue; in xhci_dbc_queue_bulk_tx() [all …]
|
A D | xhci-ring.c | 70 union xhci_trb *trb) in xhci_trb_virt_to_dma() argument 74 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 125 if (trb_is_link(trb)) { in trb_to_noop() 129 trb->generic.field[0] = 0; in trb_to_noop() 145 union xhci_trb **trb) in next_trb() argument 147 if (trb_is_link(*trb)) { in next_trb() 149 *trb = ((*seg)->trbs); in next_trb() 151 (*trb)++; in next_trb() 733 if (flip_cycle && trb != td->first_trb && trb != td->last_trb) in td_to_noop() 2294 for (sum = 0; trb != stop_trb; next_trb(xhci, ring, &seg, &trb)) { in sum_trb_lengths() [all …]
|
A D | xhci-debugfs.c | 200 union xhci_trb *trb; in xhci_ring_dump_segment() local 204 trb = &seg->trbs[i]; in xhci_ring_dump_segment() 205 dma = seg->dma + i * sizeof(*trb); in xhci_ring_dump_segment() 207 xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]), in xhci_ring_dump_segment() 208 le32_to_cpu(trb->generic.field[1]), in xhci_ring_dump_segment() 209 le32_to_cpu(trb->generic.field[2]), in xhci_ring_dump_segment() 210 le32_to_cpu(trb->generic.field[3]))); in xhci_ring_dump_segment()
|
A D | xhci-dbgcap.h | 157 union xhci_trb *trb; member
|
A D | xhci.h | 2117 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
|
/linux/drivers/usb/gadget/udc/ |
A D | tegra-xudc.c | 374 trb_read_data_lo(trb); in trb_read_data_ptr() 624 type, trb, trb->data_lo, trb->data_hi, trb->status, in dump_trb() 625 trb->control); in dump_trb() 912 return trb; in trb_phys_to_virt() 1183 req->last_trb = trb; in tegra_xudc_queue_trbs() 1339 memset(trb, 0, sizeof(*trb)); in squeeze_transfer_ring() 1341 trb++; in squeeze_transfer_ring() 1377 if (trb >= req->first_trb && (trb <= req->last_trb || in trb_in_request() 1381 if (trb < req->first_trb && trb <= req->last_trb && in trb_in_request() 1401 if (trb < req->first_trb && (enq_trb <= trb || in trb_before_request() [all …]
|
A D | mv_u3d_core.c | 282 trb = kzalloc(sizeof(*trb), GFP_ATOMIC); in mv_u3d_build_trb_one() 283 if (!trb) in mv_u3d_build_trb_one() 293 kfree(trb); in mv_u3d_build_trb_one() 298 trb->trb_dma = *dma; in mv_u3d_build_trb_one() 299 trb->trb_hw = trb_hw; in mv_u3d_build_trb_one() 329 return trb; in mv_u3d_build_trb_one() 345 trb->trb_dma = 0; in mv_u3d_build_trb_chain() 429 trb = kcalloc(trb_num, sizeof(*trb), GFP_ATOMIC); in mv_u3d_req_to_trb() 430 if (!trb) in mv_u3d_req_to_trb() 435 kfree(trb); in mv_u3d_req_to_trb() [all …]
|
/linux/drivers/usb/early/ |
A D | xhci-dbc.c | 392 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() 516 trb->field[3] |= cpu_to_le32(cycle); in xdbc_bulk_transfer() 518 trb->field[3] &= cpu_to_le32(~TRB_CYCLE); in xdbc_bulk_transfer()
|
/linux/Documentation/driver-api/usb/ |
A D | dwc3.rst | 50 5. Up to 256 TRBs [#trb]_ per endpoint 85 According to Synopsys Databook, all OUT transfer TRBs [#trb]_ must 103 We, currently, have a hard limit of 256 TRBs [#trb]_ per endpoint, 631 TP_printk("%s: %d/%d trb %p buf %08x%08x size %s%d ctrl %08x (%c%c%c%c:%c%c:%s)", 633 __entry->trb, __entry->bph, __entry->bpl, 703 .. [#trb] Transfer Request Block
|