Home
last modified time | relevance | path

Searched refs:trbs (Results 1 – 22 of 22) sorted by relevance

/openbmc/u-boot/drivers/usb/host/
H A Dxhci-mem.c66 free(seg->trbs); in xhci_segment_free()
67 seg->trbs = NULL; in xhci_segment_free()
224 val_64 = (uintptr_t)next->trbs; in xhci_link_segments()
225 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = val_64; in xhci_link_segments()
231 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
250 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
280 seg->trbs = (union xhci_trb *)xhci_malloc(SEGMENT_SIZE); in xhci_segment_alloc()
333 prev->trbs[TRBS_PER_SEGMENT-1].link.control |= in xhci_ring_alloc()
528 trb_64 = (uintptr_t)ctrl->cmd_ring->first_seg->trbs; in xhci_mem_init()
559 trb_64 = (uintptr_t)seg->trbs; in xhci_mem_init()
[all …]
H A Dxhci-ring.c39 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
60 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
133 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
161 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
253 ep_ring->enqueue = ep_ring->enq_seg->trbs; in prepare_ring()
H A Dxhci.h1004 union xhci_trb *trbs; member
/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c48 ring->trbs[0].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns2_ep0_enqueue()
49 ring->trbs[0].length = cpu_to_le32(TRB_LEN(length)); in cdns2_ep0_enqueue()
52 ring->trbs[0].control = cpu_to_le32(TRB_CYCLE | in cdns2_ep0_enqueue()
54 ring->trbs[1].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns2_ep0_enqueue()
55 ring->trbs[1].length = cpu_to_le32(TRB_LEN(0)); in cdns2_ep0_enqueue()
56 ring->trbs[1].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns2_ep0_enqueue()
59 ring->trbs[0].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns2_ep0_enqueue()
61 ring->trbs[1].control = 0; in cdns2_ep0_enqueue()
64 trace_cdns2_queue_trb(pep, ring->trbs); in cdns2_ep0_enqueue()
466 trace_cdns2_complete_trb(pep, pep->ring.trbs); in cdns2_transfer_completed()
[all …]
H A Dcdns2-debug.h99 struct cdns2_trb *trbs, in cdns2_raw_ring() argument
110 trb = &trbs[ring->dequeue]; in cdns2_raw_ring()
116 trb = &trbs[ring->enqueue]; in cdns2_raw_ring()
134 trb = &trbs[i]; in cdns2_raw_ring()
H A Dcdns2-gadget.c112 if (pep->ring.trbs) { in cdns2_free_tr_segment()
127 if (!ring->trbs) { in cdns2_alloc_tr_segment()
131 if (!ring->trbs) in cdns2_alloc_tr_segment()
135 memset(ring->trbs, 0, TR_SEG_SIZE); in cdns2_alloc_tr_segment()
231 return pep->ring.trbs; in cdns2_next_trb()
374 trb = pep->ring.trbs; in cdns2_dbg_request_trbs()
639 trb = pep->ring.trbs + ring->enqueue; in cdns2_ep_tx_bulk()
735 trb = &pep->ring.trbs[TRBS_PER_SEGMENT]; in cdns2_prepare_first_isoc_transfer()
784 preq->trb = ring->trbs + ring->enqueue; in cdns2_ep_run_transfer()
916 trb = &ring->trbs[ring->dequeue]; in cdns2_trb_handled()
[all …]
H A Dcdns2-gadget.h507 struct cdns2_trb *trbs; member
H A Dcdns2-trace.h450 memcpy(__get_dynamic_array(tr_seg), pep->ring.trbs,
/openbmc/linux/drivers/usb/early/
H A Dxhci-dbc.c179 seg->trbs = xdbc_get_page(&seg->dma); in xdbc_alloc_ring()
180 if (!seg->trbs) in xdbc_alloc_ring()
204 memset(seg->trbs, 0, PAGE_SIZE); in xdbc_reset_ring()
206 ring->enqueue = seg->trbs; in xdbc_reset_ring()
207 ring->dequeue = seg->trbs; in xdbc_reset_ring()
211 link_trb = &seg->trbs[XDBC_TRBS_PER_SEGMENT - 1]; in xdbc_reset_ring()
401 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
408 ring->enqueue = ring->segment->trbs; in xdbc_queue_trb()
824 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()
825 xdbc.evt_ring.dequeue = xdbc.evt_seg.trbs; in xdbc_handle_events()
H A Dxhci-dbc.h110 struct xdbc_trb *trbs; member
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-mem.c42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc()
43 if (!seg->trbs) { in cdnsp_segment_alloc()
57 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc()
65 dma_pool_free(pdev->segment_pool, seg->trbs, dma); in cdnsp_segment_alloc()
74 if (seg->trbs) in cdnsp_segment_free()
75 dma_pool_free(pdev->segment_pool, seg->trbs, seg->dma); in cdnsp_segment_free()
118 link = &prev->trbs[TRBS_PER_SEGMENT - 1].link; in cdnsp_link_segments()
154 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in cdnsp_link_rings()
156 last->trbs[TRBS_PER_SEGMENT - 1].link.control |= in cdnsp_link_rings()
299 ring->enqueue = ring->first_seg->trbs; in cdnsp_initialize_ring_info()
[all …]
H A Dcdnsp-ring.c74 unsigned long segment_offset = trb - seg->trbs; in cdnsp_trb_virt_to_dma()
94 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_last_trb_on_seg()
136 *trb = ((*seg)->trbs); in cdnsp_next_trb()
159 ring->dequeue = ring->deq_seg->trbs; in cdnsp_inc_deq()
170 ring->dequeue = ring->deq_seg->trbs; in cdnsp_inc_deq()
225 ring->enqueue = ring->enq_seg->trbs; in cdnsp_inc_enq()
550 temp_trb = &cur_seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_trb_in_td()
661 ep_ring->dequeue = ep_ring->deq_seg->trbs; in cdnsp_cmd_set_deq()
673 ep_ring->dequeue = ep_ring->deq_seg->trbs; in cdnsp_cmd_set_deq()
1339 ep_trb = &ep_seg->trbs[(ep_trb_dma - ep_seg->dma) in cdnsp_handle_tx_event()
[all …]
H A Dcdnsp-gadget.c515 event = segment->trbs; in cdnsp_invalidate_ep_events()
581 event = event_deq_seg->trbs; in cdnsp_wait_for_cmd_compl()
1373 memset(seg->trbs, 0, in cdnsp_clear_cmd_ring()
1417 event = event_deq_seg->trbs; in cdnsp_consume_all_events()
H A Dcdnsp-gadget.h1167 union cdnsp_trb *trbs; member
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-pid_3.0.4.bb3 HOMEPAGE = "https://github.com/trbs/pid/"
/openbmc/linux/drivers/usb/host/
H A Dxhci-dbgcap.c31 if (ring->first_seg && ring->first_seg->trbs) { in dbc_ring_free()
33 ring->first_seg->trbs, in dbc_ring_free()
240 ring->enqueue = ring->enq_seg->trbs; in xhci_dbc_queue_trb()
444 seg->trbs = dma_alloc_coherent(dev, TRB_SEGMENT_SIZE, &dma, flags); in xhci_dbc_ring_alloc()
445 if (!seg->trbs) in xhci_dbc_ring_alloc()
452 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_dbc_ring_alloc()
742 if (ring->dequeue == &ring->deq_seg->trbs[TRBS_PER_SEGMENT - 1]) { in inc_evt_deq()
744 ring->dequeue = ring->deq_seg->trbs; in inc_evt_deq()
H A Dxhci-mem.c43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()
44 if (!seg->trbs) { in xhci_segment_alloc()
53 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc()
61 seg->trbs[i].link.control = cpu_to_le32(TRB_CYCLE); in xhci_segment_alloc()
71 if (seg->trbs) { in xhci_segment_free()
72 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free()
73 seg->trbs = NULL; in xhci_segment_free()
110 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
148 ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
150 last->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
[all …]
H A Dxhci-ring.c74 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
77 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
95 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
149 *trb = ((*seg)->trbs); in next_trb()
171 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
185 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
262 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
291 enq = enq_seg->trbs; in xhci_num_trbs_free()
304 enq = enq_seg->trbs; in xhci_num_trbs_free()
1320 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
[all …]
H A Dxhci-debugfs.c205 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
H A Dxhci.c737 memset(seg->trbs, 0, in xhci_clear_command_ring()
739 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
746 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
H A Dxhci.h1547 union xhci_trb *trbs; member
/openbmc/qemu/hw/usb/
H A Dhcd-xhci.c252 XHCITRB *trbs; member
1173 xfer->trbs = g_new(XHCITRB, length); in xhci_ep_alloc_xfer()
1189 g_free(xfer->trbs); in xhci_ep_free_xfer()
1215 g_free(t->trbs); in xhci_ep_nuke_one_xfer()
1217 t->trbs = NULL; in xhci_ep_nuke_one_xfer()
1446 XHCITRB *trb = &xfer->trbs[i]; in xhci_xfer_create_sgl()
1505 XHCITRB *trb = &xfer->trbs[i]; in xhci_xfer_report()
1589 sctx->ring.ccs = xfer->trbs[0].ccs; in xhci_stall_ep()
1593 epctx->ring.ccs = xfer->trbs[0].ccs; in xhci_stall_ep()
1688 trb_setup = &xfer->trbs[0]; in xhci_fire_ctl_transfer()
[all …]