Searched refs:gain_sel (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/iio/test/ |
D | iio-test-gts.c | 177 int ret, gain_sel; in test_iio_gts_find_gain_for_scale_using_time() local 184 TEST_SCALE_8X, 0, &gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 191 KUNIT_EXPECT_EQ(test, TEST_GSEL_4, gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 194 TEST_SCALE_NANO_256X, &gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 201 KUNIT_EXPECT_EQ(test, TEST_GSEL_64, gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 205 TEST_SCALE_MIN_X, 0, &gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 207 KUNIT_EXPECT_EQ(test, TEST_GSEL_1, gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 211 0, TEST_SCALE_NANO_MAX_X, &gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 213 KUNIT_EXPECT_EQ(test, TEST_GSEL_4096, gain_sel); in test_iio_gts_find_gain_for_scale_using_time() 216 TEST_SCALE_NANO_256X, &gain_sel); in test_iio_gts_find_gain_for_scale_using_time() [all …]
|
/linux-6.12.1/drivers/iio/light/ |
D | rohm-bu27008.c | 1241 int val2, int *gain_sel) in bu27008_try_find_new_time_gain() argument 1248 new_time_sel, val, val2, gain_sel); in bu27008_try_find_new_time_gain() 1265 int ret, gain_sel, time_sel; in bu27008_set_scale() local 1277 val, val2, &gain_sel); in bu27008_set_scale() 1279 ret = bu27008_try_find_new_time_gain(data, val, val2, &gain_sel); in bu27008_set_scale() 1284 ret = data->cd->write_gain_sel(data, gain_sel); in bu27008_set_scale()
|
D | rohm-bu27034.c | 485 int ret, time_sel, gain_sel, i; in bu27034_set_scale() local 501 val, val2, &gain_sel); in bu27034_set_scale() 537 &gain_sel); in bu27034_set_scale() 569 ret = bu27034_write_gain_sel(data, chan, gain_sel); in bu27034_set_scale()
|
D | bh1745.c | 254 int gain_sel, int_time_sel; in bh1745_get_scale() local 262 gain_sel = FIELD_GET(BH1745_CTRL2_ADC_GAIN_MASK, value); in bh1745_get_scale() 263 gain = iio_gts_find_gain_by_sel(&data->gts, gain_sel); in bh1745_get_scale()
|
D | apds9306.c | 689 int i, ret, time_sel, gain_sel, intg_time_idx; in apds9306_scale_set() local 696 intg_time_idx, val, val2, &gain_sel); in apds9306_scale_set() 705 time_sel, val, val2, &gain_sel); in apds9306_scale_set() 717 return regmap_field_write(rf->gain, gain_sel); in apds9306_scale_set()
|
/linux-6.12.1/include/linux/iio/ |
D | iio-gts-helper.h | 190 int *gain_sel);
|
/linux-6.12.1/drivers/iio/ |
D | industrialio-gts-helper.c | 899 int *gain_sel) in iio_gts_find_gain_sel_for_scale_using_time() argument 912 *gain_sel = ret; in iio_gts_find_gain_sel_for_scale_using_time()
|