kernels/linux-2.4.0/arch/ia64/lib/swiotlb.c
/*
 * Make physical memory consistent for a set of streaming mode DMA translations after a
 * transfer.
 *
 * The same as swiotlb_dma_sync_single but for a scatter-gather list, same rules and
 * usage.
 */
Make physical memory consistent for a set of streaming mode DMA translations after a
transfer.

The same as swiotlb_dma_sync_single but for a scatter-gather list, same rules and
usage.
Make physical memory consistent for a set of streaming mode DMA translations after a transfer . The same as swiotlb_dma_sync_single but for a scatter - gather list same rules and usage .
void
swiotlb_sync_sg (struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction)
{
	int i;
	if (direction == PCI_DMA_NONE)
		BUG();
	for (i = 0; i < nelems; i++, sg++)
		if (sg->orig_address != sg->address)
			sync_single(hwdev, sg->address, sg->length, direction);
}
void swiotlb_sync_sg ( struct pci_dev * hwdev , struct scatterlist * sg , int nelems , int direction ) { int i ; if ( direction == PCI_DMA_NONE ) BUG ( ) ; for ( i = 0 ; i < nelems ; i ++ , sg ++ ) if ( sg -> orig_address != sg -> address ) sync_single ( hwdev , sg -> address , sg -> length , direction ) ; }
Make physical memory consistent for a set of streaming mode DMA translations after a
 transfer.
Make physical memory consistent for a set of streaming mode DMA translations after a transfer .