Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/iio/imu/
Dadis16480.c354 int sync_scale; in adis16480_set_freq() local
379 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq()
380 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_set_freq()
410 u16 sync_scale; in adis16480_get_freq() local
412 ret = __adis_read_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, &sync_scale); in adis16480_get_freq()
416 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq()
1460 u16 sync_scale; in adis16480_probe() local
1468 sync_scale = st->chip_info->int_clk / st->clk_freq; in adis16480_probe()
1469 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_probe()
Dadis16475.c268 u16 sync_scale; in adis16475_get_freq() local
270 ret = __adis_read_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, &sync_scale); in adis16475_get_freq()
274 sample_rate = st->clk_freq * sync_scale; in adis16475_get_freq()
315 int sync_scale; in adis16475_set_freq() local
340 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq()
341 ret = __adis_write_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, sync_scale); in adis16475_set_freq()