aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-09-25 16:52:49 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-29 05:40:16 -0400
commit8c8a0ec57ee285ff407e9a64b3a5a37eaf800ad8 (patch)
tree0f9f00769aba9a43d444eac4435a117a93315137 /arch/arm/common
parent2638b4dbe768aba023a06acd8e7eba708bb76ee6 (diff)
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/dmabounce.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index 0a98148279b1..1cb880b734df 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -444,30 +444,6 @@ dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
444 unmap_single(dev, dma_addr, size, dir); 444 unmap_single(dev, dma_addr, size, dir);
445} 445}
446 446
447void dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_addr,
448 unsigned long offset, size_t size,
449 enum dma_data_direction dir)
450{
451 dev_dbg(dev, "%s(dma=%#x,off=%#lx,size=%zx,dir=%x)\n",
452 __func__, dma_addr, offset, size, dir);
453
454 if (sync_single(dev, dma_addr, offset + size, dir))
455 dma_cache_maint(dma_to_virt(dev, dma_addr) + offset, size, dir);
456}
457EXPORT_SYMBOL(dma_sync_single_range_for_cpu);
458
459void dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_addr,
460 unsigned long offset, size_t size,
461 enum dma_data_direction dir)
462{
463 dev_dbg(dev, "%s(dma=%#x,off=%#lx,size=%zx,dir=%x)\n",
464 __func__, dma_addr, offset, size, dir);
465
466 if (sync_single(dev, dma_addr, offset + size, dir))
467 dma_cache_maint(dma_to_virt(dev, dma_addr) + offset, size, dir);
468}
469EXPORT_SYMBOL(dma_sync_single_range_for_device);
470
471int dmabounce_sync_for_cpu(struct device *dev, dma_addr_t addr, 447int dmabounce_sync_for_cpu(struct device *dev, dma_addr_t addr,
472 unsigned long off, size_t sz, enum dma_data_direction dir) 448 unsigned long off, size_t sz, enum dma_data_direction dir)
473{ 449{