Lines Matching refs:hw

44 u32 rtl92cu_phy_query_rf_reg(struct ieee80211_hw *hw,  in rtl92cu_phy_query_rf_reg()  argument
47 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_query_rf_reg()
55 original_value = _rtl92c_phy_rf_serial_read(hw, in rtl92cu_phy_query_rf_reg()
58 original_value = _rtl92c_phy_fw_rf_serial_read(hw, in rtl92cu_phy_query_rf_reg()
69 void rtl92cu_phy_set_rf_reg(struct ieee80211_hw *hw, in rtl92cu_phy_set_rf_reg() argument
73 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_set_rf_reg()
82 original_value = _rtl92c_phy_rf_serial_read(hw, in rtl92cu_phy_set_rf_reg()
90 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg()
93 original_value = _rtl92c_phy_fw_rf_serial_read(hw, in rtl92cu_phy_set_rf_reg()
101 _rtl92c_phy_fw_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg()
108 bool rtl92cu_phy_mac_config(struct ieee80211_hw *hw) in rtl92cu_phy_mac_config() argument
111 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_mac_config()
112 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92cu_phy_mac_config()
115 rtstatus = _rtl92cu_phy_config_mac_with_headerfile(hw); in rtl92cu_phy_mac_config()
121 bool rtl92cu_phy_bb_config(struct ieee80211_hw *hw) in rtl92cu_phy_bb_config() argument
124 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_bb_config()
125 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92cu_phy_bb_config()
130 _rtl92c_phy_init_bb_rf_register_definition(hw); in rtl92cu_phy_bb_config()
150 rtstatus = _rtl92c_phy_bb8192c_config_parafile(hw); in rtl92cu_phy_bb_config()
154 bool _rtl92cu_phy_config_mac_with_headerfile(struct ieee80211_hw *hw) in _rtl92cu_phy_config_mac_with_headerfile() argument
156 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_config_mac_with_headerfile()
171 bool _rtl92cu_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, in _rtl92cu_phy_config_bb_with_headerfile() argument
178 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_config_bb_with_headerfile()
179 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92cu_phy_config_bb_with_headerfile()
196 rtl_set_bbreg(hw, phy_regarray_table[i], MASKDWORD, in _rtl92cu_phy_config_bb_with_headerfile()
206 rtl_set_bbreg(hw, agctab_array_table[i], MASKDWORD, in _rtl92cu_phy_config_bb_with_headerfile()
218 bool _rtl92cu_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, in _rtl92cu_phy_config_bb_with_pgheaderfile() argument
221 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_config_bb_with_pgheaderfile()
233 _rtl92c_store_pwrIndex_diffrate_offset(hw, in _rtl92cu_phy_config_bb_with_pgheaderfile()
245 bool rtl92cu_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, in rtl92cu_phy_config_rf_with_headerfile() argument
252 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_config_rf_with_headerfile()
253 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92cu_phy_config_rf_with_headerfile()
279 rtl_rfreg_delay(hw, rfpath, radioa_array_table[i], in rtl92cu_phy_config_rf_with_headerfile()
286 rtl_rfreg_delay(hw, rfpath, radiob_array_table[i], in rtl92cu_phy_config_rf_with_headerfile()
305 void rtl92cu_phy_set_bw_mode_callback(struct ieee80211_hw *hw) in rtl92cu_phy_set_bw_mode_callback() argument
307 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_set_bw_mode_callback()
308 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92cu_phy_set_bw_mode_callback()
310 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_phy_set_bw_mode_callback()
342 rtl_set_bbreg(hw, RFPGA0_RFMOD, BRFMOD, 0x0); in rtl92cu_phy_set_bw_mode_callback()
343 rtl_set_bbreg(hw, RFPGA1_RFMOD, BRFMOD, 0x0); in rtl92cu_phy_set_bw_mode_callback()
344 rtl_set_bbreg(hw, RFPGA0_ANALOGPARAMETER2, BIT(10), 1); in rtl92cu_phy_set_bw_mode_callback()
347 rtl_set_bbreg(hw, RFPGA0_RFMOD, BRFMOD, 0x1); in rtl92cu_phy_set_bw_mode_callback()
348 rtl_set_bbreg(hw, RFPGA1_RFMOD, BRFMOD, 0x1); in rtl92cu_phy_set_bw_mode_callback()
349 rtl_set_bbreg(hw, RCCK0_SYSTEM, BCCK_SIDEBAND, in rtl92cu_phy_set_bw_mode_callback()
351 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl92cu_phy_set_bw_mode_callback()
352 rtl_set_bbreg(hw, RFPGA0_ANALOGPARAMETER2, BIT(10), 0); in rtl92cu_phy_set_bw_mode_callback()
353 rtl_set_bbreg(hw, 0x818, (BIT(26) | BIT(27)), in rtl92cu_phy_set_bw_mode_callback()
362 rtl92cu_phy_rf6052_set_bandwidth(hw, rtlphy->current_chan_bw); in rtl92cu_phy_set_bw_mode_callback()
367 void rtl92cu_bb_block_on(struct ieee80211_hw *hw) in rtl92cu_bb_block_on() argument
369 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_bb_block_on()
372 rtl_set_bbreg(hw, RFPGA0_RFMOD, BCCKEN, 0x1); in rtl92cu_bb_block_on()
373 rtl_set_bbreg(hw, RFPGA0_RFMOD, BOFDMEN, 0x1); in rtl92cu_bb_block_on()
377 void _rtl92cu_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t) in _rtl92cu_phy_lc_calibrate() argument
381 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_lc_calibrate()
391 rf_a_mode = rtl_get_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS); in _rtl92cu_phy_lc_calibrate()
393 rf_b_mode = rtl_get_rfreg(hw, RF90_PATH_B, 0x00, in _rtl92cu_phy_lc_calibrate()
395 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS, in _rtl92cu_phy_lc_calibrate()
398 rtl_set_rfreg(hw, RF90_PATH_B, 0x00, MASK12BITS, in _rtl92cu_phy_lc_calibrate()
401 lc_cal = rtl_get_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS); in _rtl92cu_phy_lc_calibrate()
402 rtl_set_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS, lc_cal | 0x08000); in _rtl92cu_phy_lc_calibrate()
406 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS, rf_a_mode); in _rtl92cu_phy_lc_calibrate()
408 rtl_set_rfreg(hw, RF90_PATH_B, 0x00, MASK12BITS, in _rtl92cu_phy_lc_calibrate()
415 static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw, in _rtl92cu_phy_set_rf_power_state() argument
418 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_set_rf_power_state()
419 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl92cu_phy_set_rf_power_state()
420 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state()
421 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state()
437 rtstatus = rtl_ps_enable_nic(hw); in _rtl92cu_phy_set_rf_power_state()
447 rtl92ce_phy_set_rf_on(hw); in _rtl92cu_phy_set_rf_power_state()
450 rtlpriv->cfg->ops->led_control(hw, in _rtl92cu_phy_set_rf_power_state()
453 rtlpriv->cfg->ops->led_control(hw, in _rtl92cu_phy_set_rf_power_state()
486 rtl_ps_disable_nic(hw); in _rtl92cu_phy_set_rf_power_state()
490 rtlpriv->cfg->ops->led_control(hw, in _rtl92cu_phy_set_rf_power_state()
493 rtlpriv->cfg->ops->led_control(hw, in _rtl92cu_phy_set_rf_power_state()
528 _rtl92c_phy_set_rf_sleep(hw); in _rtl92cu_phy_set_rf_power_state()
541 bool rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw, in rtl92cu_phy_set_rf_power_state() argument
544 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_phy_set_rf_power_state()
549 bresult = _rtl92cu_phy_set_rf_power_state(hw, rfpwr_state); in rtl92cu_phy_set_rf_power_state()