Home
last modified time | relevance | path

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

/linux/drivers/iio/imu/
H A Dadis16550.c427 u16 sync_scale; in adis16550_get_freq() local
429 ret = __adis_read_reg_16(&st->adis, ADIS16550_REG_SYNC_SCALE, &sync_scale); in adis16550_get_freq()
433 sample_rate = st->clk_freq_hz * sync_scale; in adis16550_get_freq()
463 int sync_scale; in adis16550_set_freq_hz() local
473 sync_scale = scaled_rate / st->clk_freq_hz; in adis16550_set_freq_hz()
475 sync_scale); in adis16550_set_freq_hz()
940 u16 sync_scale; in adis16550_config_sync() local
946 sync_scale = DIV_ROUND_CLOSEST(st->info->int_clk, st->clk_freq_hz); in adis16550_config_sync()
948 if (3000 > sync_scale || 4500 < sync_scale) in adis16550_config_sync()
[all...]
H A Dadis16480.c344 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16480_set_freq()
353 int sync_scale; in adis16480_set_freq() local
378 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq()
379 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_set_freq()
406 u16 sync_scale; in adis16480_get_freq() local
408 ret = __adis_read_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, &sync_scale); in adis16480_get_freq()
412 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq()
1774 u16 sync_scale; in adis16480_probe() local
1777 * In PPS mode, the IMU sample rate is the clk_freq * sync_scale. Hence, in adis16480_probe()
1782 sync_scale in adis16480_probe()
[all...]