/kernel/linux/linux-5.10/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() 125 "\n\t\tRing deq index: %d, trb: %p (virt), 0x%llx (dma)\n", 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() 131 "\t\tRing enq index: %d, trb: %p (virt), 0x%llx (dma)\n", 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 in cdns3_dbg_ring() [all...] |
H A D | gadget.c | 186 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() 188 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 260 * The last trb has zeroed cycle bit in cdns3_allocate_trb_pool() 316 * cdns3_ep_inc_trb - increment a trb index. 952 struct cdns3_trb *trb) in cdns3_wa1_update_guard() 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() 185 cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) cdns3_trb_virt_to_dma() argument 951 cdns3_wa1_update_guard(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) cdns3_wa1_update_guard() argument 1116 struct cdns3_trb *trb; cdns3_ep_run_transfer() local 1483 struct cdns3_trb *trb; cdns3_trb_handled() local 1547 struct cdns3_trb *trb; cdns3_transfer_completed() local 2767 struct cdns3_trb *trb = NULL; __cdns3_gadget_ep_clear_halt() local [all...] |
H A D | trace.h | 233 __entry->start_trb_addr = req->trb; 238 " trb: [start:%d, end:%d: virt addr %pa], flags:%x SID: %u", 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 [all...] |
/kernel/linux/linux-6.6/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() 124 "\n\t\tRing deq index: %d, trb: %p (virt), 0x%llx (dma)\n", 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() 130 "\t\tRing enq index: %d, trb: %p (virt), 0x%llx (dma)\n", 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 in cdns3_dbg_ring() [all...] |
H A D | cdns3-gadget.c | 188 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() 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() 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() 187 cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) cdns3_trb_virt_to_dma() argument 956 cdns3_wa1_update_guard(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb) cdns3_wa1_update_guard() argument 1121 struct cdns3_trb *trb; cdns3_ep_run_transfer() local 1488 struct cdns3_trb *trb; cdns3_trb_handled() local 1552 struct cdns3_trb *trb; cdns3_transfer_completed() local 2786 struct cdns3_trb *trb = NULL; __cdns3_gadget_ep_clear_halt() local [all...] |
H A D | cdnsp-trace.h | 209 TP_printk("DMA: suspect event: %pad, trb-start: %pad, trb-end %pad, " 337 TP_PROTO(struct cdnsp_ring *ring, struct cdnsp_generic_trb *trb), 338 TP_ARGS(ring, trb), 345 __field(union cdnsp_trb *, trb) 350 __entry->field0 = le32_to_cpu(trb->field[0]); 351 __entry->field1 = le32_to_cpu(trb->field[1]); 352 __entry->field2 = le32_to_cpu(trb->field[2]); 353 __entry->field3 = le32_to_cpu(trb->field[3]); 354 __entry->trb [all...] |
H A D | cdnsp-ring.c | 72 union cdnsp_trb *trb) in cdnsp_trb_virt_to_dma() 74 unsigned long segment_offset = trb - seg->trbs; in cdnsp_trb_virt_to_dma() 76 if (trb < seg->trbs || segment_offset >= TRBS_PER_SEGMENT) in cdnsp_trb_virt_to_dma() 79 return seg->dma + (segment_offset * sizeof(*trb)); in cdnsp_trb_virt_to_dma() 82 static bool cdnsp_trb_is_noop(union cdnsp_trb *trb) in cdnsp_trb_is_noop() argument 84 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in cdnsp_trb_is_noop() 87 static bool cdnsp_trb_is_link(union cdnsp_trb *trb) in cdnsp_trb_is_link() argument 89 return TRB_TYPE_LINK_LE32(trb->link.control); in cdnsp_trb_is_link() 92 bool cdnsp_last_trb_on_seg(struct cdnsp_segment *seg, union cdnsp_trb *trb) in cdnsp_last_trb_on_seg() argument 94 return trb in cdnsp_last_trb_on_seg() 71 cdnsp_trb_virt_to_dma(struct cdnsp_segment *seg, union cdnsp_trb *trb) cdnsp_trb_virt_to_dma() argument 97 cdnsp_last_trb_on_ring(struct cdnsp_ring *ring, struct cdnsp_segment *seg, union cdnsp_trb *trb) cdnsp_last_trb_on_ring() argument 104 cdnsp_link_trb_toggles_cycle(union cdnsp_trb *trb) cdnsp_link_trb_toggles_cycle() argument 109 cdnsp_trb_to_noop(union cdnsp_trb *trb, u32 noop_type) cdnsp_trb_to_noop() argument 129 cdnsp_next_trb(struct cdnsp_device *pdev, struct cdnsp_ring *ring, struct cdnsp_segment **seg, union cdnsp_trb **trb) cdnsp_next_trb() argument 509 union cdnsp_trb *trb = td->first_trb; cdnsp_td_to_noop() local 953 union cdnsp_trb *trb = ring->dequeue; cdnsp_sum_trb_lengths() local 1606 struct cdnsp_generic_trb *trb; cdnsp_queue_trb() local [all...] |
H A D | cdns3-trace.h | 232 " trb: [start:%d, end:%d], flags:%x SID: %u", 386 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); 406 TP_printk("%s: trb [all...] |
/kernel/linux/linux-6.6/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() 113 "\n\t\tRing deq index: %d, trb: V=%p, P=0x%pad\n", 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() 119 "\t\tRing enq index: %d, trb: V=%p, P=0x%pad\n", in cdns2_raw_ring() 120 ring->enqueue, trb, &dma); in cdns2_raw_ring() 134 trb in cdns2_raw_ring() [all...] |
H A D | cdns2-gadget.c | 100 struct cdns2_trb *trb) in cdns2_trb_virt_to_dma() 102 u32 offset = (char *)trb - (char *)pep->ring.trbs; in cdns2_trb_virt_to_dma() 170 * Increment a trb index. 228 struct cdns2_trb *trb) in cdns2_next_trb() 230 if (trb == (pep->ring.trbs + (TRBS_PER_SEGMENT - 1))) in cdns2_next_trb() 233 return ++trb; in cdns2_next_trb() 281 struct cdns2_trb *trb) in cdns2_wa1_update_guard() 293 pep->wa1_trb = trb; in cdns2_wa1_update_guard() 367 struct cdns2_trb *trb = preq->trb; in cdns2_dbg_request_trbs() local 99 cdns2_trb_virt_to_dma(struct cdns2_endpoint *pep, struct cdns2_trb *trb) cdns2_trb_virt_to_dma() argument 227 cdns2_next_trb(struct cdns2_endpoint *pep, struct cdns2_trb *trb) cdns2_next_trb() argument 280 cdns2_wa1_update_guard(struct cdns2_endpoint *pep, struct cdns2_trb *trb) cdns2_wa1_update_guard() argument 504 struct cdns2_trb *trb; cdns2_ep_tx_isoc() local 620 struct cdns2_trb *trb; cdns2_ep_tx_bulk() local 714 struct cdns2_trb *trb; cdns2_prepare_first_isoc_transfer() local 883 struct cdns2_trb *trb; cdns2_trb_handled() local 953 struct cdns2_trb *trb; cdns2_skip_isoc_td() local 976 struct cdns2_trb *trb; cdns2_transfer_completed() local 1840 struct cdns2_trb *trb = NULL; cdns2_halt_endpoint() local [all...] |
H A D | cdns2-trace.h | 310 "trb: [start: %d, end: %d]", 403 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); 421 TP_printk("%s: trb [all...] |
/kernel/linux/linux-5.10/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; 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 in xhci_dbc_queue_trb() 249 union xhci_trb *trb; xhci_dbc_queue_bulk_tx() local 452 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; xhci_dbc_ring_alloc() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | xhci-trace.h | 111 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 112 TP_ARGS(ring, trb), 122 __entry->field0 = le32_to_cpu(trb->field[0]); 123 __entry->field1 = le32_to_cpu(trb->field[1]); 124 __entry->field2 = le32_to_cpu(trb->field[2]); 125 __entry->field3 = le32_to_cpu(trb->field[3]); 134 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 135 TP_ARGS(ring, trb) 139 TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), 140 TP_ARGS(ring, trb) [all...] |
H A D | xhci-dbgcap.c | 143 req->trb = NULL; 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 in xhci_dbc_queue_trb() 249 union xhci_trb *trb; xhci_dbc_queue_bulk_tx() local 452 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; xhci_dbc_ring_alloc() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
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() 835 struct dwc3_trb *trb; dwc3_ep0_complete_data() local 893 struct dwc3_trb *trb; dwc3_ep0_complete_status() local [all...] |
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; 244 TP_printk("%s: trb [all...] |
H A D | gadget.c | 143 * dwc3_ep_inc_trb - increment a trb index. 188 if (req->trb) in dwc3_gadget_del_and_unmap_request() 192 req->trb = NULL; in dwc3_gadget_del_and_unmap_request() 447 struct dwc3_trb *trb) in dwc3_trb_dma_offset() 449 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 465 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n", in dwc3_alloc_trb_pool() 710 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local 715 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 716 trb_dma = dwc3_trb_dma_offset(dep, trb); in __dwc3_gadget_ep_enable() 990 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 446 dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) dwc3_trb_dma_offset() argument 1761 struct dwc3_trb *trb; dwc3_gadget_ep_skip_trbs() local 1855 struct dwc3_trb *trb; __dwc3_gadget_ep_set_halt() local 2775 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, int chain) dwc3_gadget_ep_reclaim_completed_trb() argument 2847 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue]; dwc3_gadget_ep_reclaim_trb_sg() local 2873 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue]; dwc3_gadget_ep_reclaim_trb_linear() local 2916 struct dwc3_trb *trb; dwc3_gadget_ep_cleanup_completed_request() local [all...] |
/kernel/linux/linux-5.10/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_bit in trb_write_data_ptr() 618 dump_trb(struct tegra_xudc *xudc, const char *type, struct tegra_xudc_trb *trb) dump_trb() argument 885 trb_virt_to_phys(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) trb_virt_to_phys() argument 901 struct tegra_xudc_trb *trb; trb_phys_to_virt() local 1069 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 1175 struct tegra_xudc_trb *trb = &ep->transfer_ring[ep->enq_ptr]; tegra_xudc_queue_trbs() local 1328 struct tegra_xudc_trb *trb = req->first_trb; squeeze_transfer_ring() local 1369 trb_in_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) trb_in_request() argument 1391 trb_before_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) trb_before_request() argument 1688 setup_link_trb(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) setup_link_trb() argument 2624 trb_to_request(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) trb_to_request() argument 2644 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_completion() local 2695 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_event() local [all...] |
H A D | mv_u3d_core.c | 190 /* Free trb for the request */ 236 dev_err(u3d->dev, "add trb to non-empty queue!\n"); in mv_u3d_queue_trb() 243 /* Configure the trb address and set the DCS bit. in mv_u3d_queue_trb() 244 * Both DCS bit and own bit in trb should be set. in mv_u3d_queue_trb() 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 in mv_u3d_build_trb_one() 332 mv_u3d_build_trb_chain(struct mv_u3d_req *req, unsigned *length, struct mv_u3d_trb *trb, int *is_last) mv_u3d_build_trb_chain() argument 403 struct mv_u3d_trb *trb; mv_u3d_req_to_trb() local [all...] |
/kernel/linux/linux-6.6/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() 617 dump_trb(struct tegra_xudc *xudc, const char *type, struct tegra_xudc_trb *trb) dump_trb() argument 895 trb_virt_to_phys(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) trb_virt_to_phys() argument 911 struct tegra_xudc_trb *trb; trb_phys_to_virt() local 1079 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 1185 struct tegra_xudc_trb *trb = &ep->transfer_ring[ep->enq_ptr]; tegra_xudc_queue_trbs() local 1338 struct tegra_xudc_trb *trb = req->first_trb; squeeze_transfer_ring() local 1379 trb_in_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) trb_in_request() argument 1401 trb_before_request(struct tegra_xudc_ep *ep, struct tegra_xudc_request *req, struct tegra_xudc_trb *trb) trb_before_request() argument 1700 setup_link_trb(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) setup_link_trb() argument 2635 trb_to_request(struct tegra_xudc_ep *ep, struct tegra_xudc_trb *trb) trb_to_request() argument 2655 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_completion() local 2706 struct tegra_xudc_trb *trb; tegra_xudc_handle_transfer_event() local [all...] |
H A D | mv_u3d_core.c | 190 /* Free trb for the request */ 236 dev_err(u3d->dev, "add trb to non-empty queue!\n"); in mv_u3d_queue_trb() 243 /* Configure the trb address and set the DCS bit. in mv_u3d_queue_trb() 244 * Both DCS bit and own bit in trb should be set. in mv_u3d_queue_trb() 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 in mv_u3d_build_trb_one() 332 mv_u3d_build_trb_chain(struct mv_u3d_req *req, unsigned *length, struct mv_u3d_trb *trb, int *is_last) mv_u3d_build_trb_chain() argument 403 struct mv_u3d_trb *trb; mv_u3d_req_to_trb() local [all...] |
/kernel/linux/linux-6.6/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) 233 __entry->trb = trb; 234 __entry->bpl = trb->bpl; 235 __entry->bph = trb->bph; 236 __entry->size = trb->size; 237 __entry->ctrl = trb->ctrl; 242 TP_printk("%s: trb [all...] |
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() 861 struct dwc3_trb *trb; dwc3_ep0_complete_data() local 919 struct dwc3_trb *trb; dwc3_ep0_complete_status() local [all...] |
H A D | gadget.c | 161 * dwc3_ep_inc_trb - increment a trb index. 206 if (req->trb) in dwc3_gadget_del_and_unmap_request() 210 req->trb = NULL; in dwc3_gadget_del_and_unmap_request() 482 struct dwc3_trb *trb) in dwc3_trb_dma_offset() 484 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 500 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n", in dwc3_alloc_trb_pool() 935 struct dwc3_trb *trb; in __dwc3_gadget_ep_enable() local 940 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 941 trb_dma = dwc3_trb_dma_offset(dep, trb); in __dwc3_gadget_ep_enable() 1236 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 481 dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) dwc3_trb_dma_offset() argument 2041 struct dwc3_trb *trb; dwc3_gadget_ep_skip_trbs() local 2167 struct dwc3_trb *trb; __dwc3_gadget_ep_set_halt() local 3359 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, int chain) dwc3_gadget_ep_reclaim_completed_trb() argument 3431 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue]; dwc3_gadget_ep_reclaim_trb_sg() local 3457 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue]; dwc3_gadget_ep_reclaim_trb_linear() local 3500 struct dwc3_trb *trb; dwc3_gadget_ep_cleanup_completed_request() local [all...] |