• Home
  • Raw
  • Download

Lines Matching refs:rfpath

266 				      enum radio_path rfpath, u32 offset)  in _rtl92d_phy_rf_serial_read()  argument
271 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_read()
279 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
294 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
297 else if (rfpath == RF90_PATH_B) in _rtl92d_phy_rf_serial_read()
307 rfpath, pphyreg->rf_rb, retvalue); in _rtl92d_phy_rf_serial_read()
312 enum radio_path rfpath, in _rtl92d_phy_rf_serial_write() argument
319 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_write()
326 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92d_phy_rf_serial_write()
330 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92d_phy_query_rf_reg() argument
338 regaddr, rfpath, bitmask); in rtl92d_phy_query_rf_reg()
340 original_value = _rtl92d_phy_rf_serial_read(hw, rfpath, regaddr); in rtl92d_phy_query_rf_reg()
346 regaddr, rfpath, bitmask, original_value); in rtl92d_phy_query_rf_reg()
350 void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92d_phy_set_rf_reg() argument
360 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
367 rfpath, regaddr); in rtl92d_phy_set_rf_reg()
372 _rtl92d_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92d_phy_set_rf_reg()
377 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
808 enum radio_path rfpath) in rtl92d_phy_config_rf_with_headerfile() argument
832 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "Radio No %x\n", rfpath); in rtl92d_phy_config_rf_with_headerfile()
837 if ((content == radiob_txt) && (rfpath == RF90_PATH_A)) { in rtl92d_phy_config_rf_with_headerfile()
843 switch (rfpath) { in rtl92d_phy_config_rf_with_headerfile()
861 rtl_set_rfreg(hw, rfpath, radioa_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
888 rtl_set_rfreg(hw, rfpath, radiob_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
1195 u8 channel, u8 rfpath) in _rtl92d_phy_reload_imr_setting() argument
1203 RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, "====>path %d\n", rfpath); in _rtl92d_phy_reload_imr_setting()
1219 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1233 rfpath); in _rtl92d_phy_reload_imr_setting()
1240 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1255 u8 rfpath, u32 *pu4_regval) in _rtl92d_phy_enable_rf_env() argument
1259 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_enable_rf_env()
1263 switch (rfpath) { in _rtl92d_phy_enable_rf_env()
1290 static void _rtl92d_phy_restore_rf_env(struct ieee80211_hw *hw, u8 rfpath, in _rtl92d_phy_restore_rf_env() argument
1295 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_restore_rf_env()
1299 switch (rfpath) { in _rtl92d_phy_restore_rf_env()
1320 u8 index = 0, i = 0, rfpath = RF90_PATH_A; in _rtl92d_phy_switch_rf_setting() local
1398 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in _rtl92d_phy_switch_rf_setting()
1399 rfpath++) { in _rtl92d_phy_switch_rf_setting()
1405 rtlpriv->efuse.internal_pa_5g[rfpath]; in _rtl92d_phy_switch_rf_setting()
1410 rtl_set_rfreg(hw, rfpath, in _rtl92d_phy_switch_rf_setting()
1418 rfpath, index); in _rtl92d_phy_switch_rf_setting()
1421 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in _rtl92d_phy_switch_rf_setting()
2863 u8 rfpath; in _rtl92d_phy_sw_chnl_step_by_step() local
2921 for (rfpath = 0; rfpath < num_total_rfpath; rfpath++) { in _rtl92d_phy_sw_chnl_step_by_step()
2922 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2923 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl92d_phy_sw_chnl_step_by_step()
2928 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2930 [rfpath] | (BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2932 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2934 [rfpath] & (~BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2935 rtlphy->rfreg_chnlval[rfpath] |= in _rtl92d_phy_sw_chnl_step_by_step()
2938 rtlphy->rfreg_chnlval[rfpath] &= in _rtl92d_phy_sw_chnl_step_by_step()
2941 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_sw_chnl_step_by_step()
2944 rtlphy->rfreg_chnlval[rfpath]); in _rtl92d_phy_sw_chnl_step_by_step()
2946 rfpath); in _rtl92d_phy_sw_chnl_step_by_step()
3480 u8 rfpath, i; in rtl92d_update_bbrf_configuration() local
3601 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3602 rfpath++) { in rtl92d_update_bbrf_configuration()
3605 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | BIT(16) | in rtl92d_update_bbrf_configuration()
3608 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in rtl92d_update_bbrf_configuration()
3612 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | in rtl92d_update_bbrf_configuration()
3648 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3649 rfpath++) { in rtl92d_update_bbrf_configuration()
3650 rtlphy->rfreg_chnlval[rfpath] = rtl_get_rfreg(hw, rfpath, in rtl92d_update_bbrf_configuration()
3652 rtlphy->reg_rf3c[rfpath] = rtl_get_rfreg(hw, rfpath, 0x3C, in rtl92d_update_bbrf_configuration()