Lines Matching refs:seg
76 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, in xhci_trb_virt_to_dma() argument
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()
87 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()
94 struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_last_seg() argument
97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
98 (seg->next == xhci->event_ring->first_seg); in last_trb_on_last_seg()
108 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
111 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
128 struct xhci_segment **seg, in next_trb() argument
131 if (last_trb(xhci, ring, *seg, *trb)) { in next_trb()
132 *seg = (*seg)->next; in next_trb()
133 *trb = ((*seg)->trbs); in next_trb()