/linux-6.6.21/drivers/staging/rtl8723bs/hal/ |
D | odm_HWConfig.c | 76 s8 rx_pwr_all = 0x00; in odm_cck_rssi() local 83 rx_pwr_all = -34 - (2 * vga_idx); in odm_cck_rssi() 86 rx_pwr_all = -14 - (2 * vga_idx); in odm_cck_rssi() 89 rx_pwr_all = 6 - (2 * vga_idx); in odm_cck_rssi() 92 rx_pwr_all = 16 - (2 * vga_idx); in odm_cck_rssi() 98 return rx_pwr_all; in odm_cck_rssi() 107 s8 rx_pwr[4], rx_pwr_all = 0; in odm_rx_phy_status_parsing() local 139 rx_pwr_all = odm_cck_rssi(lna_idx, vga_idx); in odm_rx_phy_status_parsing() 140 pwdb_all = odm_query_rx_pwr_percentage(rx_pwr_all); in odm_rx_phy_status_parsing() 146 phy_info->recv_signal_power = rx_pwr_all; in odm_rx_phy_status_parsing() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | trx.c | 68 s8 rx_pwr_all = 0, rx_pwr[4]; in query_rxphystatus() local 101 rx_pwr_all = -100 + 2*(27-vga_idx); in query_rxphystatus() 103 rx_pwr_all = -100; in query_rxphystatus() 107 rx_pwr_all = -48 + 2*(2-vga_idx); in query_rxphystatus() 111 rx_pwr_all = -42 + 2*(7-vga_idx); in query_rxphystatus() 115 rx_pwr_all = -36 + 2*(7-vga_idx); in query_rxphystatus() 119 rx_pwr_all = -24 + 2*(7-vga_idx); in query_rxphystatus() 124 rx_pwr_all = -12 + 2*(5-vga_idx); in query_rxphystatus() 126 rx_pwr_all = -6 + 2*(5-vga_idx); in query_rxphystatus() 129 rx_pwr_all = 8-2*vga_idx; in query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | trx.c | 37 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl92ce_query_rxphystatus() local 70 rx_pwr_all = -46 - (cck_agc_rpt & 0x3e); in _rtl92ce_query_rxphystatus() 73 rx_pwr_all = -26 - (cck_agc_rpt & 0x3e); in _rtl92ce_query_rxphystatus() 76 rx_pwr_all = -12 - (cck_agc_rpt & 0x3e); in _rtl92ce_query_rxphystatus() 79 rx_pwr_all = 16 - (cck_agc_rpt & 0x3e); in _rtl92ce_query_rxphystatus() 89 rx_pwr_all = -46 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92ce_query_rxphystatus() 92 rx_pwr_all = -26 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92ce_query_rxphystatus() 95 rx_pwr_all = -12 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92ce_query_rxphystatus() 98 rx_pwr_all = 16 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92ce_query_rxphystatus() 103 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl92ce_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | trx.c | 45 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl92se_query_rxphystatus() local 74 rx_pwr_all = -40 - (cck_agc_rpt & 0x3e); in _rtl92se_query_rxphystatus() 77 rx_pwr_all = -20 - (cck_agc_rpt & 0x3e); in _rtl92se_query_rxphystatus() 80 rx_pwr_all = -2 - (cck_agc_rpt & 0x3e); in _rtl92se_query_rxphystatus() 83 rx_pwr_all = 14 - (cck_agc_rpt & 0x3e); in _rtl92se_query_rxphystatus() 92 rx_pwr_all = -40 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92se_query_rxphystatus() 95 rx_pwr_all = -20 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92se_query_rxphystatus() 98 rx_pwr_all = -2 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92se_query_rxphystatus() 101 rx_pwr_all = 14 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92se_query_rxphystatus() 106 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl92se_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | trx.c | 35 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl8723e_query_rxphystatus() local 71 rx_pwr_all = -46 - (cck_agc_rpt & 0x3e); in _rtl8723e_query_rxphystatus() 74 rx_pwr_all = -26 - (cck_agc_rpt & 0x3e); in _rtl8723e_query_rxphystatus() 77 rx_pwr_all = -12 - (cck_agc_rpt & 0x3e); in _rtl8723e_query_rxphystatus() 80 rx_pwr_all = 16 - (cck_agc_rpt & 0x3e); in _rtl8723e_query_rxphystatus() 89 rx_pwr_all = -46 - ((cck_agc_rpt & 0x1f) << 1); in _rtl8723e_query_rxphystatus() 92 rx_pwr_all = -26 - ((cck_agc_rpt & 0x1f) << 1); in _rtl8723e_query_rxphystatus() 95 rx_pwr_all = -12 - ((cck_agc_rpt & 0x1f) << 1); in _rtl8723e_query_rxphystatus() 98 rx_pwr_all = 16 - ((cck_agc_rpt & 0x1f) << 1); in _rtl8723e_query_rxphystatus() 103 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl8723e_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | trx.c | 39 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl88ee_query_rxphystatus() local 77 rx_pwr_all = -100 + 2*(27-vga_idx); in _rtl88ee_query_rxphystatus() 79 rx_pwr_all = -100; in _rtl88ee_query_rxphystatus() 83 rx_pwr_all = -48 + 2*(2-vga_idx); in _rtl88ee_query_rxphystatus() 87 rx_pwr_all = -42 + 2*(7-vga_idx); in _rtl88ee_query_rxphystatus() 91 rx_pwr_all = -36 + 2*(7-vga_idx); in _rtl88ee_query_rxphystatus() 95 rx_pwr_all = -24 + 2*(7-vga_idx); in _rtl88ee_query_rxphystatus() 100 rx_pwr_all = -12 + 2*(5-vga_idx); in _rtl88ee_query_rxphystatus() 102 rx_pwr_all = -6 + 2*(5-vga_idx); in _rtl88ee_query_rxphystatus() 105 rx_pwr_all = 8-2*vga_idx; in _rtl88ee_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | mac.c | 580 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl92c_query_rxphystatus() local 610 rx_pwr_all = -46 - (cck_agc_rpt & 0x3e); in _rtl92c_query_rxphystatus() 613 rx_pwr_all = -26 - (cck_agc_rpt & 0x3e); in _rtl92c_query_rxphystatus() 616 rx_pwr_all = -12 - (cck_agc_rpt & 0x3e); in _rtl92c_query_rxphystatus() 619 rx_pwr_all = 16 - (cck_agc_rpt & 0x3e); in _rtl92c_query_rxphystatus() 629 rx_pwr_all = -46 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92c_query_rxphystatus() 632 rx_pwr_all = -26 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92c_query_rxphystatus() 635 rx_pwr_all = -12 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92c_query_rxphystatus() 638 rx_pwr_all = 16 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92c_query_rxphystatus() 642 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl92c_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | trx.c | 37 s8 rx_pwr_all, rx_pwr[4]; in _rtl92ee_query_rxphystatus() local 69 rx_pwr_all = -100 + 2 * (27 - vga_idx); in _rtl92ee_query_rxphystatus() 71 rx_pwr_all = -100; in _rtl92ee_query_rxphystatus() 74 rx_pwr_all = -48 + 2 * (2 - vga_idx); in _rtl92ee_query_rxphystatus() 77 rx_pwr_all = -42 + 2 * (7 - vga_idx); in _rtl92ee_query_rxphystatus() 80 rx_pwr_all = -36 + 2 * (7 - vga_idx); in _rtl92ee_query_rxphystatus() 83 rx_pwr_all = -24 + 2 * (7 - vga_idx); in _rtl92ee_query_rxphystatus() 87 rx_pwr_all = -12 + 2 * (5 - vga_idx); in _rtl92ee_query_rxphystatus() 89 rx_pwr_all = -6 + 2 * (5 - vga_idx); in _rtl92ee_query_rxphystatus() 92 rx_pwr_all = 8 - 2 * vga_idx; in _rtl92ee_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | trx.c | 47 s8 rx_pwr_all, rx_pwr[4]; in _rtl92de_query_rxphystatus() local 76 rx_pwr_all = -46 - (cck_agc_rpt & 0x3e); in _rtl92de_query_rxphystatus() 79 rx_pwr_all = -26 - (cck_agc_rpt & 0x3e); in _rtl92de_query_rxphystatus() 82 rx_pwr_all = -12 - (cck_agc_rpt & 0x3e); in _rtl92de_query_rxphystatus() 85 rx_pwr_all = 16 - (cck_agc_rpt & 0x3e); in _rtl92de_query_rxphystatus() 94 rx_pwr_all = -46 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92de_query_rxphystatus() 97 rx_pwr_all = -26 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92de_query_rxphystatus() 100 rx_pwr_all = -12 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92de_query_rxphystatus() 103 rx_pwr_all = 16 - ((cck_agc_rpt & 0x1f) << 1); in _rtl92de_query_rxphystatus() 107 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl92de_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8723a.c | 437 s8 rx_pwr_all = 0x00; in rtl8723a_cck_rssi() local 441 rx_pwr_all = -46 - (cck_agc_rpt & 0x3e); in rtl8723a_cck_rssi() 444 rx_pwr_all = -26 - (cck_agc_rpt & 0x3e); in rtl8723a_cck_rssi() 447 rx_pwr_all = -12 - (cck_agc_rpt & 0x3e); in rtl8723a_cck_rssi() 450 rx_pwr_all = 16 - (cck_agc_rpt & 0x3e); in rtl8723a_cck_rssi() 454 return rx_pwr_all; in rtl8723a_cck_rssi()
|
D | rtl8xxxu_8710b.c | 1807 s8 rx_pwr_all = 0x00; in rtl8710b_cck_rssi() local 1811 rx_pwr_all = -52 - (2 * vga_idx); in rtl8710b_cck_rssi() 1814 rx_pwr_all = -42 - (2 * vga_idx); in rtl8710b_cck_rssi() 1817 rx_pwr_all = -36 - (2 * vga_idx); in rtl8710b_cck_rssi() 1820 rx_pwr_all = -12 - (2 * vga_idx); in rtl8710b_cck_rssi() 1823 rx_pwr_all = 0 - (2 * vga_idx); in rtl8710b_cck_rssi() 1826 rx_pwr_all = 0; in rtl8710b_cck_rssi() 1830 return rx_pwr_all; in rtl8710b_cck_rssi()
|
D | rtl8xxxu_8188f.c | 1680 s8 rx_pwr_all = 0x00; in rtl8188f_cck_rssi() local 1689 rx_pwr_all = -100 + 2 * (27 - vga_idx); in rtl8188f_cck_rssi() 1691 rx_pwr_all = -100; in rtl8188f_cck_rssi() 1694 rx_pwr_all = -74 + 2 * (21 - vga_idx); in rtl8188f_cck_rssi() 1697 rx_pwr_all = -60 + 2 * (20 - vga_idx); in rtl8188f_cck_rssi() 1700 rx_pwr_all = -44 + 2 * (19 - vga_idx); in rtl8188f_cck_rssi() 1706 return rx_pwr_all; in rtl8188f_cck_rssi()
|
D | rtl8xxxu_8723b.c | 1678 s8 rx_pwr_all = 0x00; in rtl8723b_cck_rssi() local 1686 rx_pwr_all = -34 - (2 * vga_idx); in rtl8723b_cck_rssi() 1689 rx_pwr_all = -14 - (2 * vga_idx); in rtl8723b_cck_rssi() 1692 rx_pwr_all = 6 - (2 * vga_idx); in rtl8723b_cck_rssi() 1695 rx_pwr_all = 16 - (2 * vga_idx); in rtl8723b_cck_rssi() 1701 return rx_pwr_all; in rtl8723b_cck_rssi()
|
D | rtl8xxxu_8192f.c | 1988 s8 rx_pwr_all; in rtl8192f_cck_rssi() local 1992 rx_pwr_all = -44 - (2 * vga_idx); in rtl8192f_cck_rssi() 1995 rx_pwr_all = -28 - (2 * vga_idx); in rtl8192f_cck_rssi() 1998 rx_pwr_all = -10 - (2 * vga_idx); in rtl8192f_cck_rssi() 2001 rx_pwr_all = 14 - (2 * vga_idx); in rtl8192f_cck_rssi() 2004 rx_pwr_all = 0; in rtl8192f_cck_rssi() 2008 return rx_pwr_all; in rtl8192f_cck_rssi()
|
D | rtl8xxxu_8192e.c | 1697 s8 rx_pwr_all = 0x00; in rtl8192e_cck_rssi() local 1709 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8192e_cck_rssi() 1711 return rx_pwr_all; in rtl8192e_cck_rssi()
|
D | rtl8xxxu_8188e.c | 1333 s8 rx_pwr_all = 0x00; in rtl8188e_cck_rssi() local 1345 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8188e_cck_rssi() 1347 return rx_pwr_all; in rtl8188e_cck_rssi()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | trx.c | 38 s8 rx_pwr_all = 0, rx_pwr[4]; in _rtl8723be_query_rxphystatus() local 70 rx_pwr_all = -34 - (2 * vga_idx); in _rtl8723be_query_rxphystatus() 73 rx_pwr_all = -14 - (2 * vga_idx); in _rtl8723be_query_rxphystatus() 76 rx_pwr_all = 6 - (2 * vga_idx); in _rtl8723be_query_rxphystatus() 79 rx_pwr_all = 16 - (2 * vga_idx); in _rtl8723be_query_rxphystatus() 85 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl8723be_query_rxphystatus() 91 pstatus->recvsignalpower = rx_pwr_all; in _rtl8723be_query_rxphystatus() 132 rx_pwr_all = ((p_phystrpt->cck_sig_qual_ofdm_pwdb_all >> 1) & in _rtl8723be_query_rxphystatus() 135 pwdb_all = rtl_query_rxpwrpercentage(rx_pwr_all); in _rtl8723be_query_rxphystatus() 139 pstatus->rxpower = rx_pwr_all; in _rtl8723be_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/staging/rtl8712/ |
D | rtl8712_recv.c | 709 s8 rx_pwr[4], rx_pwr_all; in query_rx_phy_status() local 737 rx_pwr_all = -40 - (pcck_buf->cck_agc_rpt & in query_rx_phy_status() 741 rx_pwr_all = -20 - (pcck_buf->cck_agc_rpt & in query_rx_phy_status() 745 rx_pwr_all = -2 - (pcck_buf->cck_agc_rpt & in query_rx_phy_status() 749 rx_pwr_all = 14 - (pcck_buf->cck_agc_rpt & in query_rx_phy_status() 759 rx_pwr_all = -40 - ((pcck_buf->cck_agc_rpt & in query_rx_phy_status() 763 rx_pwr_all = -20 - ((pcck_buf->cck_agc_rpt & in query_rx_phy_status() 767 rx_pwr_all = -2 - ((pcck_buf->cck_agc_rpt & in query_rx_phy_status() 771 rx_pwr_all = 14 - ((pcck_buf->cck_agc_rpt & in query_rx_phy_status() 776 pwdb_all = query_rx_pwr_percentage(rx_pwr_all); in query_rx_phy_status() [all …]
|
/linux-6.6.21/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_dev.c | 1228 s8 rx_pwr[4], rx_pwr_all = 0; in _rtl92e_query_rxphystatus() local 1272 rx_pwr_all = -35 - (pcck_buf->cck_agc_rpt & in _rtl92e_query_rxphystatus() 1276 rx_pwr_all = -23 - (pcck_buf->cck_agc_rpt & in _rtl92e_query_rxphystatus() 1280 rx_pwr_all = -11 - (pcck_buf->cck_agc_rpt & in _rtl92e_query_rxphystatus() 1284 rx_pwr_all = 8 - (pcck_buf->cck_agc_rpt & 0x3e); in _rtl92e_query_rxphystatus() 1292 rx_pwr_all = -35 - in _rtl92e_query_rxphystatus() 1297 rx_pwr_all = -23 - in _rtl92e_query_rxphystatus() 1302 rx_pwr_all = -11 - in _rtl92e_query_rxphystatus() 1307 rx_pwr_all = -8 - in _rtl92e_query_rxphystatus() 1314 pwdb_all = rtl92e_rx_db_to_percent(rx_pwr_all); in _rtl92e_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/staging/rtl8192u/ |
D | r8192U_core.c | 3837 s8 rx_pwr[4], rx_pwr_all = 0; in rtl8192_query_rxphystatus() local 3887 rx_pwr_all = -35 - (pcck_buf->cck_agc_rpt & 0x3e); in rtl8192_query_rxphystatus() 3890 rx_pwr_all = -23 - (pcck_buf->cck_agc_rpt & 0x3e); in rtl8192_query_rxphystatus() 3893 rx_pwr_all = -11 - (pcck_buf->cck_agc_rpt & 0x3e); in rtl8192_query_rxphystatus() 3896 rx_pwr_all = 6 - (pcck_buf->cck_agc_rpt & 0x3e); in rtl8192_query_rxphystatus() 3904 rx_pwr_all = -35 - ((pcck_buf->cck_agc_rpt & 0x1f) << 1); in rtl8192_query_rxphystatus() 3907 rx_pwr_all = -23 - ((pcck_buf->cck_agc_rpt & 0x1f) << 1); in rtl8192_query_rxphystatus() 3910 rx_pwr_all = -11 - ((pcck_buf->cck_agc_rpt & 0x1f) << 1); in rtl8192_query_rxphystatus() 3913 rx_pwr_all = 6 - ((pcck_buf->cck_agc_rpt & 0x1f) << 1); in rtl8192_query_rxphystatus() 3918 pwdb_all = rtl819x_query_rxpwrpercentage(rx_pwr_all); in rtl8192_query_rxphystatus() [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | rtw8821c.c | 524 s8 rx_pwr_all = 0; in get_cck_rx_pwr() local 541 rx_pwr_all = lna_gain - 2 * vga_idx; in get_cck_rx_pwr() 543 return rx_pwr_all; in get_cck_rx_pwr()
|