Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c50 size_t bytes_per_datum; in inv_mpu6050_read_fifo() local
75 bytes_per_datum = 0; in inv_mpu6050_read_fifo()
77 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
80 bytes_per_datum += INV_MPU6050_BYTES_PER_3AXIS_SENSOR; in inv_mpu6050_read_fifo()
83 bytes_per_datum += INV_MPU6050_BYTES_PER_TEMP_SENSOR; in inv_mpu6050_read_fifo()
86 bytes_per_datum += INV_MPU9X50_BYTES_MAGN; in inv_mpu6050_read_fifo()
103 nb = 3 * bytes_per_datum; in inv_mpu6050_read_fifo()
110 nb = fifo_count / bytes_per_datum; in inv_mpu6050_read_fifo()
111 fifo_count = nb * bytes_per_datum; in inv_mpu6050_read_fifo()
130 memcpy(data, &st->data[i * bytes_per_datum], bytes_per_datum); in inv_mpu6050_read_fifo()
/linux-6.6.21/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()
/linux-6.6.21/drivers/iio/gyro/
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.6.21/include/linux/iio/
Dbuffer_impl.h89 size_t bytes_per_datum; member
/linux-6.6.21/drivers/iio/
Dindustrialio-buffer.c126 datum_size = rb->bytes_per_datum; in iio_buffer_read()