/openbmc/u-boot/drivers/usb/host/ |
H A D | xhci-mem.c | 66 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() 235 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); 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() [all …]
|
H A D | xhci-ring.c | 39 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 D | xhci.h | 1004 union xhci_trb *trbs; member
|
/openbmc/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-ep0.c | 48 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 D | cdns2-debug.h | 99 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 D | cdns2-gadget.c | 102 u32 offset = (char *)trb - (char *)pep->ring.trbs; in cdns2_trb_virt_to_dma() 112 if (pep->ring.trbs) { in cdns2_free_tr_segment() 113 dma_pool_free(pdev->eps_dma_pool, ring->trbs, ring->dma); in cdns2_free_tr_segment() 127 if (!ring->trbs) { in cdns2_alloc_tr_segment() 128 ring->trbs = dma_pool_alloc(pdev->eps_dma_pool, 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() 141 link_trb = (ring->trbs + (TRBS_PER_SEGMENT - 1)); in cdns2_alloc_tr_segment() 230 if (trb == (pep->ring.trbs + (TRBS_PER_SEGMENT - 1))) in cdns2_next_trb() 231 return pep->ring.trbs; in cdns2_next_trb() [all …]
|
H A D | cdns2-gadget.h | 516 struct cdns2_trb *trbs; member
|
H A D | cdns2-trace.h | 450 memcpy(__get_dynamic_array(tr_seg), pep->ring.trbs,
|
/openbmc/linux/drivers/usb/early/ |
H A D | xhci-dbc.c | 179 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 D | xhci-dbc.h | 110 struct xdbc_trb *trbs; member
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdnsp-mem.c | 42 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 D | cdnsp-ring.c | 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() 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() 246 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in cdnsp_room_on_ring() 550 temp_trb = &cur_seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_trb_in_td() 591 start_dma = cdnsp_trb_virt_to_dma(cur_seg, &cur_seg->trbs[0]); in cdnsp_trb_in_td() [all …]
|
H A D | cdnsp-gadget.c | 515 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 D | cdnsp-gadget.h | 1170 union cdnsp_trb *trbs; member
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/ |
H A D | python3-pid_3.0.4.bb | 3 HOMEPAGE = "https://github.com/trbs/pid/"
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-dbgcap.c | 31 if (ring->first_seg && ring->first_seg->trbs) { in dbc_ring_free() 33 ring->first_seg->trbs, in dbc_ring_free() 242 ring->enqueue = ring->enq_seg->trbs; in xhci_dbc_queue_trb() 446 seg->trbs = dma_alloc_coherent(dev, TRB_SEGMENT_SIZE, &dma, flags); in xhci_dbc_ring_alloc() 447 if (!seg->trbs) in xhci_dbc_ring_alloc() 454 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_dbc_ring_alloc() 801 if (ring->dequeue == &ring->deq_seg->trbs[TRBS_PER_SEGMENT - 1]) { in inc_evt_deq() 803 ring->dequeue = ring->deq_seg->trbs; in inc_evt_deq()
|
H A D | xhci-mem.c | 43 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() 114 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments() 119 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments() [all …]
|
H A D | xhci-ring.c | 75 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 78 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 96 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg() 150 *trb = ((*seg)->trbs); in next_trb() 172 ring->dequeue = ring->deq_seg->trbs; in inc_deq() 186 ring->dequeue = ring->deq_seg->trbs; in inc_deq() 263 ring->enqueue = ring->enq_seg->trbs; in inc_enq() 292 enq = enq_seg->trbs; in xhci_num_trbs_free() 302 last_on_seg = &enq_seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_num_trbs_free() 305 enq = enq_seg->trbs; in xhci_num_trbs_free() [all …]
|
H A D | xhci-debugfs.c | 205 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
|
H A D | xhci.c | 738 memset(seg->trbs, 0, in xhci_clear_command_ring() 740 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring() 747 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
|
H A D | xhci.h | 1293 union xhci_trb *trbs; member
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-xhci.c | 252 XHCITRB *trbs; member 1165 xfer->trbs = g_new(XHCITRB, length); in xhci_ep_alloc_xfer() 1181 g_free(xfer->trbs); in xhci_ep_free_xfer() 1207 g_free(t->trbs); in xhci_ep_nuke_one_xfer() 1209 t->trbs = NULL; in xhci_ep_nuke_one_xfer() 1438 XHCITRB *trb = &xfer->trbs[i]; in xhci_xfer_create_sgl() 1497 XHCITRB *trb = &xfer->trbs[i]; in xhci_xfer_report() 1580 sctx->ring.dequeue = xfer->trbs[0].addr; in xhci_stall_ep() 1581 sctx->ring.ccs = xfer->trbs[0].ccs; in xhci_stall_ep() 1584 epctx->ring.dequeue = xfer->trbs[0].addr; in xhci_stall_ep() [all …]
|