Home
last modified time | relevance | path

Searched refs:dac_gain (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/drivers/net/wireless/b43/
Dphy_lcn.c44 u16 dac_gain; member
187 static void b43_phy_lcn_set_dac_gain(struct b43_wldev *dev, u16 dac_gain) in b43_phy_lcn_set_dac_gain() argument
193 dac_ctrl = dac_ctrl | (dac_gain << 7); in b43_phy_lcn_set_dac_gain()
525 b43_phy_lcn_set_dac_gain(dev, target_gains->dac_gain); in b43_phy_lcn_set_tx_gain()
542 tx_gains.dac_gain = 0; in b43_phy_lcn_tx_pwr_ctl_init()
548 tx_gains.dac_gain = 0; in b43_phy_lcn_tx_pwr_ctl_init()
Dphy_n.c3755 u16 tmp, radio_gain, dac_gain; in b43_nphy_tx_power_fix() local
3814 dac_gain = (txgain >> 8) & 0x7; in b43_nphy_tx_power_fix()
3816 dac_gain = (txgain >> 8) & 0x3F; in b43_nphy_tx_power_fix()
3829 b43_phy_write(dev, B43_NPHY_AFECTL_DACGAIN1, dac_gain); in b43_nphy_tx_power_fix()
3831 b43_phy_write(dev, B43_NPHY_AFECTL_DACGAIN2, dac_gain); in b43_nphy_tx_power_fix()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_lcn.c156 u16 dac_gain; member
1064 u16 dac_gain, rfgain0, rfgain1; in wlc_lcnphy_get_tx_gain() local
1066 dac_gain = read_phy_reg(pi, 0x439) >> 0; in wlc_lcnphy_get_tx_gain()
1067 gains->dac_gain = (dac_gain & 0x380) >> 7; in wlc_lcnphy_get_tx_gain()
1078 static void wlc_lcnphy_set_dac_gain(struct brcms_phy *pi, u16 dac_gain) in wlc_lcnphy_set_dac_gain() argument
1084 dac_ctrl = dac_ctrl | (dac_gain << 7); in wlc_lcnphy_set_dac_gain()
1957 wlc_lcnphy_set_dac_gain(pi, target_gains->dac_gain); in wlc_lcnphy_set_tx_gain()
3099 tx_gains.dac_gain = 0; in wlc_lcnphy_tx_pwr_ctrl_init()
3106 tx_gains.dac_gain = 0; in wlc_lcnphy_tx_pwr_ctrl_init()
3233 gains.dac_gain = (u16) (bbmultiqcomp >> 28) & 0x07; in wlc_lcnphy_set_tx_pwr_by_index()
[all …]
Dphy_n.c27837 u16 rad_gain, dac_gain, bbmult, m1m2; in wlc_phy_txpwr_fixpower_nphy() local
27929 dac_gain = (txgain >> 8) & ((1 << (10 - 8 + 1)) - 1); in wlc_phy_txpwr_fixpower_nphy()
27931 dac_gain = (txgain >> 8) & ((1 << (13 - 8 + 1)) - 1); in wlc_phy_txpwr_fixpower_nphy()
27941 write_phy_reg(pi, (core == PHY_CORE_0) ? 0xaa : 0xab, dac_gain); in wlc_phy_txpwr_fixpower_nphy()
28438 u16 rad_gain, dac_gain; in wlc_phy_txpwr_index_nphy() local
28580 dac_gain = (txgain >> 8) & ((1 << (13 - 8 + 1)) - 1); in wlc_phy_txpwr_index_nphy()
28590 0xaa : 0xab, dac_gain); in wlc_phy_txpwr_index_nphy()