Home
last modified time | relevance | path

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

/linux/drivers/iio/light/
H A Dveml6030.c457 static void veml6030_update_gain_res(struct veml6030_data *data, int gain_idx) in veml6030_update_gain_res() argument
459 if (data->cur_gain < gain_idx) in veml6030_update_gain_res()
460 data->cur_resolution <<= gain_idx - data->cur_gain; in veml6030_update_gain_res()
461 else if (data->cur_gain > gain_idx) in veml6030_update_gain_res()
462 data->cur_resolution >>= data->cur_gain - gain_idx; in veml6030_update_gain_res()
464 data->cur_gain = gain_idx; in veml6030_update_gain_res()
470 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local
475 gain_idx = 3; in veml6030_set_als_gain()
478 gain_idx = 2; in veml6030_set_als_gain()
481 gain_idx = 1; in veml6030_set_als_gain()
[all …]
H A Dapds9306.c569 int gain_idx; in apds9306_intg_time_set() local
581 ret = regmap_field_read(rf->gain, &gain_idx); in apds9306_intg_time_set()
592 gain_old = iio_gts_find_gain_by_sel(&data->gts, gain_idx); in apds9306_intg_time_set()
665 int gain, intg, ret, intg_time_idx, gain_idx; in apds9306_scale_get() local
667 ret = regmap_field_read(rf->gain, &gain_idx); in apds9306_scale_get()
675 gain = iio_gts_find_gain_by_sel(&data->gts, gain_idx); in apds9306_scale_get()
/linux/drivers/net/phy/
H A Dmicrochip_t1.c913 int gain_idx = 0, pos_peak = 0, neg_peak = 0; in lan87xx_cable_test_report() local
918 gain_idx = access_ereg(phydev, PHYACC_ATTR_MODE_READ, in lan87xx_cable_test_report()
956 gain_idx >= 0) { in lan87xx_cable_test_report()
1742 int gain_idx, gain_idx_hybrid; in lan887x_cable_test_report() local
1752 gain_idx = phy_read_mmd(phydev, MDIO_MMD_VEND1, in lan887x_cable_test_report()
1754 if (gain_idx < 0) { in lan887x_cable_test_report()
1755 rc = gain_idx; in lan887x_cable_test_report()
1795 neg_peak > MICROCHIP_CABLE_NOISE_MARGIN && gain_idx >= 0) { in lan887x_cable_test_report()
/linux/drivers/net/wireless/intel/iwlegacy/
H A 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()
H A D3945.h276 u8 gain_idx; /* idx into power (gain) setup table ... */ member
H A 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()
H A Dcommon.h257 u8 gain_idx; /* Index into gain table */ member