Lines Matching refs:sgl
540 struct dma_chan *c, struct scatterlist *sgl, in axi_dmac_prep_slave_sg() argument
555 for_each_sg(sgl, sg, sg_len, i) in axi_dmac_prep_slave_sg()
564 for_each_sg(sgl, sg, sg_len, i) { in axi_dmac_prep_slave_sg()
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()
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()
663 desc->sg[0].src_stride = xt->sgl[0].size + src_icg; 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()
675 desc->sg[0].x_len = xt->sgl[0].size * xt->numf; in axi_dmac_prep_interleaved()