Lines Matching refs:rfpath

268 				      enum radio_path rfpath, u32 offset)  in _rtl92d_phy_rf_serial_read()  argument
273 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_read()
281 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
296 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
299 else if (rfpath == RF90_PATH_B) in _rtl92d_phy_rf_serial_read()
309 rfpath, pphyreg->rf_rb, retvalue); in _rtl92d_phy_rf_serial_read()
314 enum radio_path rfpath, in _rtl92d_phy_rf_serial_write() argument
321 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_write()
328 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92d_phy_rf_serial_write()
332 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92d_phy_query_rf_reg() argument
340 regaddr, rfpath, bitmask); in rtl92d_phy_query_rf_reg()
342 original_value = _rtl92d_phy_rf_serial_read(hw, rfpath, regaddr); in rtl92d_phy_query_rf_reg()
348 regaddr, rfpath, bitmask, original_value); in rtl92d_phy_query_rf_reg()
352 void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92d_phy_set_rf_reg() argument
362 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
369 rfpath, regaddr); in rtl92d_phy_set_rf_reg()
374 _rtl92d_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92d_phy_set_rf_reg()
379 regaddr, bitmask, data, rfpath); in rtl92d_phy_set_rf_reg()
788 enum radio_path rfpath) in rtl92d_phy_config_rf_with_headerfile() argument
812 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "Radio No %x\n", rfpath); in rtl92d_phy_config_rf_with_headerfile()
817 if ((content == radiob_txt) && (rfpath == RF90_PATH_A)) { in rtl92d_phy_config_rf_with_headerfile()
823 switch (rfpath) { in rtl92d_phy_config_rf_with_headerfile()
826 rtl_rfreg_delay(hw, rfpath, radioa_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
833 rtl_rfreg_delay(hw, rfpath, radiob_array_table[i], in rtl92d_phy_config_rf_with_headerfile()
1109 u8 channel, u8 rfpath) in _rtl92d_phy_reload_imr_setting() argument
1117 RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, "====>path %d\n", rfpath); in _rtl92d_phy_reload_imr_setting()
1133 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1147 rfpath); in _rtl92d_phy_reload_imr_setting()
1154 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_reload_imr_setting()
1169 u8 rfpath, u32 *pu4_regval) in _rtl92d_phy_enable_rf_env() argument
1173 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_enable_rf_env()
1177 switch (rfpath) { in _rtl92d_phy_enable_rf_env()
1204 static void _rtl92d_phy_restore_rf_env(struct ieee80211_hw *hw, u8 rfpath, in _rtl92d_phy_restore_rf_env() argument
1209 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_restore_rf_env()
1213 switch (rfpath) { in _rtl92d_phy_restore_rf_env()
1234 u8 index = 0, i = 0, rfpath = RF90_PATH_A; in _rtl92d_phy_switch_rf_setting() local
1312 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in _rtl92d_phy_switch_rf_setting()
1313 rfpath++) { in _rtl92d_phy_switch_rf_setting()
1319 rtlpriv->efuse.internal_pa_5g[rfpath]; in _rtl92d_phy_switch_rf_setting()
1324 rtl_set_rfreg(hw, rfpath, in _rtl92d_phy_switch_rf_setting()
1332 rfpath, index); in _rtl92d_phy_switch_rf_setting()
1335 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in _rtl92d_phy_switch_rf_setting()
2777 u8 rfpath; in _rtl92d_phy_sw_chnl_step_by_step() local
2835 for (rfpath = 0; rfpath < num_total_rfpath; rfpath++) { in _rtl92d_phy_sw_chnl_step_by_step()
2836 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2837 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl92d_phy_sw_chnl_step_by_step()
2842 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2844 [rfpath] | (BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2846 rtlphy->rfreg_chnlval[rfpath] = in _rtl92d_phy_sw_chnl_step_by_step()
2848 [rfpath] & (~BIT(18)); in _rtl92d_phy_sw_chnl_step_by_step()
2849 rtlphy->rfreg_chnlval[rfpath] |= in _rtl92d_phy_sw_chnl_step_by_step()
2852 rtlphy->rfreg_chnlval[rfpath] &= in _rtl92d_phy_sw_chnl_step_by_step()
2855 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92d_phy_sw_chnl_step_by_step()
2858 rtlphy->rfreg_chnlval[rfpath]); in _rtl92d_phy_sw_chnl_step_by_step()
2860 rfpath); in _rtl92d_phy_sw_chnl_step_by_step()
3394 u8 rfpath, i; in rtl92d_update_bbrf_configuration() local
3515 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3516 rfpath++) { in rtl92d_update_bbrf_configuration()
3519 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | BIT(16) | in rtl92d_update_bbrf_configuration()
3522 rtl_set_rfreg(hw, (enum radio_path)rfpath, 0x0B, in rtl92d_update_bbrf_configuration()
3526 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(8) | in rtl92d_update_bbrf_configuration()
3562 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_update_bbrf_configuration()
3563 rfpath++) { in rtl92d_update_bbrf_configuration()
3564 rtlphy->rfreg_chnlval[rfpath] = rtl_get_rfreg(hw, rfpath, in rtl92d_update_bbrf_configuration()
3566 rtlphy->reg_rf3c[rfpath] = rtl_get_rfreg(hw, rfpath, 0x3C, in rtl92d_update_bbrf_configuration()