Lines Matching full:sg
57 struct scatterlist *sg = sgt->sgl, *sg_last = NULL;
60 while (sg) {
61 if (!sg_page(sg))
63 sg = sg_next(sg);
66 if (!sg)
69 while (new_sgl && sg && max_len) {
71 sg_set_page(sg, sg_page(new_sgl), new_len, new_sgl->offset);
72 sg_last = sg;
73 sg = sg_next(sg);
81 static int qce_dma_prep_sg(struct dma_chan *chan, struct scatterlist *sg,
89 if (!sg || !nents)
92 desc = dmaengine_prep_slave_sg(chan, sg, nents, dir, flags);