Searched refs:trbs (Results 1 – 5 of 5) sorted by relevance
50 seg->trbs = dma_pool_alloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()51 if (!seg->trbs) { in xhci_segment_alloc()56 memset(seg->trbs, 0, TRB_SEGMENT_SIZE); 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()107 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()111 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()120 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()[all …]
81 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()84 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()111 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()133 *trb = ((*seg)->trbs); in next_trb()168 ring->dequeue = ring->deq_seg->trbs; in inc_deq()245 ring->enqueue = ring->enq_seg->trbs; in inc_enq()263 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring()919 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()932 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()[all …]
333 union xhci_trb *trb = seg->trbs; in xhci_debug_segment()336 trb = &seg->trbs[i]; in xhci_debug_segment()
1334 union xhci_trb *trbs; member
823 memset(seg->trbs, 0, in xhci_clear_command_ring()825 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()832 ring->dequeue = ring->first_seg->trbs; in xhci_clear_command_ring()