Lines Matching refs:nelems
871 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg_attrs() argument
879 for_each_sg(sgl, sg, nelems, i) { in swiotlb_map_sg_attrs()
901 return nelems; in swiotlb_map_sg_attrs()
906 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg() argument
909 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_map_sg()
919 int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) in swiotlb_unmap_sg_attrs() argument
926 for_each_sg(sgl, sg, nelems, i) in swiotlb_unmap_sg_attrs()
933 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_unmap_sg() argument
936 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_unmap_sg()
949 int nelems, enum dma_data_direction dir, in swiotlb_sync_sg() argument
955 for_each_sg(sgl, sg, nelems, i) in swiotlb_sync_sg()
962 int nelems, enum dma_data_direction dir) in swiotlb_sync_sg_for_cpu() argument
964 swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU); in swiotlb_sync_sg_for_cpu()
970 int nelems, enum dma_data_direction dir) in swiotlb_sync_sg_for_device() argument
972 swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_DEVICE); in swiotlb_sync_sg_for_device()