Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63393
b: refs/heads/master
c: 342ff7b
h: refs/heads/master
i:
  63391: f0a38c9
v: v3
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Jul 31, 2007
1 parent 61d2099 commit 42cdd5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 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: 94571065757a4f2619c48ab4e36cafdc635028ce
refs/heads/master: 342ff7b24f42d01b27d884c699855c713d720fcb
27 changes: 0 additions & 27 deletions trunk/drivers/dma/iovlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,29 +143,6 @@ void dma_unpin_iovec_pages(struct dma_pinned_list *pinned_list)
kfree(pinned_list);
}

static dma_cookie_t dma_memcpy_to_kernel_iovec(struct dma_chan *chan, struct
iovec *iov, unsigned char *kdata, size_t len)
{
dma_cookie_t dma_cookie = 0;

while (len > 0) {
if (iov->iov_len) {
int copy = min_t(unsigned int, iov->iov_len, len);
dma_cookie = dma_async_memcpy_buf_to_buf(
chan,
iov->iov_base,
kdata,
copy);
kdata += copy;
len -= copy;
iov->iov_len -= copy;
iov->iov_base += copy;
}
iov++;
}

return dma_cookie;
}

/*
* We have already pinned down the pages we will be using in the iovecs.
Expand All @@ -187,10 +164,6 @@ dma_cookie_t dma_memcpy_to_iovec(struct dma_chan *chan, struct iovec *iov,
if (!chan)
return memcpy_toiovec(iov, kdata, len);

/* -> kernel copies (e.g. smbfs) */
if (!pinned_list)
return dma_memcpy_to_kernel_iovec(chan, iov, kdata, len);

iovec_idx = 0;
while (iovec_idx < pinned_list->nr_iovecs) {
struct dma_page_list *page_list;
Expand Down

0 comments on commit 42cdd5c

Please sign in to comment.