Lines Matching refs:first_seg

222 		struct xhci_segment *first_seg,  in xhci_update_stream_segment_mapping()  argument
233 seg = first_seg; in xhci_update_stream_segment_mapping()
242 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
248 seg = first_seg; in xhci_update_stream_segment_mapping()
254 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
266 seg = ring->first_seg; in xhci_remove_stream_mapping()
270 } while (seg != ring->first_seg); in xhci_remove_stream_mapping()
276 ring->first_seg, ring->last_seg, mem_flags); in xhci_update_stream_mapping()
287 if (ring->first_seg) { in xhci_ring_free()
290 xhci_free_segments_for_ring(xhci, ring->first_seg); in xhci_ring_free()
300 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
301 ring->enq_seg = ring->first_seg; in xhci_initialize_ring_info()
303 ring->deq_seg = ring->first_seg; in xhci_initialize_ring_info()
390 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, in xhci_ring_alloc()
672 addr = cur_ring->first_seg->dma | in xhci_alloc_stream_info()
1200 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma | in xhci_setup_addressable_virt_dev()
1506 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma | in xhci_endpoint_init()
1810 seg = evt_ring->first_seg; in xhci_alloc_erst()
1981 { xhci->event_ring->first_seg->dma - 16, NULL }, in xhci_check_trb_in_td_math()
1983 { xhci->event_ring->first_seg->dma - 1, NULL }, in xhci_check_trb_in_td_math()
1985 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1987 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16, in xhci_check_trb_in_td_math()
1988 xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1990 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL }, in xhci_check_trb_in_td_math()
1992 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL }, in xhci_check_trb_in_td_math()
2004 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2005 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2006 .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2007 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2011 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2012 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2013 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2014 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2018 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2019 .start_trb = xhci->cmd_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2020 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2021 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2025 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2026 .start_trb = &xhci->event_ring->first_seg->trbs[0], in xhci_check_trb_in_td_math()
2027 .end_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2028 .input_dma = xhci->event_ring->first_seg->dma + 4*16, in xhci_check_trb_in_td_math()
2032 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2033 .start_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2034 .end_trb = &xhci->event_ring->first_seg->trbs[6], in xhci_check_trb_in_td_math()
2035 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2039 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2040 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2041 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2042 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2046 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2047 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2048 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2049 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16, in xhci_check_trb_in_td_math()
2053 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2054 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2055 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2056 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2067 xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2068 xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2069 &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2480 (unsigned long long)xhci->cmd_ring->first_seg->dma); in xhci_mem_init()
2485 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | in xhci_mem_init()