Searched refs:pga_gain (Results 1 – 9 of 9) sorted by relevance
/drivers/hwmon/ |
D | tmp513.c | 161 u16 pga_gain; member 179 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift() 532 int vshunt_max = data->pga_gain * 40; in tmp51x_calibrate() 640 if (data->pga_gain == 8) { in tmp51x_pga_gain_to_reg() 642 } else if (data->pga_gain == 4) { in tmp51x_pga_gain_to_reg() 644 } else if (data->pga_gain == 2) { in tmp51x_pga_gain_to_reg() 646 } else if (data->pga_gain == 1) { in tmp51x_pga_gain_to_reg() 649 dev_err(dev, "ti,pga-gain is invalid: %u\n", data->pga_gain); in tmp51x_pga_gain_to_reg() 671 data->pga_gain = (ret >= 0) ? val : TMP51X_PGA_DEFAULT; in tmp51x_read_properties() 682 if (data->shunt_uohms > data->pga_gain * 40 * 1000 * 1000) { in tmp51x_read_properties() [all …]
|
/drivers/net/wireless/broadcom/b43/ |
D | lo.c | 307 gphy->pga_gain = trsw_rx_gain / 3; in lo_measure_gain_values() 308 if (gphy->pga_gain >= 5) { in lo_measure_gain_values() 309 gphy->pga_gain -= 5; in lo_measure_gain_values() 318 gphy->pga_gain = 2; in lo_measure_gain_values() 321 gphy->pga_gain = 1; in lo_measure_gain_values() 324 gphy->pga_gain = 0; in lo_measure_gain_values() 327 gphy->pga_gain = 0; in lo_measure_gain_values() 496 tmp = (gphy->pga_gain << 8); in lo_measure_restore() 503 tmp = (gphy->pga_gain | 0xEFA0); in lo_measure_restore() 619 gphy->pga_gain, in lo_probe_possible_loctls() [all …]
|
D | phy_lcn.c | 42 u16 pga_gain; member 517 (target_gains->gm_gain | (target_gains->pga_gain << 8))); in b43_phy_lcn_set_tx_gain() 521 (target_gains->gm_gain | (target_gains->pga_gain << 8))); in b43_phy_lcn_set_tx_gain() 540 tx_gains.pga_gain = 12; in b43_phy_lcn_tx_pwr_ctl_init() 546 tx_gains.pga_gain = 15; in b43_phy_lcn_tx_pwr_ctl_init()
|
D | phy_g.h | 163 s16 pga_gain; /* PGA */ member
|
D | phy_n.c | 4224 u8 pga_gain, pad_gain; in b43_nphy_tx_gain_table_upload() local 4257 pga_gain = (table[i] >> 24) & 0xf; in b43_nphy_tx_gain_table_upload() 4262 rfpwr_offset = rf_pwr_offset_table[pga_gain]; in b43_nphy_tx_gain_table_upload() 4264 pga_gain = (table[i] >> 24) & 0xF; in b43_nphy_tx_gain_table_upload() 4266 rfpwr_offset = b43_ntab_papd_pga_gain_delta_ipa_2g[pga_gain]; in b43_nphy_tx_gain_table_upload()
|
/drivers/iio/adc/ |
D | ti-ads131e08.c | 86 unsigned int pga_gain; member 284 unsigned int pga_gain) in ads131e08_pga_gain_to_field_value() argument 289 if (ads131e08_pga_gain_tbl[i].gain == pga_gain) in ads131e08_pga_gain_to_field_value() 302 unsigned int channel, unsigned int pga_gain) in ads131e08_set_pga_gain() argument 306 field_value = ads131e08_pga_gain_to_field_value(st, pga_gain); in ads131e08_set_pga_gain() 415 st->channel_config[i].pga_gain); in ads131e08_initial_config() 530 *value /= st->channel_config[channel->address].pga_gain; in ads131e08_read_raw() 746 channel_config[i].pga_gain = ADS131E08_DEFAULT_PGA_GAIN; in ads131e08_alloc_channels() 752 channel_config[i].pga_gain = tmp; in ads131e08_alloc_channels()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_lcn.c | 143 u16 pga_gain; member 1007 gains->pga_gain = (rfgain0 >> 8) & 0xff; in wlc_lcnphy_get_tx_gain() 1870 (target_gains->pga_gain << 8)) << in wlc_lcnphy_set_tx_gain() 1880 (target_gains->pga_gain << 8)) << in wlc_lcnphy_set_tx_gain() 2663 (target_gains->pga_gain << 4) | (target_gains->pad_gain); in wlc_lcnphy_tx_iqlo_cal() 2673 cal_gains.pga_gain = in wlc_lcnphy_tx_iqlo_cal() 3025 tx_gains.pga_gain = 12; in wlc_lcnphy_tx_pwr_ctrl_init() 3032 tx_gains.pga_gain = 15; in wlc_lcnphy_tx_pwr_ctrl_init() 3158 gains.pga_gain = (u16) (txgain >> 8) & 0xff; in wlc_lcnphy_set_tx_pwr_by_index() 3859 target_gains.pga_gain = 0; in wlc_lcnphy_txpwrtbl_iqlo_cal() [all …]
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | b43legacy.h | 460 s16 pga_gain; /* PGA */ member
|
/drivers/staging/iio/meter/ |
D | meter.h | 310 IIO_DEVICE_ATTR(pga_gain, _mode, _show, _store, _addr)
|