Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/iio/imu/inv_mpu6050/
A 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()
/linux-6.3-rc2/drivers/iio/buffer/
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()
A 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()
/linux-6.3-rc2/drivers/iio/gyro/
A Dmpu3050-core.c500 unsigned int bytes_per_datum = 8; in mpu3050_trigger_handler() local
534 while (!fifo_overflow && fifocnt > bytes_per_datum) { in mpu3050_trigger_handler()
548 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
551 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()
/linux-6.3-rc2/include/linux/iio/
A Dbuffer_impl.h89 size_t bytes_per_datum; member
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-buffer.c126 datum_size = rb->bytes_per_datum; in iio_buffer_read()

Completed in 17 milliseconds