Home
last modified time | relevance | path

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

/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/
H A Dindustrialio-gts-helper.c1004 int new_time_sel, int *new_gain) in iio_gts_find_new_gain_sel_by_old_gain_time() argument
1010 *new_gain = -1; in iio_gts_find_new_gain_sel_by_old_gain_time()
1026 new_gain); in iio_gts_find_new_gain_sel_by_old_gain_time()
1030 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_sel_by_old_gain_time()
1061 int *new_gain) in iio_gts_find_new_gain_by_old_gain_time() argument
1067 *new_gain = -1; in iio_gts_find_new_gain_by_old_gain_time()
1078 new_gain); in iio_gts_find_new_gain_by_old_gain_time()
1082 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_by_old_gain_time()
/linux/drivers/iio/light/
H A Drohm-bu27034.c256 int new_gain; member
426 &gains[i].new_gain); in bu27034_try_set_int_time()
436 if (gains[i].new_gain < 0) in bu27034_try_set_int_time()
446 gains[i].new_gain, &ok); in bu27034_try_set_int_time()
462 gains[i].new_gain = ret; in bu27034_try_set_int_time()
464 gains[i].chan, gains[i].new_gain); in bu27034_try_set_int_time()
469 ret = bu27034_set_gain(data, gains[i].chan, gains[i].new_gain); in bu27034_try_set_int_time()
544 new_time_sel, &gain.new_gain); in bu27034_set_scale()
559 ret = bu27034_set_gain(data, gain.chan, gain.new_gain); in bu27034_set_scale()
H A Dveml6030.c377 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local
381 new_gain = 0x1000; /* 0x02 << 11 */ in veml6030_set_als_gain()
384 new_gain = 0x1800; in veml6030_set_als_gain()
387 new_gain = 0x00; in veml6030_set_als_gain()
390 new_gain = 0x800; in veml6030_set_als_gain()
397 VEML6030_ALS_GAIN, new_gain); in veml6030_set_als_gain()
H A Drohm-bu27008.c890 int ret, old_time_sel, new_time_sel, old_gain, new_gain; in bu27008_try_set_int_time() local
916 old_time_sel, new_time_sel, &new_gain); in bu27008_try_set_int_time()
926 if (new_gain < 0) in bu27008_try_set_int_time()
935 ret = iio_find_closest_gain_low(&data->gts, new_gain, &ok); in bu27008_try_set_int_time()
946 new_gain = ret; in bu27008_try_set_int_time()
947 dev_dbg(data->dev, "scale changed, new gain %u\n", new_gain); in bu27008_try_set_int_time()
950 ret = bu27008_set_gain(data, new_gain); in bu27008_try_set_int_time()
/linux/include/linux/iio/
H A Diio-gts-helper.h195 int new_time_sel, int *new_gain);
198 int *new_gain);
/linux/sound/soc/codecs/
H A Dmt6359.c377 int orig_gain[2], new_gain[2]; in mt6359_put_volsw() local
416 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_HPOUTL]; in mt6359_put_volsw()
417 new_gain[1] = priv->ana_gain[AUDIO_ANALOG_VOLUME_HPOUTR]; in mt6359_put_volsw()
425 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_LINEOUTL]; in mt6359_put_volsw()
426 new_gain[1] = priv->ana_gain[AUDIO_ANALOG_VOLUME_LINEOUTR]; in mt6359_put_volsw()
432 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_HSOUTL]; in mt6359_put_volsw()
438 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_MICAMP1]; in mt6359_put_volsw()
444 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_MICAMP2]; in mt6359_put_volsw()
450 new_gain[0] = priv->ana_gain[AUDIO_ANALOG_VOLUME_MICAMP3]; in mt6359_put_volsw()
455 if (orig_gain[0] != new_gain[0]) { in mt6359_put_volsw()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8822c.c1632 u32 gain_x2, new_gain; in rtw8822c_txgapk_cal_gain() local
1637 new_gain = gain; in rtw8822c_txgapk_cal_gain()
1640 gain, offset, new_gain); in rtw8822c_txgapk_cal_gain()
1641 return new_gain; in rtw8822c_txgapk_cal_gain()
1645 new_gain = (gain_x2 >> 1) | (gain_x2 & BIT(0) ? BIT_GAIN_EXT : 0); in rtw8822c_txgapk_cal_gain()
1649 gain, offset, new_gain); in rtw8822c_txgapk_cal_gain()
1651 return new_gain; in rtw8822c_txgapk_cal_gain()