Home
last modified time | relevance | path

Searched refs:hwgain_table (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/iio/
Dindustrialio-gts-helper.c315 per_time_gains[i][j] = gts->hwgain_table[j].gain * in iio_gts_build_avail_scale_table()
553 ret = sanity_check_gain(&gts->hwgain_table[g]); in iio_gts_sanity_check()
562 gain = gts->hwgain_table[g].gain; in iio_gts_sanity_check()
587 gts->hwgain_table = gain_tbl; in iio_init_iio_gts()
728 if (gts->hwgain_table[i].gain == gain) in iio_gts_find_sel_by_gain()
729 return gts->hwgain_table[i].sel; in iio_gts_find_sel_by_gain()
748 if (gts->hwgain_table[i].sel == sel) in iio_gts_find_gain_by_sel()
749 return gts->hwgain_table[i].gain; in iio_gts_find_gain_by_sel()
766 int gain = gts->hwgain_table[i].gain; in iio_gts_get_min_gain()
802 if (gain == gts->hwgain_table[i].gain) { in iio_find_closest_gain_low()
[all …]
/Linux-v6.6/drivers/iio/amplifiers/
Dada4250.c72 static const int hwgain_table[] = {1, 2, 4, 8, 16, 32, 64, 128}; variable
250 *vals = hwgain_table; in ada4250_read_avail()
252 *length = ARRAY_SIZE(hwgain_table); in ada4250_read_avail()
/Linux-v6.6/include/linux/iio/
Diio-gts-helper.h61 const struct iio_gain_sel_pair *hwgain_table; member