Searched refs:sync_scale (Results 1 – 2 of 2) sorted by relevance
427 u16 sync_scale; in adis16550_get_freq() local429 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() local473 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() local946 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()951 sync_scale); in adis16550_config_sync()[all …]
353 int sync_scale; in adis16480_set_freq() local378 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() local408 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() local1782 sync_scale = st->chip_info->int_clk / st->clk_freq; in adis16480_probe()1783 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_probe()