Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/imu/
H A Dadis16480.c356 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
1464 sync_scale = st->chip_info->int_clk / st->clk_freq; in adis16480_probe()
1465 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_probe()
H A Dadis16475.c266 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()
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()