Lines Matching refs:nents
276 static void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in gart_unmap_sg() argument
282 for_each_sg(sg, s, nents, i) { in gart_unmap_sg()
291 int nents, int dir) in dma_map_sg_nonforce() argument
300 for_each_sg(sg, s, nents, i) { in dma_map_sg_nonforce()
308 nents = 0; in dma_map_sg_nonforce()
318 return nents; in dma_map_sg_nonforce()
377 static int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, in gart_map_sg() argument
386 if (nents == 0) in gart_map_sg()
397 for_each_sg(sg, s, nents, i) { in gart_map_sg()
439 if (out < nents) { in gart_map_sg()
451 out = dma_map_sg_nonforce(dev, sg, nents, dir); in gart_map_sg()