Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313803
b: refs/heads/master
c: 86d688a
h: refs/heads/master
i:
  313801: be23e68
  313799: aaa7fc5
v: v3
  • Loading branch information
Sonic Zhang authored and Bob Liu committed Jul 24, 2012
1 parent e7a397a commit 0f617fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: c8d11a06bf8242d5d6ff86fa2514c4f50cb847fb
refs/heads/master: 86d688a3c370093f978c7ced9b510944301fc9d4
10 changes: 6 additions & 4 deletions trunk/arch/blackfin/kernel/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ void __dma_sync(dma_addr_t addr, size_t size,
EXPORT_SYMBOL(__dma_sync);

int
dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
dma_map_sg(struct device *dev, struct scatterlist *sg_list, int nents,
enum dma_data_direction direction)
{
struct scatterlist *sg;
int i;

for (i = 0; i < nents; i++, sg++) {
for_each_sg(sg_list, sg, nents, i) {
sg->dma_address = (dma_addr_t) sg_virt(sg);
__dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction);
}
Expand All @@ -136,12 +137,13 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
}
EXPORT_SYMBOL(dma_map_sg);

void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg_list,
int nelems, enum dma_data_direction direction)
{
struct scatterlist *sg;
int i;

for (i = 0; i < nelems; i++, sg++) {
for_each_sg(sg_list, sg, nelems, i) {
sg->dma_address = (dma_addr_t) sg_virt(sg);
__dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction);
}
Expand Down

0 comments on commit 0f617fe

Please sign in to comment.