Lines Matching defs:nelems
800 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems,
808 for_each_sg(sgl, sg, nelems, i) {
830 return nelems;
835 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
838 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL);
848 int nelems, enum dma_data_direction dir, struct dma_attrs *attrs)
855 for_each_sg(sgl, sg, nelems, i)
862 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
865 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL);
878 int nelems, enum dma_data_direction dir,
884 for_each_sg(sgl, sg, nelems, i)
891 int nelems, enum dma_data_direction dir)
893 swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU);
899 int nelems, enum dma_data_direction dir)
901 swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_DEVICE);