Searched refs:trbs (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.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 | 71 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 74 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 92 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg() 146 *trb = ((*seg)->trbs); in next_trb() 167 ring->dequeue = ring->deq_seg->trbs; in inc_deq() 178 ring->dequeue = ring->deq_seg->trbs; in inc_deq() 248 ring->enqueue = ring->enq_seg->trbs; in inc_enq() 268 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring() 627 halted_trb = &halted_seg->trbs[index]; in xhci_find_new_dequeue_state() 1097 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 | 860 memset(seg->trbs, 0, in xhci_clear_command_ring() 862 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring() 869 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
|
D | xhci.h | 1527 union xhci_trb *trbs; member
|
/kernel/linux/linux-5.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() 822 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events() 823 xdbc.evt_ring.dequeue = xdbc.evt_seg.trbs; in xdbc_handle_events()
|
D | xhci-dbc.h | 110 struct xdbc_trb *trbs; member
|