Lines Matching refs:sg
233 struct scatterlist *sg; in __swiotlb_map_sg_attrs() local
238 for_each_sg(sgl, sg, ret, i) in __swiotlb_map_sg_attrs()
239 __dma_map_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_map_sg_attrs()
240 sg->length, dir); in __swiotlb_map_sg_attrs()
250 struct scatterlist *sg; in __swiotlb_unmap_sg_attrs() local
254 for_each_sg(sgl, sg, nelems, i) in __swiotlb_unmap_sg_attrs()
255 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_unmap_sg_attrs()
256 sg->length, dir); in __swiotlb_unmap_sg_attrs()
282 struct scatterlist *sg; in __swiotlb_sync_sg_for_cpu() local
286 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_cpu()
287 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_sync_sg_for_cpu()
288 sg->length, dir); in __swiotlb_sync_sg_for_cpu()
296 struct scatterlist *sg; in __swiotlb_sync_sg_for_device() local
301 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_device()
302 __dma_map_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_sync_sg_for_device()
303 sg->length, dir); in __swiotlb_sync_sg_for_device()