Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/buffer/
Dkfifo_buf.c25 size_t bytes_per_datum, unsigned int length) in __iio_allocate_kfifo() argument
27 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_kfifo()
34 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum) in __iio_allocate_kfifo()
38 bytes_per_datum, GFP_KERNEL); in __iio_allocate_kfifo()
49 ret = __iio_allocate_kfifo(buf, buf->buffer.bytes_per_datum, in iio_request_update_kfifo()
70 if (r->bytes_per_datum != bpd) { in iio_set_bytes_per_datum_kfifo()
71 r->bytes_per_datum = bpd; in iio_set_bytes_per_datum_kfifo()
Dindustrialio-buffer-dma.c296 size = DIV_ROUND_UP(queue->buffer.bytes_per_datum * in iio_dma_buffer_request_update()
490 if (n < buffer->bytes_per_datum) in iio_dma_buffer_read()
507 n = rounddown(n, buffer->bytes_per_datum); in iio_dma_buffer_read()
576 buffer->bytes_per_datum = bpd; in iio_dma_buffer_set_bytes_per_datum()
/Linux-v4.19/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c174 size_t bytes_per_datum; in inv_mpu6050_read_fifo() local
203 bytes_per_datum = 0; in inv_mpu6050_read_fifo()
205 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
208 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
220 nb = fifo_count / bytes_per_datum; in inv_mpu6050_read_fifo()
224 data, bytes_per_datum); in inv_mpu6050_read_fifo()
/Linux-v4.19/drivers/iio/gyro/
Dmpu3050-core.c490 unsigned int bytes_per_datum = 8; in mpu3050_trigger_handler() local
524 while (!fifo_overflow && fifocnt > bytes_per_datum) { in mpu3050_trigger_handler()
538 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
541 toread = bytes_per_datum; in mpu3050_trigger_handler()
573 if (fifocnt < bytes_per_datum) { in mpu3050_trigger_handler()
583 if (fifocnt < bytes_per_datum) in mpu3050_trigger_handler()
/Linux-v4.19/include/linux/iio/
Dbuffer_impl.h78 size_t bytes_per_datum; member
/Linux-v4.19/drivers/iio/
Dindustrialio-buffer.c122 datum_size = rb->bytes_per_datum; in iio_buffer_read_first_n_outer()