Searched refs:gain_idx (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/iio/light/ |
D | veml6030.c | 378 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local 383 gain_idx = 3; in veml6030_set_als_gain() 386 gain_idx = 2; in veml6030_set_als_gain() 389 gain_idx = 1; in veml6030_set_als_gain() 392 gain_idx = 0; in veml6030_set_als_gain() 410 if (data->cur_gain < gain_idx) in veml6030_set_als_gain() 411 data->cur_resolution <<= gain_idx - data->cur_gain; in veml6030_set_als_gain() 412 else if (data->cur_gain > gain_idx) in veml6030_set_als_gain() 413 data->cur_resolution >>= data->cur_gain - gain_idx; in veml6030_set_als_gain() 415 data->cur_gain = gain_idx; in veml6030_set_als_gain()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
D | 4965.c | 703 omeas->gain_idx = in il4965_interpolate_chan() 705 m1->gain_idx, ch_i2, in il4965_interpolate_chan() 706 m2->gain_idx); in il4965_interpolate_chan() 721 m, m1->gain_idx, m2->gain_idx, in il4965_interpolate_chan() 722 omeas->gain_idx); in il4965_interpolate_chan() 1128 factory_gain_idx[c] = measurement->gain_idx; in il4965_fill_txpower_tbl()
|
D | 3945.h | 274 u8 gain_idx; /* idx into power (gain) setup table ... */ member
|
D | 3945.c | 1939 *new_idx = samples[i].gain_idx; in il3945_hw_reg_get_matched_power_idx() 1961 gains0 = (s32) samples[idx0].gain_idx * (1 << 19); in il3945_hw_reg_get_matched_power_idx() 1962 gains1 = (s32) samples[idx1].gain_idx * (1 << 19); in il3945_hw_reg_get_matched_power_idx()
|
D | common.h | 257 u8 gain_idx; /* Index into gain table */ member
|
/linux-6.1.9/drivers/net/phy/ |
D | microchip_t1.c | 660 int gain_idx = 0, pos_peak = 0, neg_peak = 0; in lan87xx_cable_test_report() local 665 gain_idx = access_ereg(phydev, PHYACC_ATTR_MODE_READ, in lan87xx_cable_test_report() 703 gain_idx >= 0) { in lan87xx_cable_test_report()
|