Home
last modified time | relevance | path

Searched refs:fifo_rate (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_magn.c234 int inv_mpu_magn_set_rate(const struct inv_mpu6050_state *st, int fifo_rate) in inv_mpu_magn_set_rate() argument
246 if (fifo_rate > INV_MPU_MAGN_FREQ_HZ_MAX) in inv_mpu_magn_set_rate()
247 d = fifo_rate / INV_MPU_MAGN_FREQ_HZ_MAX - 1; in inv_mpu_magn_set_rate()
Dinv_mpu_core.c894 int fifo_rate; in inv_mpu6050_fifo_rate_store() local
901 if (kstrtoint(buf, 10, &fifo_rate)) in inv_mpu6050_fifo_rate_store()
903 if (fifo_rate < INV_MPU6050_MIN_FIFO_RATE || in inv_mpu6050_fifo_rate_store()
904 fifo_rate > INV_MPU6050_MAX_FIFO_RATE) in inv_mpu6050_fifo_rate_store()
908 d = INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate); in inv_mpu6050_fifo_rate_store()
910 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(d); in inv_mpu6050_fifo_rate_store()
928 result = inv_mpu6050_set_lpf(st, fifo_rate); in inv_mpu6050_fifo_rate_store()
933 result = inv_mpu_magn_set_rate(st, fifo_rate); in inv_mpu6050_fifo_rate_store()
956 unsigned fifo_rate; in inv_fifo_rate_show() local
959 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_fifo_rate_show()
[all …]
Dinv_mpu_magn.h33 int inv_mpu_magn_set_rate(const struct inv_mpu6050_state *st, int fifo_rate);
Dinv_mpu_iio.h366 #define INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate) \ argument
367 ((INV_MPU6050_INTERNAL_FREQ_HZ / (fifo_rate)) - 1)