diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:17:19 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:17:19 +0200 |
commit | 122da21966aa8beb2f1cfb739ae6e76bcdba2d4c (patch) | |
tree | 75b2912daa0eb0e2da110a867fa487b38bb82f00 /dma/nwl_engine.c | |
parent | 8af9de82916ff76129d01ede66fc4406818c525c (diff) | |
download | pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.gz pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.bz2 pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.tar.xz pcitool-122da21966aa8beb2f1cfb739ae6e76bcdba2d4c.zip |
Sync only required buffers
Diffstat (limited to 'dma/nwl_engine.c')
-rw-r--r-- | dma/nwl_engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dma/nwl_engine.c b/dma/nwl_engine.c index 0b5924d..d90dbef 100644 --- a/dma/nwl_engine.c +++ b/dma/nwl_engine.c @@ -289,10 +289,10 @@ int dma_nwl_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin } #endif /* NWL_FIX_EOP_FOR_BIG_PACKETS */ - pcilib_sync_kernel_memory(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_FROMDEVICE); + pcilib_kmem_sync_block(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_FROMDEVICE, bufnum); void *buf = pcilib_kmem_get_block_ua(ctx->pcilib, info->pages, bufnum); ret = cb(cbattr, eop?PCILIB_DMA_FLAG_EOP:0, bufsize, buf); - pcilib_sync_kernel_memory(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_TODEVICE); + pcilib_kmem_sync_block(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_TODEVICE, bufnum); dma_nwl_return_buffer(ctx, info); |