Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/usb/early/
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()
A Dxhci-dbc.h110 struct xdbc_trb *trbs; member
/linux-6.3-rc2/drivers/usb/cdns3/
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 …]
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 …]
A Dcdnsp-gadget.c515 event = segment->trbs; in cdnsp_invalidate_ep_events()
581 event = event_deq_seg->trbs; in cdnsp_wait_for_cmd_compl()
1370 memset(seg->trbs, 0, in cdnsp_clear_cmd_ring()
1414 event = event_deq_seg->trbs; in cdnsp_consume_all_events()
A Dcdnsp-gadget.h1167 union cdnsp_trb *trbs; member
/linux-6.3-rc2/drivers/usb/host/
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()
A Dxhci-mem.c42 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()
43 if (!seg->trbs) { in xhci_segment_alloc()
52 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc()
60 seg->trbs[i].link.control = cpu_to_le32(TRB_CYCLE); in xhci_segment_alloc()
70 if (seg->trbs) { in xhci_segment_free()
71 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free()
72 seg->trbs = NULL; in xhci_segment_free()
109 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 …]
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()
187 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
267 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
631 halted_trb = &halted_seg->trbs[index]; in xhci_move_dequeue_past_td()
1265 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1277 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
[all …]
A Dxhci-debugfs.c204 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
A Dxhci.c926 memset(seg->trbs, 0, in xhci_clear_command_ring()
928 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
935 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
A Dxhci.h1545 union xhci_trb *trbs; member

Completed in 54 milliseconds