Lines Matching refs:rtlphy

242 	struct rtl_phy *rtlphy = &rtlpriv->phy;  in _rtl8723be_phy_init_tx_power_by_rate()  local
252 rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_init_tx_power_by_rate()
283 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_set_txpower_by_rate_base() local
295 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
298 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
301 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
304 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
325 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_get_txpower_by_rate_base() local
337 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][0]; in _rtl8723be_phy_get_txpower_by_rate_base()
340 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][1]; in _rtl8723be_phy_get_txpower_by_rate_base()
343 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][2]; in _rtl8723be_phy_get_txpower_by_rate_base()
346 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][3]; in _rtl8723be_phy_get_txpower_by_rate_base()
366 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_store_txpower_by_rate_base() local
372 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
378 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
386 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
393 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
400 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
439 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_convert_txpower_dbm_to_relative_value() local
445 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
448 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
454 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
457 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
463 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
466 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][5], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
473 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
477 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][7], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
493 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_bb8723b_config_parafile() local
515 rtlphy->pwrgroup_cnt = 0; in _rtl8723be_phy_bb8723b_config_parafile()
530 rtlphy->cck_high_power = (bool)(rtl_get_bbreg(hw, in _rtl8723be_phy_bb8723b_config_parafile()
683 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_store_tx_power_by_rate() local
700 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = in _rtl8723be_store_tx_power_by_rate()
775 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_get_hw_reg_originalvalue() local
777 rtlphy->default_initialgain[0] = in rtl8723be_phy_get_hw_reg_originalvalue()
779 rtlphy->default_initialgain[1] = in rtl8723be_phy_get_hw_reg_originalvalue()
781 rtlphy->default_initialgain[2] = in rtl8723be_phy_get_hw_reg_originalvalue()
783 rtlphy->default_initialgain[3] = in rtl8723be_phy_get_hw_reg_originalvalue()
788 rtlphy->default_initialgain[0], in rtl8723be_phy_get_hw_reg_originalvalue()
789 rtlphy->default_initialgain[1], in rtl8723be_phy_get_hw_reg_originalvalue()
790 rtlphy->default_initialgain[2], in rtl8723be_phy_get_hw_reg_originalvalue()
791 rtlphy->default_initialgain[3]); in rtl8723be_phy_get_hw_reg_originalvalue()
793 rtlphy->framesync = (u8)rtl_get_bbreg(hw, ROFDM0_RXDETECTOR3, in rtl8723be_phy_get_hw_reg_originalvalue()
795 rtlphy->framesync_c34 = rtl_get_bbreg(hw, ROFDM0_RXDETECTOR2, in rtl8723be_phy_get_hw_reg_originalvalue()
800 ROFDM0_RXDETECTOR3, rtlphy->framesync); in rtl8723be_phy_get_hw_reg_originalvalue()
880 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_get_txpower_by_rate() local
936 tx_pwr_diff = (u8)(rtlphy->tx_power_by_rate_offset[band][rfpath][tx_num] in _rtl8723be_get_txpower_by_rate()
1185 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_bw_mode_callback() local
1192 rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20 ? in rtl8723be_phy_set_bw_mode_callback()
1196 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode_callback()
1203 switch (rtlphy->current_chan_bw) { in rtl8723be_phy_set_bw_mode_callback()
1217 rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1221 switch (rtlphy->current_chan_bw) { in rtl8723be_phy_set_bw_mode_callback()
1242 rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1245 rtl8723be_phy_rf6052_set_bandwidth(hw, rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1246 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode_callback()
1254 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_bw_mode() local
1256 u8 tmp_bw = rtlphy->current_chan_bw; in rtl8723be_phy_set_bw_mode()
1258 if (rtlphy->set_bwmode_inprogress) in rtl8723be_phy_set_bw_mode()
1260 rtlphy->set_bwmode_inprogress = true; in rtl8723be_phy_set_bw_mode()
1266 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode()
1267 rtlphy->current_chan_bw = tmp_bw; in rtl8723be_phy_set_bw_mode()
1275 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_sw_chnl_callback() local
1279 "switch to channel%d\n", rtlphy->current_channel); in rtl8723be_phy_sw_chnl_callback()
1283 if (!rtlphy->sw_chnl_inprogress) in rtl8723be_phy_sw_chnl_callback()
1286 rtlphy->current_channel, in rtl8723be_phy_sw_chnl_callback()
1287 &rtlphy->sw_chnl_stage, in rtl8723be_phy_sw_chnl_callback()
1288 &rtlphy->sw_chnl_step, in rtl8723be_phy_sw_chnl_callback()
1295 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl_callback()
1305 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_sw_chnl() local
1308 if (rtlphy->sw_chnl_inprogress) in rtl8723be_phy_sw_chnl()
1310 if (rtlphy->set_bwmode_inprogress) in rtl8723be_phy_sw_chnl()
1312 WARN_ONCE((rtlphy->current_channel > 14), in rtl8723be_phy_sw_chnl()
1314 rtlphy->sw_chnl_inprogress = true; in rtl8723be_phy_sw_chnl()
1315 rtlphy->sw_chnl_stage = 0; in rtl8723be_phy_sw_chnl()
1316 rtlphy->sw_chnl_step = 0; in rtl8723be_phy_sw_chnl()
1321 rtlphy->current_channel); in rtl8723be_phy_sw_chnl()
1322 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl()
1326 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl()
1336 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_sw_chnl_step_by_step() local
1345 u8 num_total_rfpath = rtlphy->num_total_rfpath; in _rtl8723be_phy_sw_chnl_step_by_step()
1420 rtlphy->rfreg_chnlval[rfpath] = in _rtl8723be_phy_sw_chnl_step_by_step()
1421 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl8723be_phy_sw_chnl_step_by_step()
1427 rtlphy->rfreg_chnlval[rfpath]); in _rtl8723be_phy_sw_chnl_step_by_step()
2003 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_iq_calibrate() local
2033 rtlphy->adda_backup, 16); in _rtl8723be_phy_iq_calibrate()
2035 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2037 rtlphy->iqk_bb_backup, in _rtl8723be_phy_iq_calibrate()
2042 rtlphy->rfpi_enable = (u8)rtl_get_bbreg(hw, in _rtl8723be_phy_iq_calibrate()
2050 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2134 rtlphy->adda_backup, 16); in _rtl8723be_phy_iq_calibrate()
2136 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2138 rtlphy->iqk_bb_backup, in _rtl8723be_phy_iq_calibrate()
2248 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_iq_calibrate() local
2268 if (rtlphy->lck_inprogress) in rtl8723be_phy_iq_calibrate()
2272 rtlphy->lck_inprogress = true; in rtl8723be_phy_iq_calibrate()
2277 rtlphy->iqk_bb_backup, 9); in rtl8723be_phy_iq_calibrate()
2341 rtlphy->reg_e94 = reg_e94; in rtl8723be_phy_iq_calibrate()
2343 rtlphy->reg_e9c = reg_e9c; in rtl8723be_phy_iq_calibrate()
2346 rtlphy->reg_eb4 = reg_eb4; in rtl8723be_phy_iq_calibrate()
2348 rtlphy->reg_ebc = reg_ebc; in rtl8723be_phy_iq_calibrate()
2353 rtlphy->reg_e94 = 0x100; in rtl8723be_phy_iq_calibrate()
2354 rtlphy->reg_eb4 = 0x100; in rtl8723be_phy_iq_calibrate()
2355 rtlphy->reg_e9c = 0x0; in rtl8723be_phy_iq_calibrate()
2356 rtlphy->reg_ebc = 0x0; in rtl8723be_phy_iq_calibrate()
2367 idx = _get_right_chnl_place_for_iqk(rtlphy->current_channel); in rtl8723be_phy_iq_calibrate()
2371 rtlphy->iqk_matrix[idx].value[0][i] = in rtl8723be_phy_iq_calibrate()
2373 rtlphy->iqk_matrix[idx].iqk_done = true; in rtl8723be_phy_iq_calibrate()
2377 rtlphy->iqk_bb_backup, 9); in rtl8723be_phy_iq_calibrate()
2384 rtlphy->lck_inprogress = false; in rtl8723be_phy_iq_calibrate()
2391 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_lc_calibrate() local
2400 rtlphy->lck_inprogress = true; in rtl8723be_phy_lc_calibrate()
2407 rtlphy->lck_inprogress = false; in rtl8723be_phy_lc_calibrate()
2418 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_io_cmd() local
2423 iotype, rtlphy->set_io_inprogress); in rtl8723be_phy_set_io_cmd()
2442 if (b_postprocessing && !rtlphy->set_io_inprogress) { in rtl8723be_phy_set_io_cmd()
2443 rtlphy->set_io_inprogress = true; in rtl8723be_phy_set_io_cmd()
2444 rtlphy->current_io_type = iotype; in rtl8723be_phy_set_io_cmd()
2457 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_io() local
2461 rtlphy->current_io_type, rtlphy->set_io_inprogress); in rtl8723be_phy_set_io()
2462 switch (rtlphy->current_io_type) { in rtl8723be_phy_set_io()
2464 dm_digtable->cur_igvalue = rtlphy->initgain_backup.xaagccore1; in rtl8723be_phy_set_io()
2466 rtl8723be_phy_set_txpower_level(hw, rtlphy->current_channel); in rtl8723be_phy_set_io()
2470 rtlphy->initgain_backup.xaagccore1 = dm_digtable->cur_igvalue; in rtl8723be_phy_set_io()
2477 rtlphy->current_io_type); in rtl8723be_phy_set_io()
2480 rtlphy->set_io_inprogress = false; in rtl8723be_phy_set_io()
2482 "(%#x)\n", rtlphy->current_io_type); in rtl8723be_phy_set_io()