Lines Matching refs:rfpath

237 				      enum radio_path rfpath, u32 offset)  in _rtl92d_phy_rf_serial_read()  argument
242 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_read()
250 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
265 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
268 else if (rfpath == RF90_PATH_B) in _rtl92d_phy_rf_serial_read()
278 rfpath, pphyreg->rf_rb, retvalue); in _rtl92d_phy_rf_serial_read()
283 enum radio_path rfpath, in _rtl92d_phy_rf_serial_write() argument
290 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_write()
297 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92d_phy_rf_serial_write()
301 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92d_phy_query_rf_reg() argument
308 regaddr, rfpath, bitmask); in rtl92d_phy_query_rf_reg()
310 original_value = _rtl92d_phy_rf_serial_read(hw, rfpath, regaddr); in rtl92d_phy_query_rf_reg()
316 regaddr, rfpath, bitmask, original_value); in rtl92d_phy_query_rf_reg()
320 void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92d_phy_set_rf_reg() argument
329 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
336 rfpath, regaddr); in rtl92d_phy_set_rf_reg()
341 _rtl92d_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92d_phy_set_rf_reg()
346 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
755 enum radio_path rfpath) in rtl92d_phy_config_rf_with_headerfile() argument
779 rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "Radio No %x\n", rfpath); in rtl92d_phy_config_rf_with_headerfile()
784 if ((content == radiob_txt) && (rfpath == RF90_PATH_A)) { in rtl92d_phy_config_rf_with_headerfile()
790 switch (rfpath) { in rtl92d_phy_config_rf_with_headerfile()
793 rtl_rfreg_delay(hw, rfpath, radioa_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
800 rtl_rfreg_delay(hw, rfpath, radiob_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
807 pr_err("switch case %#x not processed\n", rfpath); in rtl92d_phy_config_rf_with_headerfile()
1064 u8 channel, u8 rfpath) in _rtl92d_phy_reload_imr_setting() argument
1072 rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, "====>path %d\n", rfpath); in _rtl92d_phy_reload_imr_setting()
1088 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1102 rfpath); in _rtl92d_phy_reload_imr_setting()
1109 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1124 u8 rfpath, u32 *pu4_regval) in _rtl92d_phy_enable_rf_env() argument
1128 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_enable_rf_env()
1132 switch (rfpath) { in _rtl92d_phy_enable_rf_env()
1159 static void _rtl92d_phy_restore_rf_env(struct ieee80211_hw *hw, u8 rfpath, in _rtl92d_phy_restore_rf_env() argument
1164 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_restore_rf_env()
1168 switch (rfpath) { in _rtl92d_phy_restore_rf_env()
1189 u8 index = 0, i = 0, rfpath = RF90_PATH_A; in _rtl92d_phy_switch_rf_setting() local
1267 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in _rtl92d_phy_switch_rf_setting()
1268 rfpath++) { in _rtl92d_phy_switch_rf_setting()
1274 rtlpriv->efuse.internal_pa_5g[rfpath]; in _rtl92d_phy_switch_rf_setting()
1279 rtl_set_rfreg(hw, rfpath, in _rtl92d_phy_switch_rf_setting()
1287 rfpath, index); in _rtl92d_phy_switch_rf_setting()
1290 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in _rtl92d_phy_switch_rf_setting()
2725 u8 rfpath; in _rtl92d_phy_sw_chnl_step_by_step() local
2783 for (rfpath = 0; rfpath < num_total_rfpath; rfpath++) { in _rtl92d_phy_sw_chnl_step_by_step()
2784 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2785 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl92d_phy_sw_chnl_step_by_step()
2790 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2792 [rfpath] | (BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2794 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2796 [rfpath] & (~BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2797 rtlphy->rfreg_chnlval[rfpath] |= in _rtl92d_phy_sw_chnl_step_by_step()
2800 rtlphy->rfreg_chnlval[rfpath] &= in _rtl92d_phy_sw_chnl_step_by_step()
2803 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_sw_chnl_step_by_step()
2806 rtlphy->rfreg_chnlval[rfpath]); in _rtl92d_phy_sw_chnl_step_by_step()
2808 rfpath); in _rtl92d_phy_sw_chnl_step_by_step()
3342 u8 rfpath, i; in rtl92d_update_bbrf_configuration() local
3463 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3464 rfpath++) { in rtl92d_update_bbrf_configuration()
3467 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | BIT(16) | in rtl92d_update_bbrf_configuration()
3470 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in rtl92d_update_bbrf_configuration()
3474 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | in rtl92d_update_bbrf_configuration()
3510 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3511 rfpath++) { in rtl92d_update_bbrf_configuration()
3512 rtlphy->rfreg_chnlval[rfpath] = rtl_get_rfreg(hw, rfpath, in rtl92d_update_bbrf_configuration()
3514 rtlphy->reg_rf3c[rfpath] = rtl_get_rfreg(hw, rfpath, 0x3C, in rtl92d_update_bbrf_configuration()