Home
last modified time | relevance | path

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

/drivers/usb/host/
Dxhci-mem.c52 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()
53 if (!seg->trbs) { in xhci_segment_alloc()
61 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc()
69 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in xhci_segment_alloc()
79 if (seg->trbs) { in xhci_segment_free()
80 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free()
81 seg->trbs = NULL; in xhci_segment_free()
117 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
121 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
130 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
[all …]
Dxhci-ring.c83 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
86 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
104 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
158 *trb = ((*seg)->trbs); in next_trb()
179 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
190 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
259 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
279 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring()
1009 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1021 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
[all …]
Dxhci.c803 memset(seg->trbs, 0, in xhci_clear_command_ring()
805 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
812 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
Dxhci.h1507 union xhci_trb *trbs; member
/drivers/usb/early/
Dxhci-dbc.c181 seg->trbs = xdbc_get_page(&seg->dma); in xdbc_alloc_ring()
182 if (!seg->trbs) in xdbc_alloc_ring()
206 memset(seg->trbs, 0, PAGE_SIZE); in xdbc_reset_ring()
208 ring->enqueue = seg->trbs; in xdbc_reset_ring()
209 ring->dequeue = seg->trbs; in xdbc_reset_ring()
213 link_trb = &seg->trbs[XDBC_TRBS_PER_SEGMENT - 1]; in xdbc_reset_ring()
403 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
410 ring->enqueue = ring->segment->trbs; in xdbc_queue_trb()
831 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()
832 xdbc.evt_ring.dequeue = xdbc.evt_seg.trbs; in xdbc_handle_events()
Dxhci-dbc.h113 struct xdbc_trb *trbs; member