/* The same as swiotlb_sync_single_* but for a scatter-gather list, same rules and usage.  */
static void swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, int dir, int target)
/* The same as swiotlb_sync_single_* but for a scatter-gather list, same rules and usage.  */
static void swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, int dir, int target)
{
	struct scatterlist *sg;
	int i;
	for_each_sg(sgl, sg, nelems, i)
		swiotlb_sync_single(hwdev, sg->dma_address,
				    sg->dma_length, dir, target);
}