Home
last modified time | relevance | path

Searched refs:rfpath (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/
Dstats.c95 u8 rfpath; in rtl_process_ui_rssi() local
124 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl_process_ui_rssi()
125 rfpath++) { in rtl_process_ui_rssi()
126 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl_process_ui_rssi()
127 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
128 pstatus->rx_mimo_signalstrength[rfpath]; in rtl_process_ui_rssi()
131 if (pstatus->rx_mimo_signalstrength[rfpath] > in rtl_process_ui_rssi()
132 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl_process_ui_rssi()
133 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
134 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl_process_ui_rssi()
[all …]
/Linux-v4.19/drivers/staging/rtlwifi/
Dstats.c81 u8 rfpath; in rtl_process_ui_rssi() local
109 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl_process_ui_rssi()
110 rfpath++) { in rtl_process_ui_rssi()
111 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl_process_ui_rssi()
112 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
113 pstatus->rx_mimo_signalstrength[rfpath]; in rtl_process_ui_rssi()
115 if (pstatus->rx_mimo_signalstrength[rfpath] > in rtl_process_ui_rssi()
116 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl_process_ui_rssi()
117 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
118 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl_process_ui_rssi()
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Drf.c81 u8 rfpath; in _rtl92ee_phy_rf6052_config_parafile() local
85 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92ee_phy_rf6052_config_parafile()
86 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92ee_phy_rf6052_config_parafile()
88 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
114 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
117 (enum radio_path)rfpath); in _rtl92ee_phy_rf6052_config_parafile()
121 (enum radio_path)rfpath); in _rtl92ee_phy_rf6052_config_parafile()
129 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
144 "Radio[%d] Fail!!\n", rfpath); in _rtl92ee_phy_rf6052_config_parafile()
Dphy.c37 enum radio_path rfpath, u32 offset);
39 enum radio_path rfpath, u32 offset,
105 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92ee_phy_query_rf_reg() argument
113 regaddr, rfpath, bitmask); in rtl92ee_phy_query_rf_reg()
117 original_value = _rtl92ee_phy_rf_serial_read(hw , rfpath, regaddr); in rtl92ee_phy_query_rf_reg()
125 regaddr, rfpath, bitmask, original_value); in rtl92ee_phy_query_rf_reg()
131 enum radio_path rfpath, in rtl92ee_phy_set_rf_reg() argument
140 addr, bitmask, data, rfpath); in rtl92ee_phy_set_rf_reg()
145 original_value = _rtl92ee_phy_rf_serial_read(hw, rfpath, addr); in rtl92ee_phy_set_rf_reg()
150 _rtl92ee_phy_rf_serial_write(hw, rfpath, addr, data); in rtl92ee_phy_set_rf_reg()
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Drf.c38 u8 rfpath; in rtl92d_phy_rf6052_set_bandwidth() local
42 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92d_phy_rf6052_set_bandwidth()
43 rtlphy->rfreg_chnlval[rfpath] = ((rtlphy->rfreg_chnlval in rtl92d_phy_rf6052_set_bandwidth()
44 [rfpath] & 0xfffff3ff) | 0x0400); in rtl92d_phy_rf6052_set_bandwidth()
45 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | in rtl92d_phy_rf6052_set_bandwidth()
50 rtlphy->rfreg_chnlval[rfpath]); in rtl92d_phy_rf6052_set_bandwidth()
55 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92d_phy_rf6052_set_bandwidth()
56 rtlphy->rfreg_chnlval[rfpath] = in rtl92d_phy_rf6052_set_bandwidth()
57 ((rtlphy->rfreg_chnlval[rfpath] & 0xfffff3ff)); in rtl92d_phy_rf6052_set_bandwidth()
58 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | BIT(11), in rtl92d_phy_rf6052_set_bandwidth()
[all …]
Dphy.c264 enum radio_path rfpath, u32 offset) in _rtl92d_phy_rf_serial_read() argument
269 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_read()
277 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
292 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
295 else if (rfpath == RF90_PATH_B) in _rtl92d_phy_rf_serial_read()
305 rfpath, pphyreg->rf_rb, retvalue); in _rtl92d_phy_rf_serial_read()
310 enum radio_path rfpath, in _rtl92d_phy_rf_serial_write() argument
317 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_write()
324 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92d_phy_rf_serial_write()
328 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92d_phy_query_rf_reg() argument
[all …]
Dhw.c1420 u32 rfpath, eeaddr, group, offset1, offset2; in _rtl92de_readpowervalue_fromprom() local
1426 for (rfpath = 0; rfpath < RF6052_MAX_PATH; rfpath++) { in _rtl92de_readpowervalue_fromprom()
1428 pwrinfo->cck_index[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1430 pwrinfo->ht40_1sindex[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1433 pwrinfo->ht40_1sindex[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1436 pwrinfo->ht40_2sindexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1438 pwrinfo->ht20indexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1440 pwrinfo->ofdmindexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1442 pwrinfo->ht40maxoffset[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1444 pwrinfo->ht20maxoffset[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
[all …]
Dtrx.c263 u8 rfpath; in rtl92d_loop_over_paths() local
265 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_loop_over_paths()
266 rfpath++) { in rtl92d_loop_over_paths()
267 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl92d_loop_over_paths()
268 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
269 pstats->rx_mimo_signalstrength[rfpath]; in rtl92d_loop_over_paths()
272 if (pstats->rx_mimo_signalstrength[rfpath] > in rtl92d_loop_over_paths()
273 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl92d_loop_over_paths()
274 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
275 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.h81 u32 rtl92c_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
83 void rtl92ce_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
89 enum radio_path rfpath);
106 enum radio_path rfpath);
108 u32 rfpath);
115 u32 _rtl92c_phy_rf_serial_read(struct ieee80211_hw *hw, enum radio_path rfpath,
118 enum radio_path rfpath, u32 offset);
121 enum radio_path rfpath, u32 offset, u32 data);
123 enum radio_path rfpath, u32 offset,
Dphy.c44 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92c_phy_query_rf_reg() argument
52 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg()
58 rfpath, regaddr); in rtl92c_phy_query_rf_reg()
61 rfpath, regaddr); in rtl92c_phy_query_rf_reg()
71 regaddr, rfpath, bitmask, original_value); in rtl92c_phy_query_rf_reg()
117 enum radio_path rfpath, in rtl92ce_phy_set_rf_reg() argument
126 regaddr, bitmask, data, rfpath); in rtl92ce_phy_set_rf_reg()
133 rfpath, in rtl92ce_phy_set_rf_reg()
141 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92ce_phy_set_rf_reg()
145 rfpath, in rtl92ce_phy_set_rf_reg()
[all …]
Drf.c432 u8 rfpath; in _rtl92ce_phy_rf6052_config_parafile() local
436 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92ce_phy_rf6052_config_parafile()
438 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92ce_phy_rf6052_config_parafile()
440 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
466 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
469 (enum radio_path)rfpath); in _rtl92ce_phy_rf6052_config_parafile()
473 (enum radio_path)rfpath); in _rtl92ce_phy_rf6052_config_parafile()
481 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
496 "Radio[%d] Fail!!\n", rfpath); in _rtl92ce_phy_rf6052_config_parafile()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dhw.c1559 static void set_24g_base(struct txpower_info_2g *pwrinfo24g, u32 rfpath) in set_24g_base() argument
1564 pwrinfo24g->index_cck_base[rfpath][group] = 0x2D; in set_24g_base()
1565 pwrinfo24g->index_bw40_base[rfpath][group] = 0x2D; in set_24g_base()
1569 pwrinfo24g->bw20_diff[rfpath][0] = 0x02; in set_24g_base()
1570 pwrinfo24g->ofdm_diff[rfpath][0] = 0x04; in set_24g_base()
1572 pwrinfo24g->bw20_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1573 pwrinfo24g->bw40_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1574 pwrinfo24g->cck_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1575 pwrinfo24g->ofdm_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1586 u32 rfpath, eeaddr = EEPROM_TX_PWR_INX, group, txcnt = 0; in read_power_value_fromprom() local
[all …]
Drf.c437 u8 rfpath; in _rtl88e_phy_rf6052_config_parafile() local
441 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl88e_phy_rf6052_config_parafile()
442 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl88e_phy_rf6052_config_parafile()
444 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
470 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
473 (enum radio_path)rfpath); in _rtl88e_phy_rf6052_config_parafile()
477 (enum radio_path)rfpath); in _rtl88e_phy_rf6052_config_parafile()
485 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
500 "Radio[%d] Fail!!\n", rfpath); in _rtl88e_phy_rf6052_config_parafile()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dphy.c41 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92cu_phy_query_rf_reg() argument
49 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg()
52 rfpath, regaddr); in rtl92cu_phy_query_rf_reg()
55 rfpath, regaddr); in rtl92cu_phy_query_rf_reg()
61 regaddr, rfpath, bitmask, original_value); in rtl92cu_phy_query_rf_reg()
66 enum radio_path rfpath, in rtl92cu_phy_set_rf_reg() argument
75 regaddr, bitmask, data, rfpath); in rtl92cu_phy_set_rf_reg()
79 rfpath, in rtl92cu_phy_set_rf_reg()
86 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg()
90 rfpath, in rtl92cu_phy_set_rf_reg()
[all …]
Dphy.h29 bool rtl8192_phy_check_is_legal_rfpath(struct ieee80211_hw *hw, u32 rfpath);
34 enum radio_path rfpath, u32 regaddr, u32 bitmask);
36 enum radio_path rfpath,
Drf.c408 u8 rfpath; in _rtl92c_phy_rf6052_config_parafile() local
412 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92c_phy_rf6052_config_parafile()
413 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92c_phy_rf6052_config_parafile()
414 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
435 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
439 (enum radio_path) rfpath); in _rtl92c_phy_rf6052_config_parafile()
446 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
460 "Radio[%d] Fail!!\n", rfpath); in _rtl92c_phy_rf6052_config_parafile()
/Linux-v4.19/drivers/staging/rtlwifi/phydm/
Dphydm_kfree.c149 u8 rfpath = 0, max_rf_path = 0; in phydm_config_kfree() local
198 for (rfpath = ODM_RF_PATH_A; rfpath < max_rf_path; rfpath++) { in phydm_config_kfree()
200 __func__, rfpath, in phydm_config_kfree()
202 rfpath]); in phydm_config_kfree()
204 dm, rfpath, in phydm_config_kfree()
206 rfpath]); in phydm_config_kfree()
Drtl_phydm.c308 enum odm_rf_radio_path rfpath; in rtl_phydm_phy_rf_config() local
310 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl_phydm_phy_rf_config()
312 rfpath); in rtl_phydm_phy_rf_config()
466 enum radio_path rfpath, u32 addr, u32 mask) in rtl_phydm_read_rf_reg() argument
469 enum odm_rf_radio_path odm_rfpath = (enum odm_rf_radio_path)rfpath; in rtl_phydm_read_rf_reg()
479 enum radio_path rfpath, u32 addr, u32 mask, in rtl_phydm_write_rf_reg() argument
483 enum odm_rf_radio_path odm_rfpath = (enum odm_rf_radio_path)rfpath; in rtl_phydm_write_rf_reg()
492 static u8 rtl_phydm_read_txagc(struct rtl_priv *rtlpriv, enum radio_path rfpath, in rtl_phydm_read_txagc() argument
496 enum odm_rf_radio_path odm_rfpath = (enum odm_rf_radio_path)rfpath; in rtl_phydm_read_txagc()
505 enum radio_path rfpath, u8 hw_rate) in rtl_phydm_write_txagc() argument
[all …]
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dphy_common.h189 enum radio_path rfpath, u32 regaddr,
195 enum radio_path rfpath);
213 enum radio_path rfpath);
215 u32 rfpath);
235 enum radio_path rfpath, u32 offset);
237 enum radio_path rfpath, u32 offset,
240 enum radio_path rfpath, u32 offset);
242 enum radio_path rfpath, u32 offset,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.c95 enum radio_path rfpath, u32 offset) in _rtl92s_phy_rf_serial_read() argument
100 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_read()
111 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
131 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
134 else if (rfpath == RF90_PATH_B) in _rtl92s_phy_rf_serial_read()
149 rfpath, pphyreg->rf_rb, retvalue); in _rtl92s_phy_rf_serial_read()
156 enum radio_path rfpath, u32 offset, in _rtl92s_phy_rf_serial_write() argument
161 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_write()
172 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92s_phy_rf_serial_write()
176 u32 rtl92s_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_query_rf_reg() argument
[all …]
Drf.c425 u8 rfpath; in rtl92s_phy_rf6052_config() local
430 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92s_phy_rf6052_config()
432 pphyreg = &rtlphy->phyreg_def[rfpath]; in rtl92s_phy_rf6052_config()
435 switch (rfpath) { in rtl92s_phy_rf6052_config()
464 switch (rfpath) { in rtl92s_phy_rf6052_config()
467 (enum radio_path)rfpath); in rtl92s_phy_rf6052_config()
471 (enum radio_path)rfpath); in rtl92s_phy_rf6052_config()
480 switch (rfpath) { in rtl92s_phy_rf6052_config()
495 pr_err("Radio[%d] Fail!!\n", rfpath); in rtl92s_phy_rf6052_config()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Drf.c441 u8 rfpath; in _rtl8723e_phy_rf6052_config_parafile() local
445 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8723e_phy_rf6052_config_parafile()
447 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8723e_phy_rf6052_config_parafile()
449 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
475 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
478 (enum radio_path)rfpath); in _rtl8723e_phy_rf6052_config_parafile()
483 (enum radio_path)rfpath); in _rtl8723e_phy_rf6052_config_parafile()
491 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
506 "Radio[%d] Fail!!\n", rfpath); in _rtl8723e_phy_rf6052_config_parafile()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Drf.c441 u8 rfpath; in _rtl8723be_phy_rf6052_config_parafile() local
445 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8723be_phy_rf6052_config_parafile()
446 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8723be_phy_rf6052_config_parafile()
448 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
474 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
477 (enum radio_path)rfpath); in _rtl8723be_phy_rf6052_config_parafile()
481 (enum radio_path)rfpath); in _rtl8723be_phy_rf6052_config_parafile()
489 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
504 "Radio[%d] Fail!!\n", rfpath); in _rtl8723be_phy_rf6052_config_parafile()
/Linux-v4.19/drivers/staging/rtlwifi/rtl8822be/
Dphy.h85 u32 rtl8822be_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
87 void rtl8822be_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
106 enum radio_path rfpath);
108 enum radio_path rfpath);
125 u32 rfpath, u32 txnum, u32 regaddr,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Drf.c420 u8 rfpath; in _rtl8821ae_phy_rf6052_config_parafile() local
423 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8821ae_phy_rf6052_config_parafile()
424 switch (rfpath) { in _rtl8821ae_phy_rf6052_config_parafile()
429 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
433 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
440 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
444 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
454 "Radio[%d] Fail!!\n", rfpath); in _rtl8821ae_phy_rf6052_config_parafile()

123