Lines Matching refs:t
318 uint16_t t; in adis16334_get_freq() local
320 ret = __adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16334_get_freq()
324 t >>= ADIS16334_RATE_DIV_SHIFT; in adis16334_get_freq()
326 return 819200 >> t; in adis16334_get_freq()
331 unsigned int t; in adis16334_set_freq() local
334 t = ilog2(819200 / freq); in adis16334_set_freq()
336 t = 0; in adis16334_set_freq()
338 if (t > 0x31) in adis16334_set_freq()
339 t = 0x31; in adis16334_set_freq()
341 t <<= ADIS16334_RATE_DIV_SHIFT; in adis16334_set_freq()
342 t |= ADIS16334_RATE_INT_CLK; in adis16334_set_freq()
344 return __adis_write_reg_16(&st->adis, ADIS16400_SMPL_PRD, t); in adis16334_set_freq()
350 uint16_t t; in adis16400_get_freq() local
352 ret = __adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16400_get_freq()
356 sps = (t & ADIS16400_SMPL_PRD_TIME_BASE) ? 52851 : 1638404; in adis16400_get_freq()
357 sps /= (t & ADIS16400_SMPL_PRD_DIV_MASK) + 1; in adis16400_get_freq()
364 unsigned int t; in adis16400_set_freq() local
367 t = 1638404 / freq; in adis16400_set_freq()
368 if (t >= 128) { in adis16400_set_freq()
370 t = 52851 / freq; in adis16400_set_freq()
371 if (t >= 128) in adis16400_set_freq()
372 t = 127; in adis16400_set_freq()
373 } else if (t != 0) { in adis16400_set_freq()
374 t--; in adis16400_set_freq()
377 val |= t; in adis16400_set_freq()
379 if (t >= 0x0A || (val & ADIS16400_SMPL_PRD_TIME_BASE)) in adis16400_set_freq()