Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/light/
Dveml6030.c377 int ret, new_gain, gain_idx; in veml6030_set_als_gain() local
382 gain_idx = 3; in veml6030_set_als_gain()
385 gain_idx = 2; in veml6030_set_als_gain()
388 gain_idx = 1; in veml6030_set_als_gain()
391 gain_idx = 0; in veml6030_set_als_gain()
409 if (data->cur_gain < gain_idx) in veml6030_set_als_gain()
410 data->cur_resolution <<= gain_idx - data->cur_gain; in veml6030_set_als_gain()
411 else if (data->cur_gain > gain_idx) in veml6030_set_als_gain()
412 data->cur_resolution >>= data->cur_gain - gain_idx; in veml6030_set_als_gain()
414 data->cur_gain = gain_idx; in veml6030_set_als_gain()
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-6.12.1/drivers/net/phy/
Dmicrochip_t1.c871 int gain_idx = 0, pos_peak = 0, neg_peak = 0; in lan87xx_cable_test_report() local
876 gain_idx = access_ereg(phydev, PHYACC_ATTR_MODE_READ, in lan87xx_cable_test_report()
914 gain_idx >= 0) { in lan87xx_cable_test_report()
1653 int gain_idx, gain_idx_hybrid; in lan887x_cable_test_report() local
1663 gain_idx = phy_read_mmd(phydev, MDIO_MMD_VEND1, in lan887x_cable_test_report()
1665 if (gain_idx < 0) { in lan887x_cable_test_report()
1666 rc = gain_idx; in lan887x_cable_test_report()
1706 neg_peak > MICROCHIP_CABLE_NOISE_MARGIN && gain_idx >= 0) { in lan887x_cable_test_report()
/linux-6.12.1/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.h276 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
/linux-6.12.1/drivers/iio/adc/
Dad4000.c551 int gain_idx, ret; in ad4000_probe() local
648 gain_idx = find_closest(st->gain_milli, ad4000_gains, in ad4000_probe()
650 st->gain_milli = ad4000_gains[gain_idx]; in ad4000_probe()