/Linux-v4.19/drivers/usb/dwc3/ |
D | gadget.c | 184 if (req->trb) in dwc3_gadget_del_and_unmap_request() 188 req->trb = NULL; in dwc3_gadget_del_and_unmap_request() 425 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 427 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 669 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local 674 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 675 trb_dma = dwc3_trb_dma_offset(dep, trb); in __dwc3_gadget_ep_enable() 905 static void __dwc3_prepare_one_trb(struct dwc3_ep *dep, struct dwc3_trb *trb, in __dwc3_prepare_one_trb() argument 915 trb->size = DWC3_TRB_SIZE_LENGTH(length); in __dwc3_prepare_one_trb() 916 trb->bpl = lower_32_bits(dma); in __dwc3_prepare_one_trb() [all …]
|
D | trace.h | 217 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), 218 TP_ARGS(dep, trb), 221 __field(struct dwc3_trb *, trb) 232 __entry->trb = trb; 233 __entry->bpl = trb->bpl; 234 __entry->bph = trb->bph; 235 __entry->size = trb->size; 236 __entry->ctrl = trb->ctrl; 240 __get_str(name), __entry->trb, __entry->bph, __entry->bpl, 272 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), [all …]
|
D | ep0.c | 37 struct dwc3_trb *trb; in dwc3_ep0_prepare_one_trb() local 41 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb() 46 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 47 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 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() 60 trace_dwc3_prepare_trb(dep, trb); in dwc3_ep0_prepare_one_trb() [all …]
|
D | debugfs.c | 656 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show() local 657 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl); in dwc3_trb_ring_show() 660 trb->bph, trb->bpl, trb->size, in dwc3_trb_ring_show() 662 !!(trb->ctrl & DWC3_TRB_CTRL_IOC), in dwc3_trb_ring_show() 663 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI), in dwc3_trb_ring_show() 664 !!(trb->ctrl & DWC3_TRB_CTRL_CSP), in dwc3_trb_ring_show() 665 !!(trb->ctrl & DWC3_TRB_CTRL_CHN), in dwc3_trb_ring_show() 666 !!(trb->ctrl & DWC3_TRB_CTRL_LST), in dwc3_trb_ring_show() 667 !!(trb->ctrl & DWC3_TRB_CTRL_HWO), in dwc3_trb_ring_show()
|
D | core.h | 867 struct dwc3_trb *trb; member
|
/Linux-v4.19/drivers/usb/host/ |
D | xhci-trace.h | 117 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 118 TP_ARGS(ring, trb), 128 __entry->field0 = le32_to_cpu(trb->field[0]); 129 __entry->field1 = le32_to_cpu(trb->field[1]); 130 __entry->field2 = le32_to_cpu(trb->field[2]); 131 __entry->field3 = le32_to_cpu(trb->field[3]); 140 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 141 TP_ARGS(ring, trb) 145 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 146 TP_ARGS(ring, trb) [all …]
|
D | xhci-dbgcap.c | 145 req->trb = NULL; in xhci_dbc_giveback() 165 union xhci_trb *trb = req->trb; in xhci_dbc_flush_single_request() local 167 trb->generic.field[0] = 0; in xhci_dbc_flush_single_request() 168 trb->generic.field[1] = 0; in xhci_dbc_flush_single_request() 169 trb->generic.field[2] = 0; in xhci_dbc_flush_single_request() 170 trb->generic.field[3] &= cpu_to_le32(TRB_CYCLE); in xhci_dbc_flush_single_request() 171 trb->generic.field[3] |= cpu_to_le32(TRB_TYPE(TRB_TR_NOOP)); in xhci_dbc_flush_single_request() 221 union xhci_trb *trb, *next; in xhci_dbc_queue_trb() local 223 trb = ring->enqueue; in xhci_dbc_queue_trb() 224 trb->generic.field[0] = cpu_to_le32(field1); in xhci_dbc_queue_trb() [all …]
|
D | xhci-ring.c | 67 union xhci_trb *trb) in xhci_trb_virt_to_dma() argument 71 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 74 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 77 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma() 80 static bool trb_is_noop(union xhci_trb *trb) in trb_is_noop() argument 82 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in trb_is_noop() 85 static bool trb_is_link(union xhci_trb *trb) in trb_is_link() argument 87 return TRB_TYPE_LINK_LE32(trb->link.control); in trb_is_link() 90 static bool last_trb_on_seg(struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_seg() argument 92 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg() [all …]
|
D | xhci-debugfs.c | 199 union xhci_trb *trb; in xhci_ring_dump_segment() local 202 trb = &seg->trbs[i]; in xhci_ring_dump_segment() 203 dma = seg->dma + i * sizeof(*trb); in xhci_ring_dump_segment() 205 xhci_decode_trb(trb->generic.field[0], in xhci_ring_dump_segment() 206 trb->generic.field[1], in xhci_ring_dump_segment() 207 trb->generic.field[2], in xhci_ring_dump_segment() 208 trb->generic.field[3])); in xhci_ring_dump_segment()
|
D | xhci-dbgcap.h | 100 union xhci_trb *trb; member
|
D | xhci.h | 2051 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
|
/Linux-v4.19/drivers/usb/gadget/udc/ |
D | mv_u3d_core.c | 273 struct mv_u3d_trb *trb; in mv_u3d_build_trb_one() local 283 trb = kzalloc(sizeof(*trb), GFP_ATOMIC); in mv_u3d_build_trb_one() 284 if (!trb) in mv_u3d_build_trb_one() 294 kfree(trb); in mv_u3d_build_trb_one() 299 trb->trb_dma = *dma; in mv_u3d_build_trb_one() 300 trb->trb_hw = trb_hw; in mv_u3d_build_trb_one() 330 return trb; in mv_u3d_build_trb_one() 334 struct mv_u3d_trb *trb, int *is_last) in mv_u3d_build_trb_chain() argument 346 trb->trb_dma = 0; in mv_u3d_build_trb_chain() 351 trb->trb_hw->buf_addr_lo = cpu_to_le32(temp); in mv_u3d_build_trb_chain() [all …]
|
/Linux-v4.19/drivers/usb/early/ |
D | xhci-dbc.c | 391 struct xdbc_trb *trb, *link_trb; in xdbc_queue_trb() local 393 trb = ring->enqueue; in xdbc_queue_trb() 394 trb->field[0] = cpu_to_le32(field1); in xdbc_queue_trb() 395 trb->field[1] = cpu_to_le32(field2); in xdbc_queue_trb() 396 trb->field[2] = cpu_to_le32(field3); in xdbc_queue_trb() 397 trb->field[3] = cpu_to_le32(field4); in xdbc_queue_trb() 466 struct xdbc_trb *trb; in xdbc_bulk_transfer() local 486 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()
|
/Linux-v4.19/Documentation/driver-api/usb/ |
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
|