Searched refs:fifo_rate (Results 1 – 3 of 3) sorted by relevance
234 int inv_mpu_magn_set_rate(const struct inv_mpu6050_state *st, int fifo_rate) in inv_mpu_magn_set_rate() argument246 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()
1296 int fifo_rate; in inv_mpu6050_fifo_rate_store() local1305 if (kstrtoint(buf, 10, &fifo_rate)) in inv_mpu6050_fifo_rate_store()1307 if (fifo_rate < INV_MPU6050_MIN_FIFO_RATE || in inv_mpu6050_fifo_rate_store()1308 fifo_rate > INV_MPU6050_MAX_FIFO_RATE) in inv_mpu6050_fifo_rate_store()1312 d = INV_MPU6050_FIFO_RATE_TO_DIVIDER(fifo_rate); in inv_mpu6050_fifo_rate_store()1314 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(d); in inv_mpu6050_fifo_rate_store()1315 fifo_period = NSEC_PER_SEC / fifo_rate; in inv_mpu6050_fifo_rate_store()1339 result = inv_mpu6050_set_lpf(st, fifo_rate); in inv_mpu6050_fifo_rate_store()1344 result = inv_mpu_magn_set_rate(st, fifo_rate); in inv_mpu6050_fifo_rate_store()1373 unsigned fifo_rate; in inv_fifo_rate_show() local[all …]
33 int inv_mpu_magn_set_rate(const struct inv_mpu6050_state *st, int fifo_rate);