Home
last modified time | relevance | path

Searched refs:gain_idx (Results 1 – 5 of 5) sorted by relevance

/drivers/iio/light/
Dveml6030.c378 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()
/drivers/net/wireless/intel/iwlegacy/
D4965.c703 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()
D3945.h274 u8 gain_idx; /* idx into power (gain) setup table ... */ member
D3945.c1939 *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()
Dcommon.h257 u8 gain_idx; /* Index into gain table */ member