Lines Matching refs:first_seg
219 struct xhci_segment *first_seg, in xhci_update_stream_segment_mapping() argument
230 seg = first_seg; in xhci_update_stream_segment_mapping()
239 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
245 seg = first_seg; in xhci_update_stream_segment_mapping()
251 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
263 seg = ring->first_seg; in xhci_remove_stream_mapping()
267 } while (seg != ring->first_seg); in xhci_remove_stream_mapping()
273 ring->first_seg, ring->last_seg, mem_flags); in xhci_update_stream_mapping()
284 if (ring->first_seg) { in xhci_ring_free()
287 xhci_free_segments_for_ring(xhci, ring->first_seg); in xhci_ring_free()
297 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
298 ring->enq_seg = ring->first_seg; in xhci_initialize_ring_info()
300 ring->deq_seg = ring->first_seg; in xhci_initialize_ring_info()
381 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, in xhci_ring_alloc()
680 addr = cur_ring->first_seg->dma | in xhci_alloc_stream_info()
1205 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma | in xhci_setup_addressable_virt_dev()
1505 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma | in xhci_endpoint_init()
1809 seg = evt_ring->first_seg; in xhci_alloc_erst()
1979 { xhci->event_ring->first_seg->dma - 16, NULL }, in xhci_check_trb_in_td_math()
1981 { xhci->event_ring->first_seg->dma - 1, NULL }, in xhci_check_trb_in_td_math()
1983 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1985 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16, in xhci_check_trb_in_td_math()
1986 xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1988 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL }, in xhci_check_trb_in_td_math()
1990 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL }, in xhci_check_trb_in_td_math()
2002 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2003 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2004 .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2005 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2009 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2010 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2011 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2012 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2016 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2017 .start_trb = xhci->cmd_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2018 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2019 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2023 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2024 .start_trb = &xhci->event_ring->first_seg->trbs[0], in xhci_check_trb_in_td_math()
2025 .end_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2026 .input_dma = xhci->event_ring->first_seg->dma + 4*16, in xhci_check_trb_in_td_math()
2030 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2031 .start_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2032 .end_trb = &xhci->event_ring->first_seg->trbs[6], in xhci_check_trb_in_td_math()
2033 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2037 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2038 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2039 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2040 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2044 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2045 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2046 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2047 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16, in xhci_check_trb_in_td_math()
2051 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2052 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2053 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2054 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2065 xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2066 xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2067 &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2451 (unsigned long long)xhci->cmd_ring->first_seg->dma); in xhci_mem_init()
2456 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | in xhci_mem_init()