Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72192
b: refs/heads/master
c: dee9ba8
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Oct 23, 2007
1 parent 8b96984 commit 1a559dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4fcc47a053adc786cc1ab84f3b8909eeb5c37963
refs/heads/master: dee9ba828fb5e72bef17450168774fb360dce983
10 changes: 5 additions & 5 deletions trunk/include/asm-arm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <linux/mm.h> /* need struct page */

#include <asm/scatterlist.h>
#include <linux/scatterlist.h>

/*
* DMA-consistent mapping functions. These allocate/free a region of
Expand Down Expand Up @@ -274,8 +274,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
for (i = 0; i < nents; i++, sg++) {
char *virt;

sg->dma_address = page_to_dma(dev, sg->page) + sg->offset;
virt = page_address(sg->page) + sg->offset;
sg->dma_address = page_to_dma(dev, sg_page(sg)) + sg->offset;
virt = sg_virt(sg);

if (!arch_is_coherent())
dma_cache_maint(virt, sg->length, dir);
Expand Down Expand Up @@ -371,7 +371,7 @@ dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents,
int i;

for (i = 0; i < nents; i++, sg++) {
char *virt = page_address(sg->page) + sg->offset;
char *virt = sg_virt(sg);
if (!arch_is_coherent())
dma_cache_maint(virt, sg->length, dir);
}
Expand All @@ -384,7 +384,7 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents,
int i;

for (i = 0; i < nents; i++, sg++) {
char *virt = page_address(sg->page) + sg->offset;
char *virt = sg_virt(sg);
if (!arch_is_coherent())
dma_cache_maint(virt, sg->length, dir);
}
Expand Down

0 comments on commit 1a559dc

Please sign in to comment.