Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Dstats.c74 u8 rfpath; in rtl_process_ui_rssi() local
103 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl_process_ui_rssi()
104 rfpath++) { in rtl_process_ui_rssi()
105 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl_process_ui_rssi()
106 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
107 pstatus->rx_mimo_signalstrength[rfpath]; in rtl_process_ui_rssi()
110 if (pstatus->rx_mimo_signalstrength[rfpath] > in rtl_process_ui_rssi()
111 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl_process_ui_rssi()
112 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl_process_ui_rssi()
113 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl_process_ui_rssi()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Drf.c16 u8 rfpath; in rtl92d_phy_rf6052_set_bandwidth() local
20 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92d_phy_rf6052_set_bandwidth()
21 rtlphy->rfreg_chnlval[rfpath] = ((rtlphy->rfreg_chnlval in rtl92d_phy_rf6052_set_bandwidth()
22 [rfpath] & 0xfffff3ff) | 0x0400); in rtl92d_phy_rf6052_set_bandwidth()
23 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | in rtl92d_phy_rf6052_set_bandwidth()
28 rtlphy->rfreg_chnlval[rfpath]); in rtl92d_phy_rf6052_set_bandwidth()
33 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92d_phy_rf6052_set_bandwidth()
34 rtlphy->rfreg_chnlval[rfpath] = in rtl92d_phy_rf6052_set_bandwidth()
35 ((rtlphy->rfreg_chnlval[rfpath] & 0xfffff3ff)); in rtl92d_phy_rf6052_set_bandwidth()
36 rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | BIT(11), in rtl92d_phy_rf6052_set_bandwidth()
[all …]
Dhw.c1399 u32 rfpath, eeaddr, group, offset1, offset2; in _rtl92de_readpowervalue_fromprom() local
1405 for (rfpath = 0; rfpath < RF6052_MAX_PATH; rfpath++) { in _rtl92de_readpowervalue_fromprom()
1407 pwrinfo->cck_index[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1409 pwrinfo->ht40_1sindex[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1412 pwrinfo->ht40_1sindex[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1415 pwrinfo->ht40_2sindexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1417 pwrinfo->ht20indexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1419 pwrinfo->ofdmindexdiff[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1421 pwrinfo->ht40maxoffset[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
1423 pwrinfo->ht20maxoffset[rfpath][group] = in _rtl92de_readpowervalue_fromprom()
[all …]
Dphy.c246 enum radio_path rfpath, u32 offset) in _rtl92d_phy_rf_serial_read() argument
251 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_read()
259 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
274 if (rfpath == RF90_PATH_A) in _rtl92d_phy_rf_serial_read()
277 else if (rfpath == RF90_PATH_B) in _rtl92d_phy_rf_serial_read()
287 rfpath, pphyreg->rf_rb, retvalue); in _rtl92d_phy_rf_serial_read()
292 enum radio_path rfpath, in _rtl92d_phy_rf_serial_write() argument
299 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92d_phy_rf_serial_write()
306 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92d_phy_rf_serial_write()
310 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92d_phy_query_rf_reg() argument
[all …]
Dtrx.c190 u8 rfpath; in rtl92d_loop_over_paths() local
192 for (rfpath = RF90_PATH_A; rfpath < rtlphy->num_total_rfpath; in rtl92d_loop_over_paths()
193 rfpath++) { in rtl92d_loop_over_paths()
194 if (rtlpriv->stats.rx_rssi_percentage[rfpath] == 0) { in rtl92d_loop_over_paths()
195 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
196 pstats->rx_mimo_signalstrength[rfpath]; in rtl92d_loop_over_paths()
199 if (pstats->rx_mimo_signalstrength[rfpath] > in rtl92d_loop_over_paths()
200 rtlpriv->stats.rx_rssi_percentage[rfpath]) { in rtl92d_loop_over_paths()
201 rtlpriv->stats.rx_rssi_percentage[rfpath] = in rtl92d_loop_over_paths()
202 ((rtlpriv->stats.rx_rssi_percentage[rfpath] * in rtl92d_loop_over_paths()
[all …]
Dphy.h107 enum radio_path rfpath, u32 regaddr,
110 enum radio_path rfpath, u32 regaddr,
116 enum radio_path rfpath);
124 enum radio_path rfpath);
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Drf.c59 u8 rfpath; in _rtl92ee_phy_rf6052_config_parafile() local
63 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92ee_phy_rf6052_config_parafile()
64 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92ee_phy_rf6052_config_parafile()
66 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
92 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
95 (enum radio_path)rfpath); in _rtl92ee_phy_rf6052_config_parafile()
99 (enum radio_path)rfpath); in _rtl92ee_phy_rf6052_config_parafile()
107 switch (rfpath) { in _rtl92ee_phy_rf6052_config_parafile()
122 "Radio[%d] Fail!!\n", rfpath); in _rtl92ee_phy_rf6052_config_parafile()
Dphy.c15 enum radio_path rfpath, u32 offset);
17 enum radio_path rfpath, u32 offset,
83 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92ee_phy_query_rf_reg() argument
90 regaddr, rfpath, bitmask); in rtl92ee_phy_query_rf_reg()
94 original_value = _rtl92ee_phy_rf_serial_read(hw , rfpath, regaddr); in rtl92ee_phy_query_rf_reg()
102 regaddr, rfpath, bitmask, original_value); in rtl92ee_phy_query_rf_reg()
108 enum radio_path rfpath, in rtl92ee_phy_set_rf_reg() argument
116 addr, bitmask, data, rfpath); in rtl92ee_phy_set_rf_reg()
121 original_value = _rtl92ee_phy_rf_serial_read(hw, rfpath, addr); in rtl92ee_phy_set_rf_reg()
126 _rtl92ee_phy_rf_serial_write(hw, rfpath, addr, data); in rtl92ee_phy_set_rf_reg()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.h59 u32 rtl92c_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
61 void rtl92ce_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
67 enum radio_path rfpath);
84 enum radio_path rfpath);
86 u32 rfpath);
93 u32 _rtl92c_phy_rf_serial_read(struct ieee80211_hw *hw, enum radio_path rfpath,
96 enum radio_path rfpath, u32 offset);
99 enum radio_path rfpath, u32 offset, u32 data);
101 enum radio_path rfpath, u32 offset,
Dphy.c22 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92c_phy_query_rf_reg() argument
30 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg()
36 rfpath, regaddr); in rtl92c_phy_query_rf_reg()
39 rfpath, regaddr); in rtl92c_phy_query_rf_reg()
49 regaddr, rfpath, bitmask, original_value); in rtl92c_phy_query_rf_reg()
95 enum radio_path rfpath, in rtl92ce_phy_set_rf_reg() argument
104 regaddr, bitmask, data, rfpath); in rtl92ce_phy_set_rf_reg()
111 rfpath, in rtl92ce_phy_set_rf_reg()
119 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92ce_phy_set_rf_reg()
123 rfpath, in rtl92ce_phy_set_rf_reg()
[all …]
Drf.c410 u8 rfpath; in _rtl92ce_phy_rf6052_config_parafile() local
414 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92ce_phy_rf6052_config_parafile()
416 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92ce_phy_rf6052_config_parafile()
418 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
444 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
447 (enum radio_path)rfpath); in _rtl92ce_phy_rf6052_config_parafile()
451 (enum radio_path)rfpath); in _rtl92ce_phy_rf6052_config_parafile()
459 switch (rfpath) { in _rtl92ce_phy_rf6052_config_parafile()
474 "Radio[%d] Fail!!\n", rfpath); in _rtl92ce_phy_rf6052_config_parafile()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dhw.c1531 static void set_24g_base(struct txpower_info_2g *pwrinfo24g, u32 rfpath) in set_24g_base() argument
1536 pwrinfo24g->index_cck_base[rfpath][group] = 0x2D; in set_24g_base()
1537 pwrinfo24g->index_bw40_base[rfpath][group] = 0x2D; in set_24g_base()
1541 pwrinfo24g->bw20_diff[rfpath][0] = 0x02; in set_24g_base()
1542 pwrinfo24g->ofdm_diff[rfpath][0] = 0x04; in set_24g_base()
1544 pwrinfo24g->bw20_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1545 pwrinfo24g->bw40_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1546 pwrinfo24g->cck_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1547 pwrinfo24g->ofdm_diff[rfpath][txcnt] = 0xFE; in set_24g_base()
1558 u32 rfpath, eeaddr = EEPROM_TX_PWR_INX, group, txcnt = 0; in read_power_value_fromprom() local
[all …]
Drf.c415 u8 rfpath; in _rtl88e_phy_rf6052_config_parafile() local
419 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl88e_phy_rf6052_config_parafile()
420 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl88e_phy_rf6052_config_parafile()
422 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
448 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
451 (enum radio_path)rfpath); in _rtl88e_phy_rf6052_config_parafile()
455 (enum radio_path)rfpath); in _rtl88e_phy_rf6052_config_parafile()
463 switch (rfpath) { in _rtl88e_phy_rf6052_config_parafile()
478 "Radio[%d] Fail!!\n", rfpath); in _rtl88e_phy_rf6052_config_parafile()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dphy.c19 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92cu_phy_query_rf_reg() argument
27 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg()
30 rfpath, regaddr); in rtl92cu_phy_query_rf_reg()
33 rfpath, regaddr); in rtl92cu_phy_query_rf_reg()
39 regaddr, rfpath, bitmask, original_value); in rtl92cu_phy_query_rf_reg()
44 enum radio_path rfpath, in rtl92cu_phy_set_rf_reg() argument
53 regaddr, bitmask, data, rfpath); in rtl92cu_phy_set_rf_reg()
57 rfpath, in rtl92cu_phy_set_rf_reg()
64 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg()
68 rfpath, in rtl92cu_phy_set_rf_reg()
[all …]
Dphy.h7 bool rtl8192_phy_check_is_legal_rfpath(struct ieee80211_hw *hw, u32 rfpath);
12 enum radio_path rfpath, u32 regaddr, u32 bitmask);
14 enum radio_path rfpath,
Drf.c383 u8 rfpath; in _rtl92c_phy_rf6052_config_parafile() local
387 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl92c_phy_rf6052_config_parafile()
388 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92c_phy_rf6052_config_parafile()
389 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
410 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
414 (enum radio_path) rfpath); in _rtl92c_phy_rf6052_config_parafile()
421 switch (rfpath) { in _rtl92c_phy_rf6052_config_parafile()
435 "Radio[%d] Fail!!\n", rfpath); in _rtl92c_phy_rf6052_config_parafile()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dphy_common.h167 enum radio_path rfpath, u32 regaddr,
173 enum radio_path rfpath);
191 enum radio_path rfpath);
193 u32 rfpath);
213 enum radio_path rfpath, u32 offset);
215 enum radio_path rfpath, u32 offset,
218 enum radio_path rfpath, u32 offset);
220 enum radio_path rfpath, u32 offset,
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.c68 enum radio_path rfpath, u32 offset) in _rtl92s_phy_rf_serial_read() argument
73 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_read()
84 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
104 if (rfpath == RF90_PATH_A) in _rtl92s_phy_rf_serial_read()
107 else if (rfpath == RF90_PATH_B) in _rtl92s_phy_rf_serial_read()
122 rfpath, pphyreg->rf_rb, retvalue); in _rtl92s_phy_rf_serial_read()
129 enum radio_path rfpath, u32 offset, in _rtl92s_phy_rf_serial_write() argument
134 struct bb_reg_def *pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl92s_phy_rf_serial_write()
145 rfpath, pphyreg->rf3wire_offset, data_and_addr); in _rtl92s_phy_rf_serial_write()
149 u32 rtl92s_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl92s_phy_query_rf_reg() argument
[all …]
Drf.c403 u8 rfpath; in rtl92s_phy_rf6052_config() local
408 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92s_phy_rf6052_config()
410 pphyreg = &rtlphy->phyreg_def[rfpath]; in rtl92s_phy_rf6052_config()
413 switch (rfpath) { in rtl92s_phy_rf6052_config()
442 switch (rfpath) { in rtl92s_phy_rf6052_config()
445 (enum radio_path)rfpath); in rtl92s_phy_rf6052_config()
449 (enum radio_path)rfpath); in rtl92s_phy_rf6052_config()
458 switch (rfpath) { in rtl92s_phy_rf6052_config()
473 pr_err("Radio[%d] Fail!!\n", rfpath); in rtl92s_phy_rf6052_config()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c2586 u32 rfpath, eeaddr = EEPROM_TX_PWR_INX, group, txcount = 0; in _rtl8821ae_read_power_value_fromprom() local
2597 for (rfpath = 0 ; rfpath < MAX_RF_PATH ; rfpath++) { in _rtl8821ae_read_power_value_fromprom()
2600 pwrinfo24g->index_cck_base[rfpath][group] = 0x2D; in _rtl8821ae_read_power_value_fromprom()
2601 pwrinfo24g->index_bw40_base[rfpath][group] = 0x2D; in _rtl8821ae_read_power_value_fromprom()
2605 pwrinfo24g->bw20_diff[rfpath][0] = 0x02; in _rtl8821ae_read_power_value_fromprom()
2606 pwrinfo24g->ofdm_diff[rfpath][0] = 0x04; in _rtl8821ae_read_power_value_fromprom()
2608 pwrinfo24g->bw20_diff[rfpath][txcount] = 0xFE; in _rtl8821ae_read_power_value_fromprom()
2609 pwrinfo24g->bw40_diff[rfpath][txcount] = 0xFE; in _rtl8821ae_read_power_value_fromprom()
2610 pwrinfo24g->cck_diff[rfpath][txcount] = 0xFE; in _rtl8821ae_read_power_value_fromprom()
2611 pwrinfo24g->ofdm_diff[rfpath][txcount] = 0xFE; in _rtl8821ae_read_power_value_fromprom()
[all …]
Drf.c398 u8 rfpath; in _rtl8821ae_phy_rf6052_config_parafile() local
401 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8821ae_phy_rf6052_config_parafile()
402 switch (rfpath) { in _rtl8821ae_phy_rf6052_config_parafile()
407 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
411 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
418 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
422 (enum radio_path)rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
432 "Radio[%d] Fail!!\n", rfpath); in _rtl8821ae_phy_rf6052_config_parafile()
Dphy.c26 enum radio_path rfpath, u32 offset);
28 enum radio_path rfpath, u32 offset,
142 enum radio_path rfpath, u32 regaddr, in rtl8821ae_phy_query_rf_reg() argument
150 regaddr, rfpath, bitmask); in rtl8821ae_phy_query_rf_reg()
154 original_value = _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_query_rf_reg()
162 regaddr, rfpath, bitmask, original_value); in rtl8821ae_phy_query_rf_reg()
168 enum radio_path rfpath, in rtl8821ae_phy_set_rf_reg() argument
176 regaddr, bitmask, data, rfpath); in rtl8821ae_phy_set_rf_reg()
182 _rtl8821ae_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8821ae_phy_set_rf_reg()
187 _rtl8821ae_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl8821ae_phy_set_rf_reg()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Drf.c419 u8 rfpath; in _rtl8723e_phy_rf6052_config_parafile() local
423 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8723e_phy_rf6052_config_parafile()
425 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8723e_phy_rf6052_config_parafile()
427 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
453 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
456 (enum radio_path)rfpath); in _rtl8723e_phy_rf6052_config_parafile()
461 (enum radio_path)rfpath); in _rtl8723e_phy_rf6052_config_parafile()
469 switch (rfpath) { in _rtl8723e_phy_rf6052_config_parafile()
484 "Radio[%d] Fail!!\n", rfpath); in _rtl8723e_phy_rf6052_config_parafile()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Drf.c419 u8 rfpath; in _rtl8723be_phy_rf6052_config_parafile() local
423 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8723be_phy_rf6052_config_parafile()
424 pphyreg = &rtlphy->phyreg_def[rfpath]; in _rtl8723be_phy_rf6052_config_parafile()
426 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
452 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
455 (enum radio_path)rfpath); in _rtl8723be_phy_rf6052_config_parafile()
459 (enum radio_path)rfpath); in _rtl8723be_phy_rf6052_config_parafile()
467 switch (rfpath) { in _rtl8723be_phy_rf6052_config_parafile()
482 "Radio[%d] Fail!!\n", rfpath); in _rtl8723be_phy_rf6052_config_parafile()
Dphy.c31 u32 rtl8723be_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl8723be_phy_query_rf_reg() argument
39 regaddr, rfpath, bitmask); in rtl8723be_phy_query_rf_reg()
43 original_value = rtl8723_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8723be_phy_query_rf_reg()
51 regaddr, rfpath, bitmask, original_value); in rtl8723be_phy_query_rf_reg()
215 u32 data, enum radio_path rfpath, in _rtl8723be_config_rf_reg() argument
224 rtl_set_rfreg(hw, rfpath, regaddr, RFREG_OFFSET_MASK, data); in _rtl8723be_config_rf_reg()
440 u8 base = 0, rfpath = RF90_PATH_A; in _rtl8723be_phy_convert_txpower_dbm_to_relative_value() local
443 BAND_ON_2_4G, rfpath, RF_1TX, CCK); in _rtl8723be_phy_convert_txpower_dbm_to_relative_value()
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()
[all …]

12