Lines Matching refs:radio_attenuation
1792 s16 radio_attenuation; in b43legacy_phy_xmitpower() local
1891 radio_attenuation = phy->rfatt; in b43legacy_phy_xmitpower()
1892 radio_attenuation += radio_att_delta; in b43legacy_phy_xmitpower()
1898 if (radio_attenuation < 0) { in b43legacy_phy_xmitpower()
1899 baseband_attenuation -= (4 * -radio_attenuation); in b43legacy_phy_xmitpower()
1900 radio_attenuation = 0; in b43legacy_phy_xmitpower()
1901 } else if (radio_attenuation > 9) { in b43legacy_phy_xmitpower()
1902 baseband_attenuation += (4 * (radio_attenuation - 9)); in b43legacy_phy_xmitpower()
1903 radio_attenuation = 9; in b43legacy_phy_xmitpower()
1905 while (baseband_attenuation < 0 && radio_attenuation > 0) { in b43legacy_phy_xmitpower()
1907 radio_attenuation--; in b43legacy_phy_xmitpower()
1909 while (baseband_attenuation > 11 && radio_attenuation < 9) { in b43legacy_phy_xmitpower()
1911 radio_attenuation++; in b43legacy_phy_xmitpower()
1918 if (radio_attenuation <= 1) { in b43legacy_phy_xmitpower()
1921 radio_attenuation += 2; in b43legacy_phy_xmitpower()
1926 (radio_attenuation - 2); in b43legacy_phy_xmitpower()
1927 radio_attenuation = 2; in b43legacy_phy_xmitpower()
1929 } else if (radio_attenuation > 4 && txpower != 0) { in b43legacy_phy_xmitpower()
1932 radio_attenuation -= 3; in b43legacy_phy_xmitpower()
1935 radio_attenuation -= 2; in b43legacy_phy_xmitpower()
1943 radio_attenuation = clamp_val(radio_attenuation, 0, 9); in b43legacy_phy_xmitpower()
1944 phy->rfatt = radio_attenuation; in b43legacy_phy_xmitpower()
1951 radio_attenuation, txpower); in b43legacy_phy_xmitpower()