Home
last modified time | relevance | path

Searched refs:pga_gain (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dtmp513.c161 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/
H A Dlo.c307 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 …]
H A Dphy_lcn.c42 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()
H A Dphy_g.h163 s16 pga_gain; /* PGA */ member
H A Dphy_n.c4224 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()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Des7243e.c1946 u8 digital_vol[16], pga_gain[16]; in es7243e_probe() local
1965 pga_gain[index] = ES7243E_MIC_ARRAY_AIN1_PGA; in es7243e_probe()
1968 pga_gain[index] = ES7243E_MIC_ARRAY_AIN2_PGA; in es7243e_probe()
1973 pga_gain[index] = ES7243E_MIC_ARRAY_AIN3_PGA; in es7243e_probe()
1976 pga_gain[index] = ES7243E_MIC_ARRAY_AIN4_PGA; in es7243e_probe()
1981 pga_gain[index] = ES7243E_MIC_ARRAY_AIN5_PGA; in es7243e_probe()
1984 pga_gain[index] = ES7243E_MIC_ARRAY_AIN6_PGA; in es7243e_probe()
1989 pga_gain[index] = ES7243E_MIC_ARRAY_AIN7_PGA; in es7243e_probe()
1992 pga_gain[index] = ES7243E_MIC_ARRAY_AIN8_PGA; in es7243e_probe()
1997 pga_gain[index] = ES7243E_MIC_ARRAY_AIN9_PGA; in es7243e_probe()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_lcn.c143 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 …]
/OK3568_Linux_fs/kernel/Documentation/hwmon/
H A Dtmp513.rst103 and depend on the shunt resistor value and the pga_gain value.
/OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43legacy/
H A Db43legacy.h460 s16 pga_gain; /* PGA */ member
/OK3568_Linux_fs/kernel/drivers/staging/iio/meter/
H A Dmeter.h310 IIO_DEVICE_ATTR(pga_gain, _mode, _show, _store, _addr)