Searched refs:bytes_per_datum (Results 1 – 6 of 6) sorted by relevance
25 size_t bytes_per_datum, unsigned int length) in __iio_allocate_kfifo() argument27 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()
296 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()
174 size_t bytes_per_datum; in inv_mpu6050_read_fifo() local203 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()
490 unsigned int bytes_per_datum = 8; in mpu3050_trigger_handler() local524 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()
78 size_t bytes_per_datum; member
122 datum_size = rb->bytes_per_datum; in iio_buffer_read_first_n_outer()