Lines Matching full:rf
229 rpwm_val = (FW_PS_STATE_ALL_ON_92E | FW_PS_ACK);/* RF on */ in _rtl92ee_fwlps_leave()
237 rpwm_val = FW_PS_STATE_ALL_ON_92E; /* RF on */ in _rtl92ee_fwlps_leave()
256 rpwm_val = FW_PS_STATE_RF_OFF_LOW_PWR; /* RF off */ in _rtl92ee_fwlps_enter()
264 rpwm_val = FW_PS_STATE_RF_OFF_92E; /* RF off */ in _rtl92ee_fwlps_enter()
1245 /* In MAC power on state, BB and RF maybe in ON state, in _rtl8192ee_reset_pcie_interface_dma()
1444 "Chip RF Type: %s\n", (rtlphy->rf_type == RF_2T2R) ? in _rtl92ee_read_chip_version()
1618 /* turn off RF */ in _rtl92ee_poweroff_adapter()
1788 u32 rf, addr = EEPROM_TX_PWR_INX, group, i = 0; in _rtl8192ee_read_power_value_fromprom() local
1799 for (rf = 0 ; rf < MAX_RF_PATH ; rf++) { in _rtl8192ee_read_power_value_fromprom()
1802 pwr2g->index_cck_base[rf][group] = 0x2D; in _rtl8192ee_read_power_value_fromprom()
1803 pwr2g->index_bw40_base[rf][group] = 0x2D; in _rtl8192ee_read_power_value_fromprom()
1807 pwr2g->bw20_diff[rf][0] = 0x02; in _rtl8192ee_read_power_value_fromprom()
1808 pwr2g->ofdm_diff[rf][0] = 0x04; in _rtl8192ee_read_power_value_fromprom()
1810 pwr2g->bw20_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1811 pwr2g->bw40_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1812 pwr2g->cck_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1813 pwr2g->ofdm_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1819 pwr5g->index_bw40_base[rf][group] = 0x2A; in _rtl8192ee_read_power_value_fromprom()
1823 pwr5g->ofdm_diff[rf][0] = 0x04; in _rtl8192ee_read_power_value_fromprom()
1824 pwr5g->bw20_diff[rf][0] = 0x00; in _rtl8192ee_read_power_value_fromprom()
1825 pwr5g->bw80_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1826 pwr5g->bw160_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1828 pwr5g->ofdm_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1829 pwr5g->bw20_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1830 pwr5g->bw40_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1831 pwr5g->bw80_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1832 pwr5g->bw160_diff[rf][0] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1841 for (rf = 0 ; rf < MAX_RF_PATH ; rf++) { in _rtl8192ee_read_power_value_fromprom()
1844 pwr2g->index_cck_base[rf][group] = hwinfo[addr++]; in _rtl8192ee_read_power_value_fromprom()
1845 if (pwr2g->index_cck_base[rf][group] == 0xFF) in _rtl8192ee_read_power_value_fromprom()
1846 pwr2g->index_cck_base[rf][group] = 0x2D; in _rtl8192ee_read_power_value_fromprom()
1849 pwr2g->index_bw40_base[rf][group] = hwinfo[addr++]; in _rtl8192ee_read_power_value_fromprom()
1850 if (pwr2g->index_bw40_base[rf][group] == 0xFF) in _rtl8192ee_read_power_value_fromprom()
1851 pwr2g->index_bw40_base[rf][group] = 0x2D; in _rtl8192ee_read_power_value_fromprom()
1855 pwr2g->bw40_diff[rf][i] = 0; in _rtl8192ee_read_power_value_fromprom()
1857 pwr2g->bw20_diff[rf][i] = 0x02; in _rtl8192ee_read_power_value_fromprom()
1859 pwr2g->bw20_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1861 if (pwr2g->bw20_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1862 pwr2g->bw20_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1866 pwr2g->ofdm_diff[rf][i] = 0x04; in _rtl8192ee_read_power_value_fromprom()
1868 pwr2g->ofdm_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1870 if (pwr2g->ofdm_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1871 pwr2g->ofdm_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1873 pwr2g->cck_diff[rf][i] = 0; in _rtl8192ee_read_power_value_fromprom()
1877 pwr2g->bw40_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1879 pwr2g->bw40_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1881 if (pwr2g->bw40_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1882 pwr2g->bw40_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1886 pwr2g->bw20_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1888 pwr2g->bw20_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1890 if (pwr2g->bw20_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1891 pwr2g->bw20_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1896 pwr2g->ofdm_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1898 pwr2g->ofdm_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1900 if (pwr2g->ofdm_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1901 pwr2g->ofdm_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1905 pwr2g->cck_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1907 pwr2g->cck_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1909 if (pwr2g->cck_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1910 pwr2g->cck_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1918 pwr5g->index_bw40_base[rf][group] = hwinfo[addr++]; in _rtl8192ee_read_power_value_fromprom()
1919 if (pwr5g->index_bw40_base[rf][group] == 0xFF) in _rtl8192ee_read_power_value_fromprom()
1920 pwr5g->index_bw40_base[rf][group] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1925 pwr5g->bw40_diff[rf][i] = 0; in _rtl8192ee_read_power_value_fromprom()
1928 pwr5g->bw20_diff[rf][i] = 0; in _rtl8192ee_read_power_value_fromprom()
1930 pwr5g->bw20_diff[rf][0] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1932 if (pwr5g->bw20_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1933 pwr5g->bw20_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1937 pwr5g->ofdm_diff[rf][i] = 0x04; in _rtl8192ee_read_power_value_fromprom()
1939 pwr5g->ofdm_diff[rf][0] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1941 if (pwr5g->ofdm_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1942 pwr5g->ofdm_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1947 pwr5g->bw40_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1949 pwr5g->bw40_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1951 if (pwr5g->bw40_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1952 pwr5g->bw40_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1956 pwr5g->bw20_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1958 pwr5g->bw20_diff[rf][i] = (hwinfo[addr] in _rtl8192ee_read_power_value_fromprom()
1960 if (pwr5g->bw20_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1961 pwr5g->bw20_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1968 pwr5g->ofdm_diff[rf][1] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1969 pwr5g->ofdm_diff[rf][2] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1971 pwr5g->ofdm_diff[rf][1] = (hwinfo[addr] & 0xf0) >> 4; in _rtl8192ee_read_power_value_fromprom()
1972 pwr5g->ofdm_diff[rf][2] = (hwinfo[addr] & 0x0f); in _rtl8192ee_read_power_value_fromprom()
1977 pwr5g->ofdm_diff[rf][3] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1979 pwr5g->ofdm_diff[rf][3] = (hwinfo[addr] & 0x0f); in _rtl8192ee_read_power_value_fromprom()
1983 if (pwr5g->ofdm_diff[rf][i] == 0xFF) in _rtl8192ee_read_power_value_fromprom()
1984 pwr5g->ofdm_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1985 else if (pwr5g->ofdm_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1986 pwr5g->ofdm_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
1991 pwr5g->bw80_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
1993 pwr5g->bw80_diff[rf][i] = (hwinfo[addr] & 0xf0) in _rtl8192ee_read_power_value_fromprom()
1995 if (pwr5g->bw80_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
1996 pwr5g->bw80_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
2000 pwr5g->bw160_diff[rf][i] = 0xFE; in _rtl8192ee_read_power_value_fromprom()
2002 pwr5g->bw160_diff[rf][i] = in _rtl8192ee_read_power_value_fromprom()
2004 if (pwr5g->bw160_diff[rf][i] & BIT(3)) in _rtl8192ee_read_power_value_fromprom()
2005 pwr5g->bw160_diff[rf][i] |= 0xF0; in _rtl8192ee_read_power_value_fromprom()
2019 u8 rf, idx; in _rtl92ee_read_txpower_info_from_hwpg() local
2025 for (rf = 0; rf < MAX_RF_PATH; rf++) { in _rtl92ee_read_txpower_info_from_hwpg()
2030 efu->txpwrlevel_cck[rf][i] = in _rtl92ee_read_txpower_info_from_hwpg()
2031 pwr2g.index_cck_base[rf][5]; in _rtl92ee_read_txpower_info_from_hwpg()
2032 efu->txpwrlevel_ht40_1s[rf][i] = in _rtl92ee_read_txpower_info_from_hwpg()
2033 pwr2g.index_bw40_base[rf][idx]; in _rtl92ee_read_txpower_info_from_hwpg()
2035 efu->txpwrlevel_cck[rf][i] = in _rtl92ee_read_txpower_info_from_hwpg()
2036 pwr2g.index_cck_base[rf][idx]; in _rtl92ee_read_txpower_info_from_hwpg()
2037 efu->txpwrlevel_ht40_1s[rf][i] = in _rtl92ee_read_txpower_info_from_hwpg()
2038 pwr2g.index_bw40_base[rf][idx]; in _rtl92ee_read_txpower_info_from_hwpg()
2043 efu->txpwr_5g_bw40base[rf][i] = in _rtl92ee_read_txpower_info_from_hwpg()
2044 pwr5g.index_bw40_base[rf][idx]; in _rtl92ee_read_txpower_info_from_hwpg()
2050 upper = pwr5g.index_bw40_base[rf][idx]; in _rtl92ee_read_txpower_info_from_hwpg()
2051 lower = pwr5g.index_bw40_base[rf][idx + 1]; in _rtl92ee_read_txpower_info_from_hwpg()
2053 efu->txpwr_5g_bw80base[rf][i] = (upper + lower) / 2; in _rtl92ee_read_txpower_info_from_hwpg()
2056 efu->txpwr_cckdiff[rf][i] = pwr2g.cck_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2057 efu->txpwr_legacyhtdiff[rf][i] = pwr2g.ofdm_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2058 efu->txpwr_ht20diff[rf][i] = pwr2g.bw20_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2059 efu->txpwr_ht40diff[rf][i] = pwr2g.bw40_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2061 efu->txpwr_5g_ofdmdiff[rf][i] = pwr5g.ofdm_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2062 efu->txpwr_5g_bw20diff[rf][i] = pwr5g.bw20_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2063 efu->txpwr_5g_bw40diff[rf][i] = pwr5g.bw40_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()
2064 efu->txpwr_5g_bw80diff[rf][i] = pwr5g.bw80_diff[rf][i]; in _rtl92ee_read_txpower_info_from_hwpg()