Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dxhci-mem.c67 free(seg->trbs); in xhci_segment_free()
68 seg->trbs = NULL; in xhci_segment_free()
225 val_64 = (uintptr_t)next->trbs; in xhci_link_segments()
226 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = val_64; in xhci_link_segments()
232 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
236 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
251 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
281 seg->trbs = (union xhci_trb *)xhci_malloc(SEGMENT_SIZE); in xhci_segment_alloc()
334 prev->trbs[TRBS_PER_SEGMENT-1].link.control |= in xhci_ring_alloc()
529 trb_64 = (uintptr_t)ctrl->cmd_ring->first_seg->trbs; in xhci_mem_init()
[all …]
H A Dxhci-ring.c40 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
61 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
134 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
162 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
254 ep_ring->enqueue = ep_ring->enq_seg->trbs; in prepare_ring()
/OK3568_Linux_fs/kernel/drivers/usb/host/
H 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()
110 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
114 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
119 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
[all …]
H 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()
H 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()
96 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
150 *trb = ((*seg)->trbs); in next_trb()
172 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
188 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
268 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
293 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring()
633 halted_trb = &halted_seg->trbs[index]; in xhci_move_dequeue_past_td()
1327 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
[all …]
H A Dxhci-debugfs.c204 trb = &seg->trbs[i]; in xhci_ring_dump_segment()
H A Dxhci.c874 memset(seg->trbs, 0, in xhci_clear_command_ring()
876 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
883 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()
H A Dxhci.h1537 union xhci_trb *trbs; member
/OK3568_Linux_fs/kernel/drivers/usb/early/
H 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()
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()
H A Dxhci-dbc.h110 struct xdbc_trb *trbs; member
/OK3568_Linux_fs/yocto/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-pid_3.0.4.bb3 HOMEPAGE = "https://github.com/trbs/pid/"
/OK3568_Linux_fs/u-boot/include/usb/
H A Dxhci.h1005 union xhci_trb *trbs; member