summaryrefslogtreecommitdiff
path: root/tools/virtio
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-08-26 07:20:11 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-09-03 19:40:58 +0100
commit65e02d0b5039f393c1918e992322ebbb5f077490 (patch)
tree2bee6b3fdcf55dd82ff2e4a6b848fb62930b4b32 /tools/virtio
parente7b61fc4ca5e7c6869f224d56c5c585fea884c94 (diff)
iio: buffer-dmaengine: adjust `bytes_used` with residue info
A transfer may fall shorter than the bytes in the block. This information is available in the residue from the DMA engine, so we can compute actual `bytes_used` with that by subtracting the residue. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Link: https://lore.kernel.org/r/20200826052011.13348-1-lars@metafoo.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/virtio')
0 files changed, 0 insertions, 0 deletions