• Home
  • Raw
  • Download

Lines Matching refs:rtlphy

212 	struct rtl_phy *rtlphy = &rtlpriv->phy;  in _rtl8723be_phy_init_tx_power_by_rate()  local
222 rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_init_tx_power_by_rate()
253 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_set_txpower_by_rate_base() local
265 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
268 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
271 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
274 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8723be_phy_set_txpower_by_rate_base()
295 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_get_txpower_by_rate_base() local
307 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][0]; in _rtl8723be_phy_get_txpower_by_rate_base()
310 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][1]; in _rtl8723be_phy_get_txpower_by_rate_base()
313 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][2]; in _rtl8723be_phy_get_txpower_by_rate_base()
316 value = rtlphy->txpwr_by_rate_base_24g[path][txnum][3]; in _rtl8723be_phy_get_txpower_by_rate_base()
336 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_store_txpower_by_rate_base() local
342 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
348 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
356 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
363 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
370 rawvalue = (u16)(rtlphy->tx_power_by_rate_offset in _rtl8723be_phy_store_txpower_by_rate_base()
409 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_convert_txpower_dbm_to_relative_value() local
415 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][2], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
418 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][3], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
424 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][0], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
427 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][1], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
433 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][4], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
436 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_1TX][5], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
443 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][6], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
447 &rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][rfpath][RF_2TX][7], in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
463 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_bb8723b_config_parafile() local
475 rtlphy->pwrgroup_cnt = 0; in _rtl8723be_phy_bb8723b_config_parafile()
490 rtlphy->cck_high_power = (bool)(rtl_get_bbreg(hw, in _rtl8723be_phy_bb8723b_config_parafile()
701 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_store_tx_power_by_rate() local
718 rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] = in _rtl8723be_store_tx_power_by_rate()
849 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_get_hw_reg_originalvalue() local
851 rtlphy->default_initialgain[0] = in rtl8723be_phy_get_hw_reg_originalvalue()
853 rtlphy->default_initialgain[1] = in rtl8723be_phy_get_hw_reg_originalvalue()
855 rtlphy->default_initialgain[2] = in rtl8723be_phy_get_hw_reg_originalvalue()
857 rtlphy->default_initialgain[3] = in rtl8723be_phy_get_hw_reg_originalvalue()
862 rtlphy->default_initialgain[0], in rtl8723be_phy_get_hw_reg_originalvalue()
863 rtlphy->default_initialgain[1], in rtl8723be_phy_get_hw_reg_originalvalue()
864 rtlphy->default_initialgain[2], in rtl8723be_phy_get_hw_reg_originalvalue()
865 rtlphy->default_initialgain[3]); in rtl8723be_phy_get_hw_reg_originalvalue()
867 rtlphy->framesync = (u8)rtl_get_bbreg(hw, ROFDM0_RXDETECTOR3, in rtl8723be_phy_get_hw_reg_originalvalue()
869 rtlphy->framesync_c34 = rtl_get_bbreg(hw, ROFDM0_RXDETECTOR2, in rtl8723be_phy_get_hw_reg_originalvalue()
874 ROFDM0_RXDETECTOR3, rtlphy->framesync); in rtl8723be_phy_get_hw_reg_originalvalue()
954 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_get_txpower_by_rate() local
1010 tx_pwr_diff = (u8)(rtlphy->tx_power_by_rate_offset[band][rfpath][tx_num] in _rtl8723be_get_txpower_by_rate()
1263 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_bw_mode_callback() local
1270 rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20 ? in rtl8723be_phy_set_bw_mode_callback()
1274 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode_callback()
1281 switch (rtlphy->current_chan_bw) { in rtl8723be_phy_set_bw_mode_callback()
1295 "unknown bandwidth: %#X\n", rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1299 switch (rtlphy->current_chan_bw) { in rtl8723be_phy_set_bw_mode_callback()
1320 "unknown bandwidth: %#X\n", rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1323 rtl8723be_phy_rf6052_set_bandwidth(hw, rtlphy->current_chan_bw); in rtl8723be_phy_set_bw_mode_callback()
1324 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode_callback()
1332 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_bw_mode() local
1334 u8 tmp_bw = rtlphy->current_chan_bw; in rtl8723be_phy_set_bw_mode()
1336 if (rtlphy->set_bwmode_inprogress) in rtl8723be_phy_set_bw_mode()
1338 rtlphy->set_bwmode_inprogress = true; in rtl8723be_phy_set_bw_mode()
1344 rtlphy->set_bwmode_inprogress = false; in rtl8723be_phy_set_bw_mode()
1345 rtlphy->current_chan_bw = tmp_bw; in rtl8723be_phy_set_bw_mode()
1353 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_sw_chnl_callback() local
1357 "switch to channel%d\n", rtlphy->current_channel); in rtl8723be_phy_sw_chnl_callback()
1361 if (!rtlphy->sw_chnl_inprogress) in rtl8723be_phy_sw_chnl_callback()
1364 rtlphy->current_channel, in rtl8723be_phy_sw_chnl_callback()
1365 &rtlphy->sw_chnl_stage, in rtl8723be_phy_sw_chnl_callback()
1366 &rtlphy->sw_chnl_step, in rtl8723be_phy_sw_chnl_callback()
1373 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl_callback()
1383 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_sw_chnl() local
1386 if (rtlphy->sw_chnl_inprogress) in rtl8723be_phy_sw_chnl()
1388 if (rtlphy->set_bwmode_inprogress) in rtl8723be_phy_sw_chnl()
1390 RT_ASSERT((rtlphy->current_channel <= 14), in rtl8723be_phy_sw_chnl()
1392 rtlphy->sw_chnl_inprogress = true; in rtl8723be_phy_sw_chnl()
1393 rtlphy->sw_chnl_stage = 0; in rtl8723be_phy_sw_chnl()
1394 rtlphy->sw_chnl_step = 0; in rtl8723be_phy_sw_chnl()
1399 rtlphy->current_channel); in rtl8723be_phy_sw_chnl()
1400 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl()
1404 rtlphy->sw_chnl_inprogress = false; in rtl8723be_phy_sw_chnl()
1414 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_sw_chnl_step_by_step() local
1423 u8 num_total_rfpath = rtlphy->num_total_rfpath; in _rtl8723be_phy_sw_chnl_step_by_step()
1498 rtlphy->rfreg_chnlval[rfpath] = in _rtl8723be_phy_sw_chnl_step_by_step()
1499 ((rtlphy->rfreg_chnlval[rfpath] & in _rtl8723be_phy_sw_chnl_step_by_step()
1505 rtlphy->rfreg_chnlval[rfpath]); in _rtl8723be_phy_sw_chnl_step_by_step()
2080 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8723be_phy_iq_calibrate() local
2110 rtlphy->adda_backup, 16); in _rtl8723be_phy_iq_calibrate()
2112 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2114 rtlphy->iqk_bb_backup, in _rtl8723be_phy_iq_calibrate()
2119 rtlphy->rfpi_enable = (u8)rtl_get_bbreg(hw, in _rtl8723be_phy_iq_calibrate()
2127 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2211 rtlphy->adda_backup, 16); in _rtl8723be_phy_iq_calibrate()
2213 rtlphy->iqk_mac_backup); in _rtl8723be_phy_iq_calibrate()
2215 rtlphy->iqk_bb_backup, in _rtl8723be_phy_iq_calibrate()
2326 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_iq_calibrate() local
2346 if (rtlphy->lck_inprogress) in rtl8723be_phy_iq_calibrate()
2350 rtlphy->lck_inprogress = true; in rtl8723be_phy_iq_calibrate()
2355 rtlphy->iqk_bb_backup, 9); in rtl8723be_phy_iq_calibrate()
2421 rtlphy->reg_e94 = reg_e94; in rtl8723be_phy_iq_calibrate()
2423 rtlphy->reg_e9c = reg_e9c; in rtl8723be_phy_iq_calibrate()
2427 rtlphy->reg_eb4 = reg_eb4; in rtl8723be_phy_iq_calibrate()
2429 rtlphy->reg_ebc = reg_ebc; in rtl8723be_phy_iq_calibrate()
2435 rtlphy->reg_e94 = 0x100; in rtl8723be_phy_iq_calibrate()
2436 rtlphy->reg_eb4 = 0x100; in rtl8723be_phy_iq_calibrate()
2437 rtlphy->reg_e9c = 0x0; in rtl8723be_phy_iq_calibrate()
2438 rtlphy->reg_ebc = 0x0; in rtl8723be_phy_iq_calibrate()
2449 idx = _get_right_chnl_place_for_iqk(rtlphy->current_channel); in rtl8723be_phy_iq_calibrate()
2453 rtlphy->iqk_matrix[idx].value[0][i] = in rtl8723be_phy_iq_calibrate()
2455 rtlphy->iqk_matrix[idx].iqk_done = true; in rtl8723be_phy_iq_calibrate()
2459 rtlphy->iqk_bb_backup, 9); in rtl8723be_phy_iq_calibrate()
2465 rtlphy->lck_inprogress = false; in rtl8723be_phy_iq_calibrate()
2472 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_lc_calibrate() local
2481 rtlphy->lck_inprogress = true; in rtl8723be_phy_lc_calibrate()
2488 rtlphy->lck_inprogress = false; in rtl8723be_phy_lc_calibrate()
2499 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_io_cmd() local
2504 iotype, rtlphy->set_io_inprogress); in rtl8723be_phy_set_io_cmd()
2523 if (b_postprocessing && !rtlphy->set_io_inprogress) { in rtl8723be_phy_set_io_cmd()
2524 rtlphy->set_io_inprogress = true; in rtl8723be_phy_set_io_cmd()
2525 rtlphy->current_io_type = iotype; in rtl8723be_phy_set_io_cmd()
2538 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8723be_phy_set_io() local
2542 rtlphy->current_io_type, rtlphy->set_io_inprogress); in rtl8723be_phy_set_io()
2543 switch (rtlphy->current_io_type) { in rtl8723be_phy_set_io()
2545 dm_digtable->cur_igvalue = rtlphy->initgain_backup.xaagccore1; in rtl8723be_phy_set_io()
2547 rtl8723be_phy_set_txpower_level(hw, rtlphy->current_channel); in rtl8723be_phy_set_io()
2551 rtlphy->initgain_backup.xaagccore1 = dm_digtable->cur_igvalue; in rtl8723be_phy_set_io()
2560 rtlphy->set_io_inprogress = false; in rtl8723be_phy_set_io()
2562 "(%#x)\n", rtlphy->current_io_type); in rtl8723be_phy_set_io()