Lines Matching refs:baseband_attenuation
1768 s16 baseband_attenuation; in b43legacy_phy_xmitpower() local
1864 baseband_attenuation = phy->bbatt; in b43legacy_phy_xmitpower()
1865 baseband_attenuation += baseband_att_delta; in b43legacy_phy_xmitpower()
1874 baseband_attenuation -= (4 * -radio_attenuation); in b43legacy_phy_xmitpower()
1877 baseband_attenuation += (4 * (radio_attenuation - 9)); in b43legacy_phy_xmitpower()
1880 while (baseband_attenuation < 0 && radio_attenuation > 0) { in b43legacy_phy_xmitpower()
1881 baseband_attenuation += 4; in b43legacy_phy_xmitpower()
1884 while (baseband_attenuation > 11 && radio_attenuation < 9) { in b43legacy_phy_xmitpower()
1885 baseband_attenuation -= 4; in b43legacy_phy_xmitpower()
1889 baseband_attenuation = clamp_val(baseband_attenuation, 0, 11); in b43legacy_phy_xmitpower()
1897 baseband_attenuation += 2; in b43legacy_phy_xmitpower()
1900 baseband_attenuation += 4 * in b43legacy_phy_xmitpower()
1906 if (baseband_attenuation < 3) { in b43legacy_phy_xmitpower()
1908 baseband_attenuation += 2; in b43legacy_phy_xmitpower()
1911 baseband_attenuation -= 2; in b43legacy_phy_xmitpower()
1917 baseband_attenuation = clamp_val(baseband_attenuation, 0, 11); in b43legacy_phy_xmitpower()
1920 phy->bbatt = baseband_attenuation; in b43legacy_phy_xmitpower()
1925 b43legacy_radio_set_txpower_bg(dev, baseband_attenuation, in b43legacy_phy_xmitpower()