Lines Matching refs:t
331 unsigned int t, sample_rate = st->clk_freq; in adis16480_set_freq() local
337 t = val * 1000 + val2 / 1000; in adis16480_set_freq()
338 if (t == 0) in adis16480_set_freq()
355 unsigned long scaled_rate = lcm(st->clk_freq, t); in adis16480_set_freq()
389 t = DIV_ROUND_CLOSEST(sample_rate, t); in adis16480_set_freq()
390 if (t) in adis16480_set_freq()
391 t--; in adis16480_set_freq()
393 if (t > st->chip_info->max_dec_rate) in adis16480_set_freq()
394 t = st->chip_info->max_dec_rate; in adis16480_set_freq()
396 ret = __adis_write_reg_16(&st->adis, ADIS16480_REG_DEC_RATE, t); in adis16480_set_freq()
405 uint16_t t; in adis16480_get_freq() local
421 ret = __adis_read_reg_16(&st->adis, ADIS16480_REG_DEC_RATE, &t); in adis16480_get_freq()
427 freq = DIV_ROUND_CLOSEST(sample_rate, (t + 1)); in adis16480_get_freq()