kernels/linux-2.4.0/arch/ia64/lib/swiotlb.c
/*
 * Unmap a set of streaming mode DMA translations.  Again, cpu read rules concerning calls
 * here are the same as for swiotlb_unmap_single() above.
 */
Unmap a set of streaming mode DMA translations.  Again, cpu read rules concerning calls
here are the same as for swiotlb_unmap_single() above.
Unmap a set of streaming mode DMA translations . Again cpu read rules concerning calls here are the same as for swiotlb_unmap_single () above .
void
swiotlb_unmap_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) {
			unmap_single(hwdev, sg->address, sg->length, direction);
			sg->address = sg->orig_address;
		} else if (direction == PCI_DMA_FROMDEVICE)
			mark_clean(sg->address, sg->length);
}
void swiotlb_unmap_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 ) { unmap_single ( hwdev , sg -> address , sg -> length , direction ) ; sg -> address = sg -> orig_address ; } else if ( direction == PCI_DMA_FROMDEVICE ) mark_clean ( sg -> address , sg -> length ) ; }
Unmap a set of streaming mode DMA translations.
Unmap a set of streaming mode DMA translations .