Lines Matching refs:sg
276 static void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents,
282 for_each_sg(sg, s, nents, i) {
290 static int dma_map_sg_nonforce(struct device *dev, struct scatterlist *sg,
300 for_each_sg(sg, s, nents, i) {
307 gart_unmap_sg(dev, sg, i, dir, 0);
309 sg[0].dma_length = 0;
377 static int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents,
391 start_sg = sg;
392 sgmap = sg;
397 for_each_sg(sg, s, nents, i) {
447 gart_unmap_sg(dev, sg, out, dir, 0);
451 out = dma_map_sg_nonforce(dev, sg, nents, dir);