Lines Matching refs:rtlpriv

44 	struct rtl_priv *rtlpriv = rtl_priv(hw);  in rtl92ce_phy_query_rf_reg()  local
46 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_query_rf_reg()
49 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92ce_phy_query_rf_reg()
53 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_query_rf_reg()
66 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_query_rf_reg()
68 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92ce_phy_query_rf_reg()
80 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_set_rf_reg() local
81 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_set_rf_reg()
85 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92ce_phy_set_rf_reg()
89 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_set_rf_reg()
116 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_set_rf_reg()
118 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92ce_phy_set_rf_reg()
126 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_mac_config() local
132 rtl_write_byte(rtlpriv, 0x14, 0x71); in rtl92ce_phy_mac_config()
139 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_bb_config() local
145 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl92ce_phy_bb_config()
146 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, in rtl92ce_phy_bb_config()
148 rtl_write_byte(rtlpriv, REG_AFE_PLL_CTRL, 0x83); in rtl92ce_phy_bb_config()
149 rtl_write_byte(rtlpriv, REG_AFE_PLL_CTRL + 1, 0xdb); in rtl92ce_phy_bb_config()
150 rtl_write_byte(rtlpriv, REG_RF_CTRL, RF_EN | RF_RSTB | RF_SDMRSTB); in rtl92ce_phy_bb_config()
151 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl92ce_phy_bb_config()
154 rtl_write_byte(rtlpriv, REG_AFE_XTAL_CTRL + 1, 0x80); in rtl92ce_phy_bb_config()
155 regvaldw = rtl_read_dword(rtlpriv, REG_LEDCFG0); in rtl92ce_phy_bb_config()
156 rtl_write_dword(rtlpriv, REG_LEDCFG0, regvaldw | BIT(23)); in rtl92ce_phy_bb_config()
164 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_phy_config_mac_with_headerfile() local
169 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, ("Read Rtl819XMACPHY_Array\n")); in _rtl92ce_phy_config_mac_with_headerfile()
172 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92ce_phy_config_mac_with_headerfile()
175 rtl_write_byte(rtlpriv, ptrarray[i], (u8) ptrarray[i + 1]); in _rtl92ce_phy_config_mac_with_headerfile()
186 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_phy_config_bb_with_headerfile() local
217 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92ce_phy_config_bb_with_headerfile()
228 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92ce_phy_config_bb_with_headerfile()
241 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_phy_config_bb_with_pgheaderfile() local
271 RT_TRACE(rtlpriv, COMP_SEND, DBG_TRACE, in _rtl92ce_phy_config_bb_with_pgheaderfile()
286 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_config_rf_with_headerfile() local
294 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92ce_phy_config_rf_with_headerfile()
296 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92ce_phy_config_rf_with_headerfile()
303 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92ce_phy_config_rf_with_headerfile()
305 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92ce_phy_config_rf_with_headerfile()
308 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, ("Radio No %x\n", rfpath)); in rtl92ce_phy_config_rf_with_headerfile()
356 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92ce_phy_config_rf_with_headerfile()
360 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92ce_phy_config_rf_with_headerfile()
369 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_set_bw_mode_callback() local
371 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_set_bw_mode_callback()
376 RT_TRACE(rtlpriv, COMP_SCAN, DBG_TRACE, in rtl92ce_phy_set_bw_mode_callback()
384 reg_bw_opmode = rtl_read_byte(rtlpriv, REG_BWOPMODE); in rtl92ce_phy_set_bw_mode_callback()
385 reg_prsr_rsc = rtl_read_byte(rtlpriv, REG_RRSR + 2); in rtl92ce_phy_set_bw_mode_callback()
390 rtl_write_byte(rtlpriv, REG_BWOPMODE, reg_bw_opmode); in rtl92ce_phy_set_bw_mode_callback()
395 rtl_write_byte(rtlpriv, REG_BWOPMODE, reg_bw_opmode); in rtl92ce_phy_set_bw_mode_callback()
399 rtl_write_byte(rtlpriv, REG_RRSR + 2, reg_prsr_rsc); in rtl92ce_phy_set_bw_mode_callback()
403 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92ce_phy_set_bw_mode_callback()
426 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92ce_phy_set_bw_mode_callback()
432 RT_TRACE(rtlpriv, COMP_SCAN, DBG_TRACE, ("<==\n")); in rtl92ce_phy_set_bw_mode_callback()
439 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_phy_lc_calibrate() local
441 tmpreg = rtl_read_byte(rtlpriv, 0xd03); in _rtl92ce_phy_lc_calibrate()
444 rtl_write_byte(rtlpriv, 0xd03, tmpreg & 0x8F); in _rtl92ce_phy_lc_calibrate()
446 rtl_write_byte(rtlpriv, REG_TXPAUSE, 0xFF); in _rtl92ce_phy_lc_calibrate()
469 rtl_write_byte(rtlpriv, 0xd03, tmpreg); in _rtl92ce_phy_lc_calibrate()
476 rtl_write_byte(rtlpriv, REG_TXPAUSE, 0x00); in _rtl92ce_phy_lc_calibrate()
483 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_phy_set_rf_power_state() local
500 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, in _rtl92ce_phy_set_rf_power_state()
508 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, in _rtl92ce_phy_set_rf_power_state()
517 rtlpriv->cfg->ops->led_control(hw, in _rtl92ce_phy_set_rf_power_state()
520 rtlpriv->cfg->ops->led_control(hw, in _rtl92ce_phy_set_rf_power_state()
534 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in _rtl92ce_phy_set_rf_power_state()
544 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in _rtl92ce_phy_set_rf_power_state()
554 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, in _rtl92ce_phy_set_rf_power_state()
560 rtlpriv->cfg->ops->led_control(hw, in _rtl92ce_phy_set_rf_power_state()
563 rtlpriv->cfg->ops->led_control(hw, in _rtl92ce_phy_set_rf_power_state()
579 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in _rtl92ce_phy_set_rf_power_state()
588 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in _rtl92ce_phy_set_rf_power_state()
597 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, in _rtl92ce_phy_set_rf_power_state()
606 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in _rtl92ce_phy_set_rf_power_state()