Lines Matching refs:rtlpriv

40 	struct rtl_priv *rtlpriv = rtl_priv(hw);  in rtl92c_phy_query_bb_reg()  local
43 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, "regaddr(%#x), bitmask(%#x)\n", in rtl92c_phy_query_bb_reg()
45 originalvalue = rtl_read_dword(rtlpriv, regaddr); in rtl92c_phy_query_bb_reg()
49 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92c_phy_query_bb_reg()
60 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_bb_reg() local
63 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92c_phy_set_bb_reg()
68 originalvalue = rtl_read_dword(rtlpriv, regaddr); in rtl92c_phy_set_bb_reg()
73 rtl_write_dword(rtlpriv, regaddr, data); in rtl92c_phy_set_bb_reg()
75 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92c_phy_set_bb_reg()
100 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_rf_serial_read() local
101 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_rf_serial_read()
111 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "return all one\n"); in _rtl92c_phy_rf_serial_read()
141 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, "RFR-%d Addr[0x%x]=0x%x\n", in _rtl92c_phy_rf_serial_read()
154 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_rf_serial_write() local
155 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_rf_serial_write()
159 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "stop\n"); in _rtl92c_phy_rf_serial_write()
166 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, "RFW-%d Addr[0x%x]=0x%x\n", in _rtl92c_phy_rf_serial_write()
200 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_rf_config() local
202 return rtlpriv->cfg->ops->phy_rf6052_config(hw); in rtl92c_phy_rf_config()
208 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_bb8192c_config_parafile() local
209 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_bb8192c_config_parafile()
213 rtstatus = rtlpriv->cfg->ops->config_bb_with_headerfile(hw, in _rtl92c_phy_bb8192c_config_parafile()
216 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Write BB Reg Fail!!"); in _rtl92c_phy_bb8192c_config_parafile()
221 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "Config to 1T!!\n"); in _rtl92c_phy_bb8192c_config_parafile()
225 rtstatus = rtlpriv->cfg->ops->config_bb_with_pgheaderfile(hw, in _rtl92c_phy_bb8192c_config_parafile()
229 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "BB_PG Reg Fail!!"); in _rtl92c_phy_bb8192c_config_parafile()
232 rtstatus = rtlpriv->cfg->ops->config_bb_with_headerfile(hw, in _rtl92c_phy_bb8192c_config_parafile()
235 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "AGC Table Fail\n"); in _rtl92c_phy_bb8192c_config_parafile()
250 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_store_pwrIndex_diffrate_offset() local
251 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_store_pwrIndex_diffrate_offset()
256 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
265 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
274 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
283 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
292 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
301 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
310 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
319 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
328 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
337 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
346 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
355 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
364 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
373 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
382 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
391 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in _rtl92c_store_pwrIndex_diffrate_offset()
404 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_get_hw_reg_originalvalue() local
405 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_get_hw_reg_originalvalue()
416 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_phy_get_hw_reg_originalvalue()
428 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_phy_get_hw_reg_originalvalue()
435 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_init_bb_rf_register_definition() local
436 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_init_bb_rf_register_definition()
523 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_get_txpower_level() local
524 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_get_txpower_level()
551 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_get_txpower_index() local
552 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_get_txpower_index()
577 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_ccxpower_index_check() local
578 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_ccxpower_index_check()
586 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_txpower_level() local
596 rtlpriv->cfg->ops->phy_rf6052_set_cck_txpower(hw, &cckpowerlevel[0]); in rtl92c_phy_set_txpower_level()
597 rtlpriv->cfg->ops->phy_rf6052_set_ofdm_txpower(hw, &ofdmpowerlevel[0], in rtl92c_phy_set_txpower_level()
604 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_update_txpower_dbm() local
605 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_update_txpower_dbm()
617 RT_TRACE(rtlpriv, COMP_TXAGC, DBG_TRACE, in rtl92c_phy_update_txpower_dbm()
693 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_bw_mode() local
694 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_set_bw_mode()
702 rtlpriv->cfg->ops->phy_set_bw_mode_callback(hw); in rtl92c_phy_set_bw_mode()
704 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in rtl92c_phy_set_bw_mode()
714 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_sw_chnl_callback() local
716 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_sw_chnl_callback()
719 RT_TRACE(rtlpriv, COMP_SCAN, DBG_TRACE, in rtl92c_phy_sw_chnl_callback()
738 RT_TRACE(rtlpriv, COMP_SCAN, DBG_TRACE, "\n"); in rtl92c_phy_sw_chnl_callback()
744 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_sw_chnl() local
745 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_sw_chnl()
759 RT_TRACE(rtlpriv, COMP_CHAN, DBG_LOUD, in rtl92c_phy_sw_chnl()
763 RT_TRACE(rtlpriv, COMP_CHAN, DBG_LOUD, in rtl92c_phy_sw_chnl()
773 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_sw_rf_seting() local
774 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_sw_rf_seting()
818 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_sw_chnl_step_by_step() local
819 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_sw_chnl_step_by_step()
867 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in _rtl92c_phy_sw_chnl_step_by_step()
887 rtl_write_dword(rtlpriv, currentcmd->para1, in _rtl92c_phy_sw_chnl_step_by_step()
891 rtl_write_word(rtlpriv, currentcmd->para1, in _rtl92c_phy_sw_chnl_step_by_step()
895 rtl_write_byte(rtlpriv, currentcmd->para1, in _rtl92c_phy_sw_chnl_step_by_step()
912 RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, in _rtl92c_phy_sw_chnl_step_by_step()
1094 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_save_mac_registers() local
1098 macbackup[i] = rtl_read_byte(rtlpriv, macreg[i]); in _rtl92c_phy_save_mac_registers()
1099 macbackup[i] = rtl_read_dword(rtlpriv, macreg[i]); in _rtl92c_phy_save_mac_registers()
1115 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_reload_mac_registers() local
1119 rtl_write_byte(rtlpriv, macreg[i], (u8)macbackup[i]); in _rtl92c_phy_reload_mac_registers()
1120 rtl_write_dword(rtlpriv, macreg[i], macbackup[i]); in _rtl92c_phy_reload_mac_registers()
1144 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_mac_setting_calibration() local
1147 rtl_write_byte(rtlpriv, macreg[i], 0x3F); in _rtl92c_phy_mac_setting_calibration()
1150 rtl_write_byte(rtlpriv, macreg[i], in _rtl92c_phy_mac_setting_calibration()
1152 rtl_write_byte(rtlpriv, macreg[i], (u8)(macbackup[i] & (~BIT(5)))); in _rtl92c_phy_mac_setting_calibration()
1233 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_iq_calibrate() local
1234 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92c_phy_iq_calibrate()
1389 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_iq_calibrate() local
1390 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_iq_calibrate()
1511 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_lc_calibrate() local
1515 rtlpriv->cfg->ops->phy_lc_calibrate(hw, true); in rtl92c_phy_lc_calibrate()
1517 rtlpriv->cfg->ops->phy_lc_calibrate(hw, false); in rtl92c_phy_lc_calibrate()
1523 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_ap_calibrate() local
1524 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_ap_calibrate()
1549 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_io_cmd() local
1550 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_set_io_cmd()
1553 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, in rtl92c_phy_set_io_cmd()
1559 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, in rtl92c_phy_set_io_cmd()
1564 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, in rtl92c_phy_set_io_cmd()
1569 RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, in rtl92c_phy_set_io_cmd()
1581 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, "IO Type(%#x)\n", iotype); in rtl92c_phy_set_io_cmd()
1588 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_io() local
1589 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_set_io()
1590 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_phy_set_io()
1592 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, in rtl92c_phy_set_io()
1607 RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, in rtl92c_phy_set_io()
1612 RT_TRACE(rtlpriv, COMP_CMD, DBG_TRACE, in rtl92c_phy_set_io()
1619 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_set_rf_on() local
1621 rtl_write_byte(rtlpriv, REG_SPS0_CTRL, 0x2b); in rtl92ce_phy_set_rf_on()
1622 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ce_phy_set_rf_on()
1623 rtl_write_byte(rtlpriv, REG_APSD_CTRL, 0x00); in rtl92ce_phy_set_rf_on()
1624 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl92ce_phy_set_rf_on()
1625 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ce_phy_set_rf_on()
1626 rtl_write_byte(rtlpriv, REG_TXPAUSE, 0x00); in rtl92ce_phy_set_rf_on()
1634 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_set_rf_sleep() local
1636 rtl_write_byte(rtlpriv, REG_TXPAUSE, 0xFF); in _rtl92c_phy_set_rf_sleep()
1638 rtl_write_byte(rtlpriv, REG_APSD_CTRL, 0x40); in _rtl92c_phy_set_rf_sleep()
1641 rtl_write_byte(rtlpriv, REG_APSD_CTRL, 0x0); in _rtl92c_phy_set_rf_sleep()
1643 rtl_write_byte(rtlpriv, REG_APSD_CTRL, 0x40); in _rtl92c_phy_set_rf_sleep()
1648 rtl_write_byte(rtlpriv, REG_APSD_CTRL, 0x00); in _rtl92c_phy_set_rf_sleep()
1649 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92c_phy_set_rf_sleep()
1650 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in _rtl92c_phy_set_rf_sleep()
1651 rtl_write_byte(rtlpriv, REG_TXPAUSE, 0x00); in _rtl92c_phy_set_rf_sleep()
1652 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in _rtl92c_phy_set_rf_sleep()
1656 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92c_phy_set_rf_sleep()
1657 rtl_write_byte(rtlpriv, REG_SPS0_CTRL, 0x22); in _rtl92c_phy_set_rf_sleep()