diff options
| author | Paul Cercueil <[email protected]> | 2024-04-19 10:25:36 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-04-20 15:36:41 +0100 |
| commit | fb09febafd160b7aefd9e61f710a0c50f0472403 (patch) | |
| tree | bad45e83ef30015df2d8435180584beea39ebac5 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 04ae3b1a76b77f98a4a0c8ed2c544007334fc680 (diff) | |
iio: buffer-dma: Enable buffer write support
Adding write support to the buffer-dma code is easy - the write()
function basically needs to do the exact same thing as the read()
function: dequeue a block, read or write the data, enqueue the block
when entirely processed.
Therefore, the iio_buffer_dma_read() and the new iio_buffer_dma_write()
now both call a function iio_buffer_dma_io(), which will perform this
task.
Note that we preemptively reset block->bytes_used to the buffer's size
in iio_dma_buffer_request_update(), as in the future the
iio_dma_buffer_enqueue() function won't reset it.
Signed-off-by: Paul Cercueil <[email protected]>
Reviewed-by: Alexandru Ardelean <[email protected]>
Signed-off-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions