diff options
Diffstat (limited to 'lib/swiotlb.c')
| -rw-r--r-- | lib/swiotlb.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 5fddf720da73..a009055140ec 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
| @@ -757,37 +757,6 @@ swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, | |||
| 757 | EXPORT_SYMBOL(swiotlb_sync_single_for_device); | 757 | EXPORT_SYMBOL(swiotlb_sync_single_for_device); |
| 758 | 758 | ||
| 759 | /* | 759 | /* |
| 760 | * Same as above, but for a sub-range of the mapping. | ||
| 761 | */ | ||
| 762 | static void | ||
| 763 | swiotlb_sync_single_range(struct device *hwdev, dma_addr_t dev_addr, | ||
| 764 | unsigned long offset, size_t size, | ||
| 765 | int dir, int target) | ||
| 766 | { | ||
| 767 | swiotlb_sync_single(hwdev, dev_addr + offset, size, dir, target); | ||
| 768 | } | ||
| 769 | |||
| 770 | void | ||
| 771 | swiotlb_sync_single_range_for_cpu(struct device *hwdev, dma_addr_t dev_addr, | ||
| 772 | unsigned long offset, size_t size, | ||
| 773 | enum dma_data_direction dir) | ||
| 774 | { | ||
| 775 | swiotlb_sync_single_range(hwdev, dev_addr, offset, size, dir, | ||
| 776 | SYNC_FOR_CPU); | ||
| 777 | } | ||
| 778 | EXPORT_SYMBOL_GPL(swiotlb_sync_single_range_for_cpu); | ||
| 779 | |||
| 780 | void | ||
| 781 | swiotlb_sync_single_range_for_device(struct device *hwdev, dma_addr_t dev_addr, | ||
| 782 | unsigned long offset, size_t size, | ||
| 783 | enum dma_data_direction dir) | ||
| 784 | { | ||
| 785 | swiotlb_sync_single_range(hwdev, dev_addr, offset, size, dir, | ||
| 786 | SYNC_FOR_DEVICE); | ||
| 787 | } | ||
| 788 | EXPORT_SYMBOL_GPL(swiotlb_sync_single_range_for_device); | ||
| 789 | |||
| 790 | /* | ||
| 791 | * Map a set of buffers described by scatterlist in streaming mode for DMA. | 760 | * Map a set of buffers described by scatterlist in streaming mode for DMA. |
| 792 | * This is the scatter-gather version of the above swiotlb_map_page | 761 | * This is the scatter-gather version of the above swiotlb_map_page |
| 793 | * interface. Here the scatter gather list elements are each tagged with the | 762 | * interface. Here the scatter gather list elements are each tagged with the |
