Lines Matching refs:nents
183 int nents, enum dma_data_direction dir, unsigned long attrs) in __dma_map_sg_attrs() argument
194 arch_dma_map_sg_direct(dev, sg, nents)) in __dma_map_sg_attrs()
195 ents = dma_direct_map_sg(dev, sg, nents, dir, attrs); in __dma_map_sg_attrs()
197 ents = ops->map_sg(dev, sg, nents, dir, attrs); in __dma_map_sg_attrs()
200 kmsan_handle_dma_sg(sg, nents, dir); in __dma_map_sg_attrs()
201 debug_dma_map_sg(dev, sg, nents, ents, dir, attrs); in __dma_map_sg_attrs()
228 int nents, enum dma_data_direction dir, unsigned long attrs) in dma_map_sg_attrs() argument
232 ret = __dma_map_sg_attrs(dev, sg, nents, dir, attrs); in dma_map_sg_attrs()
269 int nents; in dma_map_sgtable() local
271 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable()
272 if (nents < 0) in dma_map_sgtable()
273 return nents; in dma_map_sgtable()
274 sgt->nents = nents; in dma_map_sgtable()
280 int nents, enum dma_data_direction dir, in dma_unmap_sg_attrs() argument
286 debug_dma_unmap_sg(dev, sg, nents, dir); in dma_unmap_sg_attrs()
288 arch_dma_unmap_sg_direct(dev, sg, nents)) in dma_unmap_sg_attrs()
289 dma_direct_unmap_sg(dev, sg, nents, dir, attrs); in dma_unmap_sg_attrs()
291 ops->unmap_sg(dev, sg, nents, dir, attrs); in dma_unmap_sg_attrs()
650 sgt->nents = 1; in dma_alloc_noncontiguous()