Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145925
b: refs/heads/master
c: 884d059
h: refs/heads/master
i:
  145923: aa05ba9
v: v3
  • Loading branch information
FUJITA Tomonori authored and Joerg Roedel committed May 29, 2009
1 parent e42a060 commit 80b5c96
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: 15aedea439c4d7dbec17c99b5e1594c01b979833
refs/heads/master: 884d05970bfbc3db368f23460dc4ce63257f240d
10 changes: 5 additions & 5 deletions trunk/lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,15 +839,15 @@ void debug_dma_map_sg(struct device *dev, struct scatterlist *sg,
entry->type = dma_debug_sg;
entry->dev = dev;
entry->paddr = sg_phys(s);
entry->size = s->length;
entry->size = sg_dma_len(s);
entry->dev_addr = sg_dma_address(s);
entry->direction = direction;
entry->sg_call_ents = nents;
entry->sg_mapped_ents = mapped_ents;

if (!PageHighMem(sg_page(s))) {
check_for_stack(dev, sg_virt(s));
check_for_illegal_area(dev, sg_virt(s), s->length);
check_for_illegal_area(dev, sg_virt(s), sg_dma_len(s));
}

add_dma_entry(entry);
Expand All @@ -873,7 +873,7 @@ void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
.dev = dev,
.paddr = sg_phys(s),
.dev_addr = sg_dma_address(s),
.size = s->length,
.size = sg_dma_len(s),
.direction = dir,
.sg_call_ents = 0,
};
Expand Down Expand Up @@ -996,7 +996,7 @@ void debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg,
return;

for_each_sg(sg, s, nelems, i) {
check_sync(dev, sg_dma_address(s), s->dma_length, 0,
check_sync(dev, sg_dma_address(s), sg_dma_len(s), 0,
direction, true);
}
}
Expand All @@ -1012,7 +1012,7 @@ void debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
return;

for_each_sg(sg, s, nelems, i) {
check_sync(dev, sg_dma_address(s), s->dma_length, 0,
check_sync(dev, sg_dma_address(s), sg_dma_len(s), 0,
direction, false);
}
}
Expand Down

0 comments on commit 80b5c96

Please sign in to comment.