Lines Matching defs:samples
30 * The KX022A has FIFO which can store 43 samples of HiRes data from 2
31 * channels. This equals to 43 (samples) * 3 (channels) * 2 (bytes/sample) to
242 * Linux CPUs can handle without dropping samples. Also, the low power mode is
392 * as it will mess the timestamp/scale for samples existing in the
394 * to internally flush the fifo before reconfiguring so the samples in
590 * based on samples acquired when buffer was last enabled.
602 static int __kx022a_fifo_flush(struct iio_dev *idev, unsigned int samples,
636 * now. We can fall anywhere in between two samples so the error in this
658 * frequency, timestamp for last sample and number of samples.
662 * small variation adds when we store a large number of samples.
675 if (samples && count > samples) {
677 * Here we leave some old samples to the buffer. We need to
681 data->timestamp -= (count - samples) * sample_period;
682 count = samples;
714 static int kx022a_fifo_flush(struct iio_dev *idev, unsigned int samples)
720 ret = __kx022a_fifo_flush(idev, samples, false);