Searched refs:gain_idx (Results 1 – 5 of 5) sorted by relevance
378 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local383 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()
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()
274 u8 gain_idx; /* idx into power (gain) setup table ... */ member
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()
257 u8 gain_idx; /* Index into gain table */ member