linux-kernelorg-stable/include/linux/iio
Nuno Sá f9c198c3cc iio: buffer-dma: support getting the DMA channel
Implement the .get_dma_dev() callback for DMA buffers by returning the
device that owns the DMA channel. This allows the core DMABUF
infrastructure to properly map DMA buffers using the correct device,
avoiding the need for bounce buffers on systems where memory is mapped
above the 32-bit range.

The function returns the DMA queue's device, which is the actual device
responsible for DMA operations in buffer-dma implementations.

Cc: stable@vger.kernel.org
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-10-13 08:38:08 +01:00
..
accel
adc
afe
common
dac
frequency
gyro
imu
timer
adc-helpers.h
backend.h
buffer-dma.h iio: buffer-dma: support getting the DMA channel 2025-10-13 08:38:08 +01:00
buffer-dmaengine.h
buffer.h
buffer_impl.h iio: buffer: support getting dma channel from the buffer 2025-10-13 08:38:08 +01:00
configfs.h
consumer.h iio: consumers: Add an iio_multiply_value() helper function 2025-09-10 19:47:04 +01:00
driver.h
events.h
hw-consumer.h
iio-gts-helper.h
iio-opaque.h
iio.h
kfifo_buf.h
machine.h
sw_device.h
sw_trigger.h
sysfs.h
trigger.h
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h iio: add power and energy measurement modifiers 2025-09-13 13:47:19 +01:00