Lines Matching refs:first_seg
224 struct xhci_segment *first_seg, in xhci_update_stream_segment_mapping() argument
235 seg = first_seg; in xhci_update_stream_segment_mapping()
244 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
250 seg = first_seg; in xhci_update_stream_segment_mapping()
256 } while (seg != first_seg); in xhci_update_stream_segment_mapping()
268 seg = ring->first_seg; in xhci_remove_stream_mapping()
272 } while (seg != ring->first_seg); in xhci_remove_stream_mapping()
278 ring->first_seg, ring->last_seg, mem_flags); in xhci_update_stream_mapping()
289 if (ring->first_seg) { in xhci_ring_free()
292 xhci_free_segments_for_ring(xhci, ring->first_seg); in xhci_ring_free()
303 ring->enqueue = ring->first_seg->trbs; in xhci_initialize_ring_info()
304 ring->enq_seg = ring->first_seg; in xhci_initialize_ring_info()
306 ring->deq_seg = ring->first_seg; in xhci_initialize_ring_info()
442 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, in xhci_ring_alloc()
744 addr = cur_ring->first_seg->dma | in xhci_alloc_stream_info()
1282 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma | in xhci_setup_addressable_virt_dev()
1596 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma | in xhci_endpoint_init()
1902 seg = evt_ring->first_seg; in xhci_alloc_erst()
2097 { xhci->event_ring->first_seg->dma - 16, NULL }, in xhci_check_trb_in_td_math()
2099 { xhci->event_ring->first_seg->dma - 1, NULL }, in xhci_check_trb_in_td_math()
2101 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
2103 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16, in xhci_check_trb_in_td_math()
2104 xhci->event_ring->first_seg }, in xhci_check_trb_in_td_math()
2106 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL }, in xhci_check_trb_in_td_math()
2108 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL }, in xhci_check_trb_in_td_math()
2120 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2121 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2122 .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2123 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2127 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2128 .start_trb = xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2129 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2130 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2134 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2135 .start_trb = xhci->cmd_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2136 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2137 .input_dma = xhci->cmd_ring->first_seg->dma, in xhci_check_trb_in_td_math()
2141 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2142 .start_trb = &xhci->event_ring->first_seg->trbs[0], in xhci_check_trb_in_td_math()
2143 .end_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2144 .input_dma = xhci->event_ring->first_seg->dma + 4*16, in xhci_check_trb_in_td_math()
2148 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2149 .start_trb = &xhci->event_ring->first_seg->trbs[3], in xhci_check_trb_in_td_math()
2150 .end_trb = &xhci->event_ring->first_seg->trbs[6], in xhci_check_trb_in_td_math()
2151 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2155 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2156 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2157 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2158 .input_dma = xhci->event_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2162 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2163 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2164 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2165 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16, in xhci_check_trb_in_td_math()
2169 { .input_seg = xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2170 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], in xhci_check_trb_in_td_math()
2171 .end_trb = &xhci->event_ring->first_seg->trbs[1], in xhci_check_trb_in_td_math()
2172 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, in xhci_check_trb_in_td_math()
2183 xhci->event_ring->first_seg, in xhci_check_trb_in_td_math()
2184 xhci->event_ring->first_seg->trbs, in xhci_check_trb_in_td_math()
2185 &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], in xhci_check_trb_in_td_math()
2603 (unsigned long long)xhci->cmd_ring->first_seg->dma); in xhci_mem_init()
2608 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | in xhci_mem_init()