Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c644 int fifo_rate; in inv_mpu6050_fifo_rate_store() local
650 if (kstrtoint(buf, 10, &fifo_rate)) in inv_mpu6050_fifo_rate_store()
652 if (fifo_rate < INV_MPU6050_MIN_FIFO_RATE || in inv_mpu6050_fifo_rate_store()
653 fifo_rate > INV_MPU6050_MAX_FIFO_RATE) in inv_mpu6050_fifo_rate_store()
661 d = INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate); in inv_mpu6050_fifo_rate_store()
663 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(d); in inv_mpu6050_fifo_rate_store()
679 result = inv_mpu6050_set_lpf(st, fifo_rate); in inv_mpu6050_fifo_rate_store()
702 unsigned fifo_rate; in inv_fifo_rate_show() local
705 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_fifo_rate_show()
708 return scnprintf(buf, PAGE_SIZE, "%u\n", fifo_rate); in inv_fifo_rate_show()
Dinv_mpu_iio.h247 #define INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate) \ argument
248 ((INV_MPU6050_INTERNAL_FREQ_HZ / (fifo_rate)) - 1)