Lines Matching refs:rfpath

99 				      enum radio_path rfpath, u32 offset)  in _rtl92s_phy_rf_serial_read()  argument
104 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_read()
115 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
135 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
138 else if (rfpath == RF90_PATH_B) in _rtl92s_phy_rf_serial_read()
153 rfpath, pphyreg->rf_rb, retvalue); in _rtl92s_phy_rf_serial_read()
160 enum radio_path rfpath, u32 offset, in _rtl92s_phy_rf_serial_write() argument
165 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_write()
176 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92s_phy_rf_serial_write()
180 u32 rtl92s_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_query_rf_reg() argument
188 regaddr, rfpath, bitmask); in rtl92s_phy_query_rf_reg()
192 original_value = _rtl92s_phy_rf_serial_read(hw, rfpath, regaddr); in rtl92s_phy_query_rf_reg()
201 regaddr, rfpath, bitmask, original_value); in rtl92s_phy_query_rf_reg()
206 void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_set_rf_reg() argument
213 if (!((rtlphy->rf_pathmap >> rfpath) & 0x1)) in rtl92s_phy_set_rf_reg()
218 regaddr, bitmask, data, rfpath); in rtl92s_phy_set_rf_reg()
223 original_value = _rtl92s_phy_rf_serial_read(hw, rfpath, in rtl92s_phy_set_rf_reg()
229 _rtl92s_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92s_phy_set_rf_reg()
235 regaddr, bitmask, data, rfpath); in rtl92s_phy_set_rf_reg()
365 u8 rfpath; in _rtl92s_phy_sw_chnl_step_by_step() local
433 for (rfpath = 0; rfpath < num_total_rfpath; rfpath++) { in _rtl92s_phy_sw_chnl_step_by_step()
434 rtlphy->rfreg_chnlval[rfpath] = in _rtl92s_phy_sw_chnl_step_by_step()
435 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl92s_phy_sw_chnl_step_by_step()
437 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl92s_phy_sw_chnl_step_by_step()
440 rtlphy->rfreg_chnlval[rfpath]); in _rtl92s_phy_sw_chnl_step_by_step()
663 enum radio_path rfpath) in _rtl92s_phy_config_rfpa_bias_current() argument
671 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current()
672 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
979 u8 rtl92s_phy_config_rf(struct ieee80211_hw *hw, enum radio_path rfpath) in rtl92s_phy_config_rf() argument
1001 RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Radio No %x\n", rfpath); in rtl92s_phy_config_rf()
1004 switch (rfpath) { in rtl92s_phy_config_rf()
1007 rtl_rfreg_delay(hw, rfpath, radio_a_table[i], in rtl92s_phy_config_rf()
1013 _rtl92s_phy_config_rfpa_bias_current(hw, rfpath); in rtl92s_phy_config_rf()
1017 rtl_rfreg_delay(hw, rfpath, radio_b_table[i], in rtl92s_phy_config_rf()