Lines Matching defs:chip_info
167 const struct adis16480_chip_info *chip_info;
363 if (scaled_rate > st->chip_info->int_clk)
364 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq;
366 scaled_rate = st->chip_info->int_clk / scaled_rate * scaled_rate;
393 if (t > st->chip_info->max_dec_rate)
394 t = st->chip_info->max_dec_rate;
601 *freq = st->chip_info->filter_freqs[(val >> offset) & 0x3];
630 best_diff = st->chip_info->filter_freqs[0];
632 if (st->chip_info->filter_freqs[i] >= freq) {
633 diff = st->chip_info->filter_freqs[i] - freq;
665 *val = st->chip_info->gyro_max_scale;
666 *val2 = st->chip_info->gyro_max_val;
669 *val = st->chip_info->accel_max_scale;
670 *val2 = st->chip_info->accel_max_val;
682 *val = st->chip_info->temp_scale / 1000;
683 *val2 = (st->chip_info->temp_scale % 1000) * 1000;
699 *val = DIV_ROUND_CLOSEST_ULL(temp, st->chip_info->temp_scale);
1339 if (st->chip_info->has_pps_clk_mode) {
1366 if (st->chip_info->has_pps_clk_mode) {
1406 st->chip_info = &adis16480_chip_info[id->driver_data];
1408 indio_dev->channels = st->chip_info->channels;
1409 indio_dev->num_channels = st->chip_info->num_channels;
1413 adis16480_data = &st->chip_info->adis_data;
1423 if (st->chip_info->has_sleep_cnt) {
1457 sync_scale = st->chip_info->int_clk / st->clk_freq;
1463 st->clk_freq = st->chip_info->int_clk;