Home
last modified time | relevance | path

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

/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c121 size_t bytes_per_datum; in inv_mpu6050_read_fifo() local
144 bytes_per_datum = 0; in inv_mpu6050_read_fifo()
146 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
149 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
152 bytes_per_datum += INV_MPU6050_BYTES_PER_TEMP_SENSOR; in inv_mpu6050_read_fifo()
155 bytes_per_datum += INV_MPU9X50_BYTES_MAGN; in inv_mpu6050_read_fifo()
172 nb = 3 * bytes_per_datum; in inv_mpu6050_read_fifo()
179 nb = fifo_count / bytes_per_datum; in inv_mpu6050_read_fifo()
183 st->data, bytes_per_datum); in inv_mpu6050_read_fifo()
/drivers/iio/buffer/
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()
Dindustrialio-buffer-dma.c294 size = DIV_ROUND_UP(queue->buffer.bytes_per_datum * in iio_dma_buffer_request_update()
488 if (n < buffer->bytes_per_datum) in iio_dma_buffer_read()
505 n = rounddown(n, buffer->bytes_per_datum); in iio_dma_buffer_read()
574 buffer->bytes_per_datum = bpd; in iio_dma_buffer_set_bytes_per_datum()
/drivers/iio/gyro/
Dmpu3050-core.c501 unsigned int bytes_per_datum = 8; in mpu3050_trigger_handler() local
535 while (!fifo_overflow && fifocnt > bytes_per_datum) { in mpu3050_trigger_handler()
549 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
552 toread = bytes_per_datum; in mpu3050_trigger_handler()
586 if (fifocnt < bytes_per_datum) { in mpu3050_trigger_handler()
596 if (fifocnt < bytes_per_datum) in mpu3050_trigger_handler()
/drivers/iio/
Dindustrialio-buffer.c120 datum_size = rb->bytes_per_datum; in iio_buffer_read_outer()