Searched hist:"65 e02d0b5039f393c1918e992322ebbb5f077490" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/buffer/ |
H A D | industrialio-buffer-dmaengine.c | diff 65e02d0b5039f393c1918e992322ebbb5f077490 Wed Aug 26 00:20:11 CDT 2020 Alexandru Ardelean <alexandru.ardelean@analog.com> 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>
|