Searched refs:bytes_per_datum (Results 1 – 4 of 4) sorted by relevance
26 size_t bytes_per_datum, unsigned int length) in __iio_allocate_kfifo() argument28 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()
339 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()
114 size_t bytes_per_datum; member
160 datum_size = rb->bytes_per_datum; in iio_buffer_read()