Searched refs:trbs (Results 1 – 12 of 12) sorted by relevance
/linux-5.19.10/drivers/usb/host/ |
D | xhci-mem.c | 42 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() 113 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments() 118 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments() [all …]
|
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() 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()
|
D | xhci-ring.c | 74 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() 292 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring() 631 halted_trb = &halted_seg->trbs[index]; in xhci_move_dequeue_past_td() 1263 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion() [all …]
|
D | xhci-debugfs.c | 204 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
|
D | xhci.c | 887 memset(seg->trbs, 0, in xhci_clear_command_ring() 889 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring() 896 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
|
D | xhci.h | 1541 union xhci_trb *trbs; member
|
/linux-5.19.10/drivers/usb/early/ |
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() 825 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events() 826 xdbc.evt_ring.dequeue = xdbc.evt_seg.trbs; in xdbc_handle_events()
|
D | xhci-dbc.h | 110 struct xdbc_trb *trbs; member
|
/linux-5.19.10/drivers/usb/cdns3/ |
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 …]
|
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 …]
|
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() 1374 memset(seg->trbs, 0, in cdnsp_clear_cmd_ring() 1418 event = event_deq_seg->trbs; in cdnsp_consume_all_events()
|
D | cdnsp-gadget.h | 1167 union cdnsp_trb *trbs; member
|