Lines Matching refs:rfpath

26 					 enum radio_path rfpath, u32 offset);
28 enum radio_path rfpath, u32 offset,
136 enum radio_path rfpath, u32 regaddr, in rtl8821ae_phy_query_rf_reg() argument
144 regaddr, rfpath, bitmask); in rtl8821ae_phy_query_rf_reg()
148 original_value = _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_query_rf_reg()
156 regaddr, rfpath, bitmask, original_value); in rtl8821ae_phy_query_rf_reg()
162 enum radio_path rfpath, in rtl8821ae_phy_set_rf_reg() argument
170 regaddr, bitmask, data, rfpath); in rtl8821ae_phy_set_rf_reg()
176 _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_set_rf_reg()
181 _rtl8821ae_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl8821ae_phy_set_rf_reg()
187 regaddr, bitmask, data, rfpath); in rtl8821ae_phy_set_rf_reg()
191 enum radio_path rfpath, u32 offset) in _rtl8821ae_phy_rf_serial_read() argument
212 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
214 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
224 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
227 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
231 if (rfpath == RF90_PATH_A) in _rtl8821ae_phy_rf_serial_read()
234 else if (rfpath == RF90_PATH_B) in _rtl8821ae_phy_rf_serial_read()
251 enum radio_path rfpath, u32 offset, in _rtl8821ae_phy_rf_serial_write() argument
256 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8821ae_phy_rf_serial_write()
271 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl8821ae_phy_rf_serial_write()
829 enum radio_path rfpath, u32 regaddr) in _rtl8821ae_config_rf_reg() argument
837 rtl_set_rfreg(hw, rfpath, regaddr, RFREG_OFFSET_MASK, data); in _rtl8821ae_config_rf_reg()
887 u8 band, rfpath, txnum, rate_section; in _rtl8821ae_phy_init_tx_power_by_rate() local
890 for (rfpath = 0; rfpath < TX_PWR_BY_RATE_NUM_RF; ++rfpath) in _rtl8821ae_phy_init_tx_power_by_rate()
896 [rfpath][txnum][rate_section] = 0; in _rtl8821ae_phy_init_tx_power_by_rate()
1463 u8 base = 0, rfpath = 0; in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value() local
1465 for (rfpath = RF90_PATH_A; rfpath <= RF90_PATH_B; ++rfpath) { in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1466 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()
1468 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1471 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()
1473 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1476 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1479 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()
1481 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1484 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1487 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()
1490 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][5], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1494 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1497 …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()
1499 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][7], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1502 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][8], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1505 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1508 …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()
1510 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1513 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][10], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1516 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][11], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1519 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()
1521 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][1], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1524 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][2], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1527 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()
1529 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][3], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1532 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][4], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1535 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()
1537 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][5], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1540 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][6], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1543 …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()
1545 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][7], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1548 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][8], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1551 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1554 …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()
1556 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_1TX][9], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1559 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][10], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1562 &rtlphy->tx_power_by_rate_offset[BAND_ON_5G][rfpath][RF_2TX][11], in _rtl8821ae_phy_convert_txpower_dbm_to_relative_value()
1949 u32 band, u32 rfpath, in _rtl8821ae_store_tx_power_by_rate() argument
1961 if (rfpath >= MAX_RF_PATH) { in _rtl8821ae_store_tx_power_by_rate()
1962 rtl_dbg(rtlpriv, COMP_INIT, DBG_WARNING, "Invalid RfPath %d\n", rfpath); in _rtl8821ae_store_tx_power_by_rate()
1963 rfpath = MAX_RF_PATH - 1; in _rtl8821ae_store_tx_power_by_rate()
1969 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = data; in _rtl8821ae_store_tx_power_by_rate()
1972 band, rfpath, txnum, rate_section, in _rtl8821ae_store_tx_power_by_rate()
1973 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section]); in _rtl8821ae_store_tx_power_by_rate()
2046 enum radio_path rfpath) in rtl8812ae_phy_config_rf_with_headerfile() argument
2058 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl8812ae_phy_config_rf_with_headerfile()
2059 switch (rfpath) { in rtl8812ae_phy_config_rf_with_headerfile()
2070 pr_err("switch case %#x not processed\n", rfpath); in rtl8812ae_phy_config_rf_with_headerfile()
2077 enum radio_path rfpath) in rtl8821ae_phy_config_rf_with_headerfile() argument
2087 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl8821ae_phy_config_rf_with_headerfile()
2088 switch (rfpath) { in rtl8821ae_phy_config_rf_with_headerfile()
2097 pr_err("switch case %#x not processed\n", rfpath); in rtl8821ae_phy_config_rf_with_headerfile()