Commit 63213196fd4b05b9c3539cbe34775c60f1f6fad0
1 parent
7a883eaf62
Exists in
master
and in
7 other branches
[SPARC64]: Add missing dma_sync_single_range_for_*().
Reported by Andrew Morton. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 19 additions and 0 deletions Side-by-side Diff
include/asm-sparc64/dma-mapping.h
... | ... | @@ -108,6 +108,25 @@ |
108 | 108 | dma_ops->sync_single_for_device(dev, dma_handle, size, direction); |
109 | 109 | } |
110 | 110 | |
111 | +static inline void dma_sync_single_range_for_cpu(struct device *dev, | |
112 | + dma_addr_t dma_handle, | |
113 | + unsigned long offset, | |
114 | + size_t size, | |
115 | + enum dma_data_direction direction) | |
116 | +{ | |
117 | + dma_sync_single_for_cpu(dev, dma_handle+offset, size, direction); | |
118 | +} | |
119 | + | |
120 | +static inline void dma_sync_single_range_for_device(struct device *dev, | |
121 | + dma_addr_t dma_handle, | |
122 | + unsigned long offset, | |
123 | + size_t size, | |
124 | + enum dma_data_direction direction) | |
125 | +{ | |
126 | + dma_sync_single_for_device(dev, dma_handle+offset, size, direction); | |
127 | +} | |
128 | + | |
129 | + | |
111 | 130 | static inline void dma_sync_sg_for_cpu(struct device *dev, |
112 | 131 | struct scatterlist *sg, int nelems, |
113 | 132 | enum dma_data_direction direction) |