Lines Matching full:sync_scale
344 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16480_set_freq()
348 * 3. The last result becomes the IMU sample rate. Use that to calculate SYNC_SCALE 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()
1705 u16 sync_scale; in adis16480_probe() local
1708 * In PPS mode, the IMU sample rate is the clk_freq * sync_scale. Hence, in adis16480_probe()
1713 sync_scale = st->chip_info->int_clk / st->clk_freq; in adis16480_probe()
1714 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_probe()