Lines Matching refs:first_seg
218 struct xhci_segment *first_seg, in xhci_update_stream_segment_mapping() argument
229 seg = first_seg; in xhci_update_stream_segment_mapping()
238 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
244 seg = first_seg; in xhci_update_stream_segment_mapping()
250 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
262 seg = ring->first_seg; in xhci_remove_stream_mapping()
266 } while (seg != ring->first_seg); in xhci_remove_stream_mapping()
272 ring->first_seg, ring->last_seg, mem_flags); in xhci_update_stream_mapping()
281 if (ring->first_seg) { in xhci_ring_free()
284 xhci_free_segments_for_ring(xhci, ring->first_seg); in xhci_ring_free()
294 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
295 ring->enq_seg = ring->first_seg; in xhci_initialize_ring_info()
297 ring->deq_seg = ring->first_seg; in xhci_initialize_ring_info()
379 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, in xhci_ring_alloc()
429 struct xhci_segment *seg = ring->first_seg; in xhci_reinit_cached_ring()
443 } while (seg != ring->first_seg); in xhci_reinit_cached_ring()
718 addr = cur_ring->first_seg->dma | in xhci_alloc_stream_info()
1197 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma | in xhci_setup_addressable_virt_dev()
1439 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma | ep_ring->cycle_state); in xhci_endpoint_init()
1940 { xhci->event_ring->first_seg->dma - 16, NULL }, in xhci_check_trb_in_td_math()
1942 { xhci->event_ring->first_seg->dma - 1, NULL }, in xhci_check_trb_in_td_math()
1944 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1946 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16, in xhci_check_trb_in_td_math()
1947 xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
1949 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL }, in xhci_check_trb_in_td_math()
1951 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL }, in xhci_check_trb_in_td_math()
1963 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1964 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
1965 .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
1966 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
1970 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1971 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
1972 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
1973 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
1977 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1978 .start_trb = xhci->cmd_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
1979 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
1980 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
1984 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1985 .start_trb = &xhci->event_ring->first_seg->trbs[0], in xhci_check_trb_in_td_math()
1986 .end_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
1987 .input_dma = xhci->event_ring->first_seg->dma + 4*16, in xhci_check_trb_in_td_math()
1991 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1992 .start_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
1993 .end_trb = &xhci->event_ring->first_seg->trbs[6], in xhci_check_trb_in_td_math()
1994 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
1998 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
1999 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2000 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2001 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2005 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2006 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2007 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2008 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16, in xhci_check_trb_in_td_math()
2012 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2013 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2014 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2015 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2026 xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2027 xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2028 &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2419 (unsigned long long)xhci->cmd_ring->first_seg->dma); in xhci_mem_init()
2424 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | in xhci_mem_init()
2483 for (val = 0, seg = xhci->event_ring->first_seg; val < ERST_NUM_SEGS; val++) { in xhci_mem_init()