Lines Matching refs:rfpath
68 enum radio_path rfpath, u32 offset) in _rtl92s_phy_rf_serial_read() argument
73 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_read()
84 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
104 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
107 else if (rfpath == RF90_PATH_B) in _rtl92s_phy_rf_serial_read()
122 rfpath, pphyreg->rf_rb, retvalue); in _rtl92s_phy_rf_serial_read()
129 enum radio_path rfpath, u32 offset, in _rtl92s_phy_rf_serial_write() argument
134 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_write()
145 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92s_phy_rf_serial_write()
149 u32 rtl92s_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_query_rf_reg() argument
157 regaddr, rfpath, bitmask); in rtl92s_phy_query_rf_reg()
161 original_value = _rtl92s_phy_rf_serial_read(hw, rfpath, regaddr); in rtl92s_phy_query_rf_reg()
170 regaddr, rfpath, bitmask, original_value); in rtl92s_phy_query_rf_reg()
175 void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_set_rf_reg() argument
182 if (!((rtlphy->rf_pathmap >> rfpath) & 0x1)) in rtl92s_phy_set_rf_reg()
187 regaddr, bitmask, data, rfpath); in rtl92s_phy_set_rf_reg()
192 original_value = _rtl92s_phy_rf_serial_read(hw, rfpath, in rtl92s_phy_set_rf_reg()
198 _rtl92s_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92s_phy_set_rf_reg()
204 regaddr, bitmask, data, rfpath); in rtl92s_phy_set_rf_reg()
332 u8 rfpath; in _rtl92s_phy_sw_chnl_step_by_step() local
400 for (rfpath = 0; rfpath < num_total_rfpath; rfpath++) { in _rtl92s_phy_sw_chnl_step_by_step()
401 rtlphy->rfreg_chnlval[rfpath] = in _rtl92s_phy_sw_chnl_step_by_step()
402 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl92s_phy_sw_chnl_step_by_step()
404 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92s_phy_sw_chnl_step_by_step()
407 rtlphy->rfreg_chnlval[rfpath]); in _rtl92s_phy_sw_chnl_step_by_step()
629 enum radio_path rfpath) in _rtl92s_phy_config_rfpa_bias_current() argument
637 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current()
638 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
943 u8 rtl92s_phy_config_rf(struct ieee80211_hw *hw, enum radio_path rfpath) in rtl92s_phy_config_rf() argument
965 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl92s_phy_config_rf()
968 switch (rfpath) { in rtl92s_phy_config_rf()
971 rtl_rfreg_delay(hw, rfpath, radio_a_table[i], in rtl92s_phy_config_rf()
977 _rtl92s_phy_config_rfpa_bias_current(hw, rfpath); in rtl92s_phy_config_rf()
981 rtl_rfreg_delay(hw, rfpath, radio_b_table[i], in rtl92s_phy_config_rf()