| /linux/drivers/usb/cdns3/ |
| H A D | cdns3-debug.h | 113 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() 132 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, 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() [all …]
|
| H A D | cdns3-gadget.c | 188 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() argument 190 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 246 * The last trb has zeroed cycle bit in cdns3_allocate_trb_pool() 302 * cdns3_ep_inc_trb - increment a trb index. 957 struct cdns3_trb *trb) in cdns3_wa1_update_guard() argument 969 priv_ep->wa1_trb = trb; in cdns3_wa1_update_guard() 996 struct cdns3_trb *trb; in cdns3_ep_run_stream_transfer() local 1016 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_stream_transfer() 1019 priv_req->trb = trb; in cdns3_ep_run_stream_transfer() 1121 struct cdns3_trb *trb; cdns3_ep_run_transfer() local 1489 struct cdns3_trb *trb; cdns3_trb_handled() local 1553 struct cdns3_trb *trb; cdns3_transfer_completed() local 2792 struct cdns3_trb *trb = NULL; __cdns3_gadget_ep_clear_halt() local [all...] |
| H A D | cdnsp-gadget.h | 1535 union cdnsp_trb *trb); 1536 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb); 1539 union cdnsp_trb *trb);
|
| H A D | cdns3-gadget.h | 1235 struct cdns3_trb *trb; member 1346 struct cdns3_trb *trb);
|
| /linux/drivers/usb/gadget/udc/cdns2/ |
| H A D | cdns2-debug.h | 103 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() 117 dma = cdns2_trb_virt_to_dma(pep, trb); 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() [all …]
|
| H A D | cdns2-gadget.c | 101 struct cdns2_trb *trb) in cdns2_trb_virt_to_dma() argument 103 u32 offset = (char *)trb - (char *)pep->ring.trbs; in cdns2_trb_virt_to_dma() 171 * Increment a trb index. 229 struct cdns2_trb *trb) in cdns2_next_trb() argument 231 if (trb == (pep->ring.trbs + (TRBS_PER_SEGMENT - 1))) in cdns2_next_trb() 234 return ++trb; in cdns2_next_trb() 282 struct cdns2_trb *trb) in cdns2_wa1_update_guard() argument 294 pep->wa1_trb = trb; in cdns2_wa1_update_guard() 368 struct cdns2_trb *trb = preq->trb; in cdns2_dbg_request_trbs() local 505 struct cdns2_trb *trb; cdns2_ep_tx_isoc() local 621 struct cdns2_trb *trb; cdns2_ep_tx_bulk() local 715 struct cdns2_trb *trb; cdns2_prepare_first_isoc_transfer() local 884 struct cdns2_trb *trb; cdns2_trb_handled() local 954 struct cdns2_trb *trb; cdns2_skip_isoc_td() local 977 struct cdns2_trb *trb; cdns2_transfer_completed() local 1841 struct cdns2_trb *trb = NULL; cdns2_halt_endpoint() local [all...] |
| H A D | cdns2-gadget.h | 601 struct cdns2_trb *trb; member 692 struct cdns2_trb *trb);
|
| /linux/drivers/usb/host/ |
| H A D | xhci-trace.h | 101 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb, dma_addr_t dma), 102 TP_ARGS(ring, trb, dma), 114 __entry->field0 = le32_to_cpu(trb->field[0]); 115 __entry->field1 = le32_to_cpu(trb->field[1]); 116 __entry->field2 = le32_to_cpu(trb->field[2]); 117 __entry->field3 = le32_to_cpu(trb->field[3]); 127 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb, dma_addr_t dma), 128 TP_ARGS(ring, trb, dma) 132 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb, dma_addr_t dma), 133 TP_ARGS(ring, trb, dma) [all …]
|
| H A D | xhci-dbgcap.c | 182 req->trb = NULL; in xhci_dbc_giveback() 200 static void trb_to_noop(union xhci_trb *trb) in trb_to_noop() argument 202 trb->generic.field[0] = 0; in trb_to_noop() 203 trb->generic.field[1] = 0; in trb_to_noop() 204 trb->generic.field[2] = 0; in trb_to_noop() 205 trb->generic.field[3] &= cpu_to_le32(TRB_CYCLE); in trb_to_noop() 206 trb->generic.field[3] |= cpu_to_le32(TRB_TYPE(TRB_TR_NOOP)); in trb_to_noop() 211 trb_to_noop(req->trb); in xhci_dbc_flush_single_request() 267 union xhci_trb *trb, *next; in xhci_dbc_queue_trb() local 269 trb = ring->enqueue; in xhci_dbc_queue_trb() [all …]
|
| H A D | xhci-ring.c | 75 union xhci_trb *trb) in xhci_trb_virt_to_dma() 79 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 82 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 85 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma() 105 static bool trb_is_noop(union xhci_trb *trb) in trb_is_noop() 107 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in trb_is_noop() 110 static bool trb_is_link(union xhci_trb *trb) in trb_is_link() 112 return TRB_TYPE_LINK_LE32(trb->link.control); in trb_is_link() 115 static bool last_trb_on_seg(struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_seg() 74 xhci_trb_virt_to_dma(struct xhci_segment * seg,union xhci_trb * trb) xhci_trb_virt_to_dma() argument 104 trb_is_noop(union xhci_trb * trb) trb_is_noop() argument 109 trb_is_link(union xhci_trb * trb) trb_is_link() argument 114 last_trb_on_seg(struct xhci_segment * seg,union xhci_trb * trb) last_trb_on_seg() argument 120 last_trb_on_ring(struct xhci_ring * ring,struct xhci_segment * seg,union xhci_trb * trb) last_trb_on_ring() argument 125 link_trb_toggles_cycle(union xhci_trb * trb) link_trb_toggles_cycle() argument 150 trb_to_noop(union xhci_trb * trb,u32 noop_type,bool unchain_links) trb_to_noop() argument 165 trb_to_pos(struct xhci_segment * seg,union xhci_trb * trb) trb_to_pos() argument 175 next_trb(struct xhci_segment ** seg,union xhci_trb ** trb) next_trb() argument 788 union xhci_trb *trb = td->start_trb; td_to_noop() local 1188 xhci_handle_cmd_stop_ep(struct xhci_hcd * xhci,int slot_id,union xhci_trb * trb,u32 comp_code) xhci_handle_cmd_stop_ep() argument 1425 xhci_handle_cmd_set_deq(struct xhci_hcd * xhci,int slot_id,union xhci_trb * trb,u32 cmd_comp_code) xhci_handle_cmd_set_deq() argument 1565 xhci_handle_cmd_reset_ep(struct xhci_hcd * xhci,int slot_id,union xhci_trb * trb,u32 cmd_comp_code) xhci_handle_cmd_reset_ep() argument 2293 union xhci_trb *trb = td->start_trb; sum_trb_lengths() local 3248 struct xhci_generic_trb *trb; queue_trb() local [all...] |
| H A D | xhci-dbgcap.h | 191 union xhci_trb *trb; member
|
| H A D | xhci-mem.c | 99 union xhci_trb *trb; in xhci_set_link_trb() local 105 trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_set_link_trb() 108 val = le32_to_cpu(trb->link.control); in xhci_set_link_trb() 113 trb->link.control = cpu_to_le32(val); in xhci_set_link_trb() 114 trb->link.segment_ptr = cpu_to_le64(seg->next->dma); in xhci_set_link_trb()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 336 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) in trb_read_data_ptr() argument 371 return ((u64)trb_read_data_hi(trb) << 32) | in trb_read_data_ptr() 372 trb_read_data_lo(trb); in trb_read_data_ptr() 375 static inline void trb_write_data_ptr(struct tegra_xudc_trb *trb, u64 addr) in trb_write_data_ptr() argument 377 trb_write_data_lo(trb, lower_32_bit in trb_write_data_ptr() 619 dump_trb(struct tegra_xudc * xudc,const char * type,struct tegra_xudc_trb * trb) dump_trb() argument 900 trb_virt_to_phys(struct tegra_xudc_ep * ep,struct tegra_xudc_trb * trb) trb_virt_to_phys() argument 915 struct tegra_xudc_trb *trb; trb_phys_to_virt() local 1085 tegra_xudc_queue_one_trb(struct tegra_xudc_ep * ep,struct tegra_xudc_request * req,struct tegra_xudc_trb * trb,bool ioc) tegra_xudc_queue_one_trb() argument 1189 struct tegra_xudc_trb *trb = &ep->transfer_ring[ep->enq_ptr]; tegra_xudc_queue_trbs() local 1342 struct tegra_xudc_trb *trb = req->first_trb; squeeze_transfer_ring() local 1385 trb_in_request(struct tegra_xudc_ep * ep,struct tegra_xudc_request * req,struct tegra_xudc_trb * trb) trb_in_request() argument 1407 trb_before_request(struct tegra_xudc_ep * ep,struct tegra_xudc_request * req,struct tegra_xudc_trb * trb) trb_before_request() argument 1699 setup_link_trb(struct tegra_xudc_ep * ep,struct tegra_xudc_trb * trb) setup_link_trb() argument 2637 trb_to_request(struct tegra_xudc_ep * ep,struct tegra_xudc_trb * trb) trb_to_request() argument 2657 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_completion() local 2708 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_event() local [all...] |
| /linux/drivers/usb/dwc3/ |
| H A D | ep0.c | 39 struct dwc3_trb *trb; in dwc3_ep0_prepare_one_trb() local 43 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb() 48 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 49 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 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() 62 trace_dwc3_prepare_trb(dep, trb); in dwc3_ep0_prepare_one_trb() 876 struct dwc3_trb *trb; dwc3_ep0_complete_data() local 934 struct dwc3_trb *trb; dwc3_ep0_complete_status() local [all...] |
| H A D | gadget.c | 161 * dwc3_ep_inc_trb - increment a trb index. 205 if (req->trb) in dwc3_gadget_del_and_unmap_request() 209 req->trb = NULL; in dwc3_gadget_del_and_unmap_request() 484 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 486 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 502 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n", in dwc3_alloc_trb_pool() 913 struct dwc3_trb *trb; 919 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 920 trb_dma = dwc3_trb_dma_offset(dep, trb); in __dwc3_gadget_ep_enable() 1308 struct dwc3_trb *trb; in dwc3_prepare_one_trb() 977 struct dwc3_trb *trb; __dwc3_gadget_ep_enable() local 1284 struct dwc3_trb *trb; dwc3_prepare_one_trb() local 2096 struct dwc3_trb *trb; dwc3_gadget_ep_skip_trbs() local 2222 struct dwc3_trb *trb; __dwc3_gadget_ep_set_halt() local 3551 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) dwc3_gadget_ep_reclaim_completed_trb() argument 3623 struct dwc3_trb *trb; dwc3_gadget_ep_reclaim_trb_sg() local 3666 struct dwc3_trb *trb; dwc3_gadget_ep_cleanup_completed_request() local [all...] |
| H A D | debugfs.c | 900 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show() 901 unsigned int type = DWC3_TRBCTL_TYPE(trb->ctrl); in dwc3_trb_ring_show() 904 trb->bph, trb->bpl, trb->size, in dwc3_trb_ring_show() local 906 !!(trb->ctrl & DWC3_TRB_CTRL_IOC), in dwc3_trb_ring_show() 907 !!(trb->ctrl & DWC3_TRB_CTRL_ISP_IMI), in dwc3_trb_ring_show() 908 !!(trb->ctrl & DWC3_TRB_CTRL_CSP), in dwc3_trb_ring_show() 909 !!(trb->ctrl & DWC3_TRB_CTRL_CHN), in dwc3_trb_ring_show() 910 !!(trb in dwc3_trb_ring_show() [all...] |
| H A D | core.h | 959 * @trb: pointer to struct dwc3_trb 960 * @trb_dma: DMA address of @trb 984 struct dwc3_trb *trb; 1016 * @ep0_trb: trb which is used for the ctrl_req 983 struct dwc3_trb *trb; global() member
|
| /linux/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() 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/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
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | mac.c | 1937 u32 trb, ple_err; in mt7915_mac_severe_check() local 1946 trb = mt76_rr(dev, MT_TRB_RXPSR0(phy->mt76->band_idx)); in mt7915_mac_severe_check() 1948 if ((FIELD_GET(MT_TRB_RXPSR0_RX_RMAC_PTR, trb) != in mt7915_mac_severe_check() 1949 FIELD_GET(MT_TRB_RXPSR0_RX_WTBL_PTR, trb)) && in mt7915_mac_severe_check() 1952 trb == phy->trb_ts) in mt7915_mac_severe_check() 1956 phy->trb_ts = trb; in mt7915_mac_severe_check()
|