Home
last modified time | relevance | path

Searched refs:bytes_per_datum (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/iio/buffer/
H A Dkfifo_buf.c26 size_t bytes_per_datum, unsigned int length) in __iio_allocate_kfifo() argument
28 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_kfifo()
35 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum) in __iio_allocate_kfifo()
39 bytes_per_datum, GFP_KERNEL); in __iio_allocate_kfifo()
50 ret = __iio_allocate_kfifo(buf, buf->buffer.bytes_per_datum, in iio_request_update_kfifo()
71 if (r->bytes_per_datum != bpd) { in iio_set_bytes_per_datum_kfifo()
72 r->bytes_per_datum = bpd; in iio_set_bytes_per_datum_kfifo()
H A Dindustrialio-buffer-dma.c339 size = DIV_ROUND_UP(queue->buffer.bytes_per_datum * in iio_dma_buffer_request_update()
579 if (n < buffer->bytes_per_datum) in iio_dma_buffer_io()
596 n = rounddown(n, buffer->bytes_per_datum); in iio_dma_buffer_io()
815 buffer->bytes_per_datum = bpd; in iio_dma_buffer_set_bytes_per_datum()
/linux/include/linux/iio/
H A Dbuffer_impl.h114 size_t bytes_per_datum; member
/linux/drivers/iio/
H A Dindustrialio-buffer.c160 datum_size = rb->bytes_per_datum; in iio_buffer_read()