/linux-6.12.1/drivers/staging/rtl8723bs/hal/ |
D | odm_HWConfig.c | 74 static s8 odm_cck_rssi(u8 lna_idx, u8 vga_idx) in odm_cck_rssi() argument 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() 112 u8 lna_idx, vga_idx; in odm_rx_phy_status_parsing() local 138 vga_idx = (cck_agc_rpt & 0x1F); in odm_rx_phy_status_parsing() 139 rx_pwr_all = odm_cck_rssi(lna_idx, vga_idx); in odm_rx_phy_status_parsing()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | trx.c | 73 u8 lan_idx, vga_idx; in query_rxphystatus() local 95 vga_idx = (cck_agc_rpt & 0x1f); in query_rxphystatus() 99 if (vga_idx <= 27) in query_rxphystatus() 101 rx_pwr_all = -100 + 2*(27-vga_idx); 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() [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | trx.c | 44 u8 lan_idx, vga_idx; in _rtl88ee_query_rxphystatus() local 72 vga_idx = (cck_agc_rpt & 0x1f); in _rtl88ee_query_rxphystatus() 75 if (vga_idx <= 27) in _rtl88ee_query_rxphystatus() 77 rx_pwr_all = -100 + 2*(27-vga_idx); 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() [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | trx.c | 42 u8 lan_idx, vga_idx; in _rtl92ee_query_rxphystatus() local 65 vga_idx = (cck_agc_rpt & 0x1f); in _rtl92ee_query_rxphystatus() 68 if (vga_idx <= 27) in _rtl92ee_query_rxphystatus() 69 rx_pwr_all = -100 + 2 * (27 - vga_idx); 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() [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | trx.c | 43 u8 lan_idx, vga_idx; in _rtl8723be_query_rxphystatus() local 64 vga_idx = (cck_agc_rpt & 0x1f); in _rtl8723be_query_rxphystatus() 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()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtl8xxxu/ |
D | 8188f.c | 1680 u8 vga_idx, lna_idx; in rtl8188f_cck_rssi() local 1683 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8188f_cck_rssi() 1687 if (vga_idx <= 27) in rtl8188f_cck_rssi() 1688 rx_pwr_all = -100 + 2 * (27 - vga_idx); in rtl8188f_cck_rssi() 1693 rx_pwr_all = -74 + 2 * (21 - vga_idx); in rtl8188f_cck_rssi() 1696 rx_pwr_all = -60 + 2 * (20 - vga_idx); in rtl8188f_cck_rssi() 1699 rx_pwr_all = -44 + 2 * (19 - vga_idx); in rtl8188f_cck_rssi()
|
D | 8723b.c | 1663 u8 vga_idx, lna_idx; in rtl8723b_cck_rssi() local 1666 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8723b_cck_rssi() 1670 rx_pwr_all = -34 - (2 * vga_idx); in rtl8723b_cck_rssi() 1673 rx_pwr_all = -14 - (2 * vga_idx); in rtl8723b_cck_rssi() 1676 rx_pwr_all = 6 - (2 * vga_idx); in rtl8723b_cck_rssi() 1679 rx_pwr_all = 16 - (2 * vga_idx); in rtl8723b_cck_rssi()
|
D | 8710b.c | 1790 u8 vga_idx = phy_stats0->vga; in rtl8710b_cck_rssi() local 1795 rx_pwr_all = -52 - (2 * vga_idx); in rtl8710b_cck_rssi() 1798 rx_pwr_all = -42 - (2 * vga_idx); in rtl8710b_cck_rssi() 1801 rx_pwr_all = -36 - (2 * vga_idx); in rtl8710b_cck_rssi() 1804 rx_pwr_all = -12 - (2 * vga_idx); in rtl8710b_cck_rssi() 1807 rx_pwr_all = 0 - (2 * vga_idx); in rtl8710b_cck_rssi()
|
D | 8192f.c | 1971 u8 vga_idx = phy_stats0->vga; in rtl8192f_cck_rssi() local 1976 rx_pwr_all = -44 - (2 * vga_idx); in rtl8192f_cck_rssi() 1979 rx_pwr_all = -28 - (2 * vga_idx); in rtl8192f_cck_rssi() 1982 rx_pwr_all = -10 - (2 * vga_idx); in rtl8192f_cck_rssi() 1985 rx_pwr_all = 14 - (2 * vga_idx); in rtl8192f_cck_rssi()
|
D | 8192e.c | 1682 u8 vga_idx, lna_idx; in rtl8192e_cck_rssi() local 1686 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8192e_cck_rssi() 1693 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8192e_cck_rssi()
|
D | 8188e.c | 1318 u8 vga_idx, lna_idx; in rtl8188e_cck_rssi() local 1322 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8188e_cck_rssi() 1329 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8188e_cck_rssi()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/ |
D | rtw8821c.c | 586 static s8 get_cck_rx_pwr(struct rtw_dev *rtwdev, u8 lna_idx, u8 vga_idx) in get_cck_rx_pwr() argument 608 rx_pwr_all = lna_gain - 2 * vga_idx; in get_cck_rx_pwr() 619 u8 vga_idx = 0; in query_phy_status_page0() local 621 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0() 624 rx_power = get_cck_rx_pwr(rtwdev, lna_idx, vga_idx); in query_phy_status_page0()
|
D | rtw8703b.c | 955 static s8 get_cck_rx_pwr(struct rtw_dev *rtwdev, u8 lna_idx, u8 vga_idx) in get_cck_rx_pwr() argument 967 return lna_gain - 2 * vga_idx; in get_cck_rx_pwr() 974 u8 vga_idx = phy_status->cck_agc_rpt_ofdm_cfosho_a & VGA_BITS; in query_phy_status_cck() local 984 rx_power = get_cck_rx_pwr(rtwdev, lna_idx, vga_idx); in query_phy_status_cck()
|
/linux-6.12.1/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.c | 8772 u8 rfval, vga_idx = 0; in rt2800_rxiq_calibration() local 8925 vga_idx = 0; in rt2800_rxiq_calibration() 8926 while (vga_idx < 11) { in rt2800_rxiq_calibration() 8927 rt2800_rfcsr_write_dccal(rt2x00dev, 3, rf_vga_table[vga_idx]); in rt2800_rxiq_calibration() 8928 rt2800_rfcsr_write_dccal(rt2x00dev, 4, rf_vga_table[vga_idx]); in rt2800_rxiq_calibration() 8984 si, sq, riq, bbpval1, vga_idx); in rt2800_rxiq_calibration() 8990 vga_idx = vga_idx + 9; in rt2800_rxiq_calibration() 8992 vga_idx = vga_idx + 8; in rt2800_rxiq_calibration() 8994 vga_idx = vga_idx + 7; in rt2800_rxiq_calibration() 8996 vga_idx = vga_idx + 6; in rt2800_rxiq_calibration() [all …]
|