Lines Matching refs:rfpath
26 enum radio_path rfpath, u32 offset);
28 enum radio_path rfpath, u32 offset,
142 enum radio_path rfpath, u32 regaddr, in rtl8821ae_phy_query_rf_reg() argument
150 regaddr, rfpath, bitmask); in rtl8821ae_phy_query_rf_reg()
154 original_value = _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_query_rf_reg()
162 regaddr, rfpath, bitmask, original_value); in rtl8821ae_phy_query_rf_reg()
168 enum radio_path rfpath, in rtl8821ae_phy_set_rf_reg() argument
176 regaddr, bitmask, data, rfpath); in rtl8821ae_phy_set_rf_reg()
182 _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_set_rf_reg()
187 _rtl8821ae_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl8821ae_phy_set_rf_reg()
193 regaddr, bitmask, data, rfpath); in rtl8821ae_phy_set_rf_reg()
197 enum radio_path rfpath, u32 offset) in _rtl8821ae_phy_rf_serial_read() argument
218 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
220 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
230 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
233 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
237 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
240 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
257 enum radio_path rfpath, u32 offset, in _rtl8821ae_phy_rf_serial_write() argument
262 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8821ae_phy_rf_serial_write()
277 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl8821ae_phy_rf_serial_write()
836 enum radio_path rfpath, u32 regaddr) in _rtl8821ae_config_rf_reg() argument
844 rtl_set_rfreg(hw, rfpath, regaddr, RFREG_OFFSET_MASK, data); in _rtl8821ae_config_rf_reg()
894 u8 band, rfpath, txnum, rate_section; in _rtl8821ae_phy_init_tx_power_by_rate() local
897 for (rfpath = 0; rfpath < TX_PWR_BY_RATE_NUM_RF; ++rfpath) in _rtl8821ae_phy_init_tx_power_by_rate()
903 [rfpath][txnum][rate_section] = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
1470 u8 base = 0, rfpath = 0; in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value() local
1472 for (rfpath = RF90_PATH_A; rfpath <= RF90_PATH_B; ++rfpath) { in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1473 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, CCK); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1475 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1478 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, OFDM); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1480 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1483 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1486 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, HT_MCS0_MCS7); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1488 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1491 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1494 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_2TX, HT_MCS8_MCS15); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1497 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][5], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1501 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1504 …base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_1TX, VHT_1SSMCS0_1SSMC… in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1506 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][7], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1509 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][8], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1512 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1515 …base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_2_4G, rfpath, RF_2TX, VHT_2SSMCS0_2SSMC… in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1517 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1520 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][10], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1523 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][11], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1526 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, OFDM); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1528 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][1], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1531 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][2], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1534 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, HT_MCS0_MCS7); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1536 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][3], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1539 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][4], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1542 base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_2TX, HT_MCS8_MCS15); in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1544 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][5], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1547 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][6], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1550 …base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_1TX, VHT_1SSMCS0_1SSMCS9… in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1552 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][7], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1555 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][8], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1558 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1561 …base = _rtl8821ae_phy_get_txpower_by_rate_base(hw, BAND_ON_5G, rfpath, RF_2TX, VHT_2SSMCS0_2SSMCS9… in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1563 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1566 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][10], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1569 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][11], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1967 u32 band, u32 rfpath, in _rtl8821ae_store_tx_power_by_rate() argument
1979 if (rfpath >= MAX_RF_PATH) { in _rtl8821ae_store_tx_power_by_rate()
1980 rtl_dbg(rtlpriv, COMP_INIT, DBG_WARNING, "Invalid RfPath %d\n", rfpath); in _rtl8821ae_store_tx_power_by_rate()
1981 rfpath = MAX_RF_PATH - 1; in _rtl8821ae_store_tx_power_by_rate()
1987 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = data; in _rtl8821ae_store_tx_power_by_rate()
1990 band, rfpath, txnum, rate_section, in _rtl8821ae_store_tx_power_by_rate()
1991 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section]); in _rtl8821ae_store_tx_power_by_rate()
2070 enum radio_path rfpath) in rtl8812ae_phy_config_rf_with_headerfile() argument
2082 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl8812ae_phy_config_rf_with_headerfile()
2083 switch (rfpath) { in rtl8812ae_phy_config_rf_with_headerfile()
2096 pr_err("switch case %#x not processed\n", rfpath); in rtl8812ae_phy_config_rf_with_headerfile()
2103 enum radio_path rfpath) in rtl8821ae_phy_config_rf_with_headerfile() argument
2113 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl8821ae_phy_config_rf_with_headerfile()
2114 switch (rfpath) { in rtl8821ae_phy_config_rf_with_headerfile()
2124 pr_err("switch case %#x not processed\n", rfpath); in rtl8821ae_phy_config_rf_with_headerfile()