Home
last modified time | relevance | path

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

/linux/drivers/iio/
H A Dindustrialio-gts-helper.c1124 int new_time_sel, int *new_gain) in iio_gts_find_new_gain_sel_by_old_gain_time() argument
1130 *new_gain = -1; in iio_gts_find_new_gain_sel_by_old_gain_time()
1146 new_gain); in iio_gts_find_new_gain_sel_by_old_gain_time()
1150 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_sel_by_old_gain_time()
1181 int *new_gain) in iio_gts_find_new_gain_by_old_gain_time() argument
1187 *new_gain = -1; in iio_gts_find_new_gain_by_old_gain_time()
1198 new_gain); in iio_gts_find_new_gain_by_old_gain_time()
1202 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_by_old_gain_time()
1228 int *new_gain, bool *in_range) in iio_gts_find_new_gain_by_gain_time_min() argument
1234 new_time, new_gain); in iio_gts_find_new_gain_by_gain_time_min()
[all …]
/linux/drivers/iio/test/
H A Diio-test-gts.c238 int ret, old_gain, new_gain, old_time_sel, new_time_sel; in test_iio_gts_find_new_gain_sel_by_old_gain_time() local
249 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
255 KUNIT_EXPECT_EQ(test, 16, new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
261 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
266 KUNIT_EXPECT_EQ(test, 1, new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
272 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
277 KUNIT_EXPECT_EQ(test, 4096, new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
284 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
292 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
300 old_time_sel, new_time_sel, &new_gain); in test_iio_gts_find_new_gain_sel_by_old_gain_time()
/linux/drivers/iio/light/
H A Dveml3235.c181 int ret, gain_idx, it_idx, new_gain, prev_gain, prev_it; in veml3235_set_it() local
207 val2, &new_gain, &in_range); in veml3235_set_it()
222 ret = iio_gts_find_sel_by_gain(&data->gts, new_gain); in veml3235_set_it()