Lines Matching refs:buffer
27 #include <linux/iio/buffer.h>
487 * enum at91_adc_ts_clb_idx - calibration indexes in NVMEM buffer
530 * @rx_dma_buf: dma handler for the buffer
532 * @buf_idx: index inside the dma buffer where reading was last done
533 * @rx_buf_sz: size of buffer used by DMA operation
554 * @workq: workqueue for buffer data pushing
581 * Nobody minds a buffer being too big.
607 u16 buffer[AT91_BUFFER_MAX_HWORDS] __aligned(8);
1182 /* Transferred length is size in bytes from end of buffer */
1211 /* we start a new DMA, so set buffer index to start */
1215 * compute buffer size w.r.t. watermark and enabled channels.
1295 /* check if we are enabling triggered buffer or the touchscreen */
1299 /* if we are not in triggered mode, we cannot enable the buffer. */
1307 /* we continue with the triggered buffer */
1310 dev_err(&indio_dev->dev, "buffer prepare failed\n");
1346 /* check if we are disabling triggered buffer or the touchscreen */
1461 * just put zeroes to buffer.
1463 * and scan mask when we enable the buffer, and we don't allow
1464 * the buffer to start with a mixed mask (voltage and something
1471 st->buffer[i] = val;
1473 st->buffer[i] = 0;
1478 iio_push_to_buffers_with_timestamp(indio_dev, st->buffer,
1509 * adjust the values inside the buffer for oversampling
1520 /* adjust buffer index */
1522 /* in case of reaching end of buffer, reset index */
1633 st->buffer[i] = val;
1638 * This is intended to push to the callback buffer that another driver
1681 iio_push_to_buffers(indio_dev, st->buffer);
1717 /* triggered buffer without DMA */
1721 /* triggered buffer with DMA - should not happen */
2023 * We make the buffer double the size of the fifo,
2024 * such that DMA uses one half of the buffer (full fifo size)
2237 dev_err(dev, "couldn't initialize the buffer.\n");
2251 * Initially the iio buffer has a length of 2 and