int i;  if (dir == DMA_NONE) BUG();  for (i = 0; i < nelems; i++, sg++) if (sg->dma_address != SG_ENT_PHYS_ADDRESS(sg)) sync_single(hwdev, (void *) sg->dma_address, sg->dma_length, dir); 
swiotlb_sync_sg(hwdev, sg, nelems, dir); 
swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,			   int nelems, int dir){	int i;	if (dir == DMA_NONE)		BUG();	for (i = 0; i < nelems; i++, sg++)		if (sg->dma_address != SG_ENT_PHYS_ADDRESS(sg))			sync_single(hwdev, (void *) sg->dma_address,				    sg->dma_length, dir);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8270f3f1a605c83b3aa516c1eaed209fe0884e84/swiotlb.c/buggy/lib/swiotlb.c