Lines Matching refs:cur_seg
537 struct cdnsp_segment *cur_seg; in cdnsp_trb_in_td() local
544 cur_seg = start_seg; in cdnsp_trb_in_td()
550 temp_trb = &cur_seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_trb_in_td()
552 end_seg_dma = cdnsp_trb_virt_to_dma(cur_seg, temp_trb); in cdnsp_trb_in_td()
554 end_trb_dma = cdnsp_trb_virt_to_dma(cur_seg, end_trb); in cdnsp_trb_in_td()
557 end_trb_dma, cur_seg->dma, in cdnsp_trb_in_td()
568 return cur_seg; in cdnsp_trb_in_td()
577 (suspect_dma >= cur_seg->dma && in cdnsp_trb_in_td()
579 return cur_seg; in cdnsp_trb_in_td()
588 return cur_seg; in cdnsp_trb_in_td()
590 cur_seg = cur_seg->next; in cdnsp_trb_in_td()
591 start_dma = cdnsp_trb_virt_to_dma(cur_seg, &cur_seg->trbs[0]); in cdnsp_trb_in_td()
592 } while (cur_seg != start_seg); in cdnsp_trb_in_td()