Searched refs:fifo_rate (Results 1 – 2 of 2) sorted by relevance
644 int fifo_rate; in inv_mpu6050_fifo_rate_store() local650 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() local705 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()
247 #define INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate) \ argument248 ((INV_MPU6050_INTERNAL_FREQ_HZ / (fifo_rate)) - 1)