Lines Matching defs:buffer
15 #include <linux/iio/buffer.h>
237 * @buffer: data buffer + 8 bytes for timestamp if enabled
241 * @bufi: data buffer index
246 * @rx_buf: dma rx buffer cpu address
247 * @rx_dma_buf: dma rx buffer bus address
248 * @rx_buf_sz: dma rx buffer size
264 u16 buffer[STM32_ADC_MAX_SQ + 4] __aligned(8);
793 * conversions, in IIO buffer modes. Otherwise, use ADC interrupt with direct
794 * DR read instead (e.g. read_raw, or triggered buffer mode without DMA).
1450 *res = adc->buffer[0];
1554 * re-enabling it (e.g. write 0, then 1 to buffer/enable).
1563 adc->buffer[adc->bufi] = stm32_adc_readw(adc, regs->dr);
1600 * dma cyclic transfers are used, buffer is split into two periods.
1602 * - always one buffer (period) dma is working on
1603 * - one buffer (period) driver can push data.
1698 /* Residue is size in bytes from end of buffer */
1732 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi];
1734 iio_push_to_buffers(indio_dev, buffer);
1803 /* Reset adc buffer index */
1860 /* reset buffer index */
1862 iio_push_to_buffers_with_timestamp(indio_dev, adc->buffer,
2453 * runs in the IRQ thread to push out buffer along with timestamp.
2467 dev_err(&pdev->dev, "buffer setup failed\n");