Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/
Dindustrialio-gts-helper.c1012 int new_time_sel, int *new_gain) in iio_gts_find_new_gain_sel_by_old_gain_time() argument
1018 *new_gain = -1; in iio_gts_find_new_gain_sel_by_old_gain_time()
1034 new_gain); in iio_gts_find_new_gain_sel_by_old_gain_time()
1038 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_sel_by_old_gain_time()
1069 int *new_gain) in iio_gts_find_new_gain_by_old_gain_time() argument
1075 *new_gain = -1; in iio_gts_find_new_gain_by_old_gain_time()
1086 new_gain); in iio_gts_find_new_gain_by_old_gain_time()
1090 if (!iio_gts_valid_gain(gts, *new_gain)) in iio_gts_find_new_gain_by_old_gain_time()
/linux-6.6.21/drivers/iio/light/
Dveml6030.c378 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local
382 new_gain = 0x1000; /* 0x02 << 11 */ in veml6030_set_als_gain()
385 new_gain = 0x1800; in veml6030_set_als_gain()
388 new_gain = 0x00; in veml6030_set_als_gain()
391 new_gain = 0x800; in veml6030_set_als_gain()
398 VEML6030_ALS_GAIN, new_gain); in veml6030_set_als_gain()
Drohm-bu27034.c276 int new_gain; member
512 &gains[i].new_gain); in bu27034_try_set_int_time()
522 if (gains[i].new_gain < 0) in bu27034_try_set_int_time()
532 gains[i].new_gain, &ok); in bu27034_try_set_int_time()
548 gains[i].new_gain = ret; in bu27034_try_set_int_time()
550 gains[i].chan, gains[i].new_gain); in bu27034_try_set_int_time()
555 ret = bu27034_set_gain(data, gains[i].chan, gains[i].new_gain); in bu27034_try_set_int_time()
635 new_time_sel, &gain.new_gain); in bu27034_set_scale()
650 ret = bu27034_set_gain(data, gain.chan, gain.new_gain); in bu27034_set_scale()
Drohm-bu27008.c873 int ret, old_time_sel, new_time_sel, old_gain, new_gain; in bu27008_try_set_int_time() local
899 old_time_sel, new_time_sel, &new_gain); in bu27008_try_set_int_time()
909 if (new_gain < 0) in bu27008_try_set_int_time()
918 ret = iio_find_closest_gain_low(&data->gts, new_gain, &ok); in bu27008_try_set_int_time()
929 new_gain = ret; in bu27008_try_set_int_time()
930 dev_dbg(data->dev, "scale changed, new gain %u\n", new_gain); in bu27008_try_set_int_time()
933 ret = bu27008_set_gain(data, new_gain); in bu27008_try_set_int_time()
/linux-6.6.21/include/linux/iio/
Diio-gts-helper.h195 int new_time_sel, int *new_gain);
198 int *new_gain);
/linux-6.6.21/sound/soc/codecs/
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-6.6.21/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c1631 u32 gain_x2, new_gain; in rtw8822c_txgapk_cal_gain() local
1636 new_gain = gain; in rtw8822c_txgapk_cal_gain()
1639 gain, offset, new_gain); in rtw8822c_txgapk_cal_gain()
1640 return new_gain; in rtw8822c_txgapk_cal_gain()
1644 new_gain = (gain_x2 >> 1) | (gain_x2 & BIT(0) ? BIT_GAIN_EXT : 0); in rtw8822c_txgapk_cal_gain()
1648 gain, offset, new_gain); in rtw8822c_txgapk_cal_gain()
1650 return new_gain; in rtw8822c_txgapk_cal_gain()