Searched refs:sync_scale (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/drivers/iio/imu/ |
H A D | adis16480.c | 347 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16480_set_freq() 356 int sync_scale; in adis16480_set_freq() local 381 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq() 382 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_set_freq() 412 u16 sync_scale; in adis16480_get_freq() local 414 ret = __adis_read_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, &sync_scale); in adis16480_get_freq() 418 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq() 1456 u16 sync_scale; in adis16480_probe() local 1459 * In PPS mode, the IMU sample rate is the clk_freq * sync_scale. Hence, in adis16480_probe() 1464 sync_scale in adis16480_probe() [all...] |
H A D | adis16475.c | 266 u16 sync_scale; in adis16475_get_freq() local 268 ret = __adis_read_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, &sync_scale); in adis16475_get_freq() 272 sample_rate = st->clk_freq * sync_scale; in adis16475_get_freq() 304 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16475_set_freq() 313 int sync_scale; in adis16475_set_freq() local 338 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq() 339 ret = __adis_write_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, sync_scale); in adis16475_set_freq() 1167 * In sync scaled mode, the IMU sample rate is the clk_freq * sync_scale. in adis16475_config_sync_mode()
|
Completed in 4 milliseconds