Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/host/
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()
108 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
112 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
121 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
[all …]
Dxhci-ring.c71 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()
991 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1003 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
[all …]
Dxhci-debugfs.c202 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
Dxhci-dbgcap.c235 ring->enqueue = ring->enq_seg->trbs; in xhci_dbc_queue_trb()
Dxhci.c862 memset(seg->trbs, 0, in xhci_clear_command_ring()
864 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
871 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
Dxhci.h1501 union xhci_trb *trbs; member
/Linux-v4.19/drivers/usb/early/
Dxhci-dbc.c178 seg->trbs = xdbc_get_page(&seg->dma); in xdbc_alloc_ring()
179 if (!seg->trbs) in xdbc_alloc_ring()
203 memset(seg->trbs, 0, PAGE_SIZE); in xdbc_reset_ring()
205 ring->enqueue = seg->trbs; in xdbc_reset_ring()
206 ring->dequeue = seg->trbs; in xdbc_reset_ring()
210 link_trb = &seg->trbs[XDBC_TRBS_PER_SEGMENT - 1]; in xdbc_reset_ring()
400 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
407 ring->enqueue = ring->segment->trbs; in xdbc_queue_trb()
828 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()
829 xdbc.evt_ring.dequeue = xdbc.evt_seg.trbs; in xdbc_handle_events()
Dxhci-dbc.h110 struct xdbc_trb *trbs; member