Lines Matching refs:sg
53 struct scatterlist *sg = sgt->sgl, *sg_last = NULL;
56 while (sg) {
57 if (!sg_page(sg))
59 sg = sg_next(sg);
62 if (!sg)
65 while (new_sgl && sg && max_len) {
67 sg_set_page(sg, sg_page(new_sgl), new_len, new_sgl->offset);
68 sg_last = sg;
69 sg = sg_next(sg);
77 static int qce_dma_prep_sg(struct dma_chan *chan, struct scatterlist *sg,
85 if (!sg || !nents)
88 desc = dmaengine_prep_slave_sg(chan, sg, nents, dir, flags);