| /OK3568_Linux_fs/kernel/drivers/usb/cdns3/ |
| H A D | 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() 133 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, 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() [all …]
|
| H A D | gadget.c | 186 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() argument 188 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 952 struct cdns3_trb *trb) in cdns3_wa1_update_guard() argument 964 priv_ep->wa1_trb = trb; in cdns3_wa1_update_guard() 991 struct cdns3_trb *trb; in cdns3_ep_run_stream_transfer() local 1011 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_stream_transfer() 1014 priv_req->trb = trb; in cdns3_ep_run_stream_transfer() 1022 trb->buffer = cpu_to_le32(TRB_BUFFER(trb_dma)); in cdns3_ep_run_stream_transfer() 1025 trb->buffer = cpu_to_le32(TRB_BUFFER(request->sg[sg_idx].dma_address)); in cdns3_ep_run_stream_transfer() 1031 trb->length = cpu_to_le32(TRB_BURST_LEN(16) | TRB_LEN(length)); in cdns3_ep_run_stream_transfer() [all …]
|
| H A D | trace.h | 233 __entry->start_trb_addr = req->trb; 393 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb), 394 TP_ARGS(priv_ep, trb), 397 __field(struct cdns3_trb *, trb) 406 __entry->trb = trb; 407 __entry->buffer = le32_to_cpu(trb->buffer); 408 __entry->length = le32_to_cpu(trb->length); 409 __entry->control = le32_to_cpu(trb->control); 414 __get_str(name), __entry->trb, __entry->buffer, 431 TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb), [all …]
|
| H A D | gadget.h | 1230 struct cdns3_trb *trb; member 1337 struct cdns3_trb *trb);
|
| /OK3568_Linux_fs/u-boot/drivers/usb/cdns3/ |
| H A D | debug.h | 115 struct cdns3_trb *trb; in cdns3_dbg_ring() local 122 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring() 127 priv_ep->dequeue, trb, in cdns3_dbg_ring() 128 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring() 130 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring() 133 priv_ep->enqueue, trb, in cdns3_dbg_ring() 134 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring() 150 trb = &ring[i]; in cdns3_dbg_ring() 153 le32_to_cpu(trb->buffer), in cdns3_dbg_ring() 154 le32_to_cpu(trb->length), in cdns3_dbg_ring() [all …]
|
| H A D | gadget.c | 160 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() argument 162 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 775 struct cdns3_trb *trb) in cdns3_wa1_update_guard() argument 787 priv_ep->wa1_trb = trb; in cdns3_wa1_update_guard() 820 struct cdns3_trb *trb; in cdns3_ep_run_transfer() local 845 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_transfer() 847 priv_req->trb = trb; in cdns3_ep_run_transfer() 885 togle_pcs = cdns3_wa1_update_guard(priv_ep, trb); in cdns3_ep_run_transfer() 896 trb->buffer = TRB_BUFFER(trb_dma); in cdns3_ep_run_transfer() 904 trb->length = TRB_BURST_LEN(priv_ep->trb_burst_size) | in cdns3_ep_run_transfer() [all …]
|
| H A D | gadget.h | 1201 struct cdns3_trb *trb; member 1305 struct cdns3_trb *trb);
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc3/ |
| H A D | trace.h | 218 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), 219 TP_ARGS(dep, trb), 222 __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, 281 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), [all …]
|
| H A 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 …]
|
| H 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() 464 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 466 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 1058 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local 1063 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 1064 trb_dma = dwc3_trb_dma_offset(dep, trb); in __dwc3_gadget_ep_enable() 1359 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 1376 trb = &dep->trb_pool[dep->trb_enqueue]; in dwc3_prepare_one_trb() 1378 if (!req->trb) { in dwc3_prepare_one_trb() [all …]
|
| H A D | debugfs.c | 810 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show() local 811 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl); in dwc3_trb_ring_show() 814 trb->bph, trb->bpl, trb->size, in dwc3_trb_ring_show() 816 !!(trb->ctrl & DWC3_TRB_CTRL_IOC), in dwc3_trb_ring_show() 817 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI), in dwc3_trb_ring_show() 818 !!(trb->ctrl & DWC3_TRB_CTRL_CSP), in dwc3_trb_ring_show() 819 !!(trb->ctrl & DWC3_TRB_CTRL_CHN), in dwc3_trb_ring_show() 820 !!(trb->ctrl & DWC3_TRB_CTRL_LST), in dwc3_trb_ring_show() 821 !!(trb->ctrl & DWC3_TRB_CTRL_HWO), in dwc3_trb_ring_show()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/ |
| H A D | ep0.c | 54 struct dwc3_trb *trb; in dwc3_ep0_start_trans() local 65 trb = &dwc->ep0_trb[dep->free_slot]; in dwc3_ep0_start_trans() 70 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_start_trans() 71 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_start_trans() 72 trb->size = len; in dwc3_ep0_start_trans() 73 trb->ctrl = type; in dwc3_ep0_start_trans() 75 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_start_trans() 79 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_start_trans() 81 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_start_trans() 85 dwc3_flush_cache((uintptr_t)trb, sizeof(*trb)); in dwc3_ep0_start_trans() [all …]
|
| H A D | gadget.c | 245 req->trb = NULL; in dwc3_gadget_giveback() 326 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 328 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 705 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 713 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb() 715 if (!req->trb) { in dwc3_prepare_one_trb() 717 req->trb = trb; in dwc3_prepare_one_trb() 718 req->trb_dma = dwc3_trb_dma_offset(dep, trb); in dwc3_prepare_one_trb() 738 trb->size = DWC3_TRB_SIZE_LENGTH(length); in dwc3_prepare_one_trb() 739 trb->bpl = lower_32_bits(dma); in dwc3_prepare_one_trb() [all …]
|
| H A D | core.h | 620 struct dwc3_trb *trb; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | xhci-trace.h | 115 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 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]); 130 __entry->field3 = le32_to_cpu(trb->field[3]); 139 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 140 TP_ARGS(ring, trb) 144 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 145 TP_ARGS(ring, trb) [all …]
|
| H 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() 168 trb->generic.field[3] &= cpu_to_le32(TRB_CYCLE); in xhci_dbc_flush_single_request() 169 trb->generic.field[3] |= cpu_to_le32(TRB_TYPE(TRB_TR_NOOP)); 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() 229 trb->generic.field[0] = cpu_to_le32(field1); in xhci_dbc_queue_trb() [all …]
|
| H 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() 77 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 80 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma() 84 static bool trb_is_noop(union xhci_trb *trb) in trb_is_noop() argument 86 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in trb_is_noop() 89 static bool trb_is_link(union xhci_trb *trb) in trb_is_link() argument 91 return TRB_TYPE_LINK_LE32(trb->link.control); in trb_is_link() 94 static bool last_trb_on_seg(struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_seg() argument 96 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg() [all …]
|
| H 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()
|
| H A D | xhci-dbgcap.h | 157 union xhci_trb *trb; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 337 static inline u32 trb_read_##name(struct tegra_xudc_trb *trb) \ 339 return (le32_to_cpu(trb->member) >> (shift)) & (mask); \ 342 trb_write_##name(struct tegra_xudc_trb *trb, u32 val) \ 346 tmp = le32_to_cpu(trb->member) & ~((mask) << (shift)); \ 348 trb->member = cpu_to_le32(tmp); \ 370 static inline u64 trb_read_data_ptr(struct tegra_xudc_trb *trb) in trb_read_data_ptr() argument 372 return ((u64)trb_read_data_hi(trb) << 32) | in trb_read_data_ptr() 373 trb_read_data_lo(trb); in trb_read_data_ptr() 376 static inline void trb_write_data_ptr(struct tegra_xudc_trb *trb, u64 addr) in trb_write_data_ptr() argument 378 trb_write_data_lo(trb, lower_32_bits(addr)); in trb_write_data_ptr() [all …]
|
| H A D | mv_u3d_core.c | 272 struct mv_u3d_trb *trb; in mv_u3d_build_trb_one() local 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() 333 struct mv_u3d_trb *trb, int *is_last) in mv_u3d_build_trb_chain() argument 345 trb->trb_dma = 0; in mv_u3d_build_trb_chain() 350 trb->trb_hw->buf_addr_lo = cpu_to_le32(temp); in mv_u3d_build_trb_chain() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | xhci-ring.c | 37 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument 40 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb() 42 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb() 58 union xhci_trb *trb) in last_trb_on_last_seg() argument 61 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg() 64 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg() 186 struct xhci_generic_trb *trb; in queue_trb() local 189 trb = &ring->enqueue->generic; in queue_trb() 192 trb->field[i] = cpu_to_le32(trb_fields[i]); in queue_trb() 194 xhci_flush_cache((uintptr_t)trb, sizeof(struct xhci_generic_trb)); in queue_trb() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/early/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/usb/ |
| H 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
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | 0006_let_dma_memory_read_write_function_take_MemTxAttrs_argument.patch | 1317 @@ -679,7 +679,8 @@ static TRBType xhci_ring_fetch(XHCIState *xhci, XHCIRing *ring, XHCITRB *trb, 1321 - dma_memory_read(xhci->as, ring->dequeue, trb, TRB_SIZE); 1322 + dma_memory_read(xhci->as, ring->dequeue, trb, TRB_SIZE, 1324 trb->addr = ring->dequeue; 1325 trb->ccs = ring->ccs; 1326 le64_to_cpus(&trb->parameter); 1331 - dma_memory_read(xhci->as, dequeue, &trb, TRB_SIZE); 1332 + dma_memory_read(xhci->as, dequeue, &trb, TRB_SIZE, 1334 le64_to_cpus(&trb.parameter); 1335 le32_to_cpus(&trb.status); [all …]
|