Lines Matching refs:xt
615 struct dma_chan *c, struct dma_interleaved_template *xt, in axi_dmac_prep_interleaved() argument
622 if (xt->frame_size != 1) in axi_dmac_prep_interleaved()
625 if (xt->dir != chan->direction) in axi_dmac_prep_interleaved()
629 if (!xt->src_inc || !axi_dmac_check_addr(chan, xt->src_start)) in axi_dmac_prep_interleaved()
634 if (!xt->dst_inc || !axi_dmac_check_addr(chan, xt->dst_start)) in axi_dmac_prep_interleaved()
638 dst_icg = dmaengine_get_dst_icg(xt, &xt->sgl[0]); in axi_dmac_prep_interleaved()
639 src_icg = dmaengine_get_src_icg(xt, &xt->sgl[0]); in axi_dmac_prep_interleaved()
642 if (!axi_dmac_check_len(chan, xt->sgl[0].size) || in axi_dmac_prep_interleaved()
643 xt->numf == 0) in axi_dmac_prep_interleaved()
645 if (xt->sgl[0].size + dst_icg > chan->max_length || in axi_dmac_prep_interleaved()
646 xt->sgl[0].size + src_icg > chan->max_length) in axi_dmac_prep_interleaved()
651 if (chan->max_length / xt->sgl[0].size < xt->numf) in axi_dmac_prep_interleaved()
653 if (!axi_dmac_check_len(chan, xt->sgl[0].size * xt->numf)) in axi_dmac_prep_interleaved()
662 desc->sg[0].src_addr = xt->src_start; in axi_dmac_prep_interleaved()
663 desc->sg[0].src_stride = xt->sgl[0].size + src_icg; in axi_dmac_prep_interleaved()
667 desc->sg[0].dest_addr = xt->dst_start; in axi_dmac_prep_interleaved()
668 desc->sg[0].dest_stride = xt->sgl[0].size + dst_icg; in axi_dmac_prep_interleaved()
672 desc->sg[0].x_len = xt->sgl[0].size; in axi_dmac_prep_interleaved()
673 desc->sg[0].y_len = xt->numf; in axi_dmac_prep_interleaved()
675 desc->sg[0].x_len = xt->sgl[0].size * xt->numf; in axi_dmac_prep_interleaved()