Lines Matching refs:sg
123 struct scatterlist *sg; in arm_nommu_dma_map_sg() local
125 for_each_sg(sgl, sg, nents, i) { in arm_nommu_dma_map_sg()
126 sg_dma_address(sg) = sg_phys(sg); in arm_nommu_dma_map_sg()
127 sg_dma_len(sg) = sg->length; in arm_nommu_dma_map_sg()
128 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_map_sg()
138 struct scatterlist *sg; in arm_nommu_dma_unmap_sg() local
141 for_each_sg(sgl, sg, nents, i) in arm_nommu_dma_unmap_sg()
142 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_unmap_sg()
160 struct scatterlist *sg; in arm_nommu_dma_sync_sg_for_device() local
163 for_each_sg(sgl, sg, nents, i) in arm_nommu_dma_sync_sg_for_device()
164 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_device()
170 struct scatterlist *sg; in arm_nommu_dma_sync_sg_for_cpu() local
173 for_each_sg(sgl, sg, nents, i) in arm_nommu_dma_sync_sg_for_cpu()
174 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_cpu()