Home
last modified time | relevance | path

Searched refs:vga_idx (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/drivers/staging/rtl8723bs/hal/
Dodm_HWConfig.c74 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.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.c73 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.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.c44 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.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.c42 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.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.c43 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.6.21/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8188f.c1681 u8 vga_idx, lna_idx; in rtl8188f_cck_rssi() local
1684 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8188f_cck_rssi()
1688 if (vga_idx <= 27) in rtl8188f_cck_rssi()
1689 rx_pwr_all = -100 + 2 * (27 - vga_idx); 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()
Drtl8xxxu_8710b.c1806 u8 vga_idx = phy_stats0->vga; 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()
Drtl8xxxu_8723b.c1679 u8 vga_idx, lna_idx; in rtl8723b_cck_rssi() local
1682 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8723b_cck_rssi()
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()
Drtl8xxxu_8192f.c1987 u8 vga_idx = phy_stats0->vga; 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()
Drtl8xxxu_8192e.c1698 u8 vga_idx, lna_idx; in rtl8192e_cck_rssi() local
1702 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8192e_cck_rssi()
1709 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8192e_cck_rssi()
Drtl8xxxu_8188e.c1334 u8 vga_idx, lna_idx; in rtl8188e_cck_rssi() local
1338 vga_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_VGA_IDX_MASK); in rtl8188e_cck_rssi()
1345 rx_pwr_all = lna_gain - (2 * vga_idx); in rtl8188e_cck_rssi()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Drtw8821c.c519 static s8 get_cck_rx_pwr(struct rtw_dev *rtwdev, u8 lna_idx, u8 vga_idx) in get_cck_rx_pwr() argument
541 rx_pwr_all = lna_gain - 2 * vga_idx; in get_cck_rx_pwr()
552 u8 vga_idx = 0; in query_phy_status_page0() local
554 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0()
557 rx_power = get_cck_rx_pwr(rtwdev, lna_idx, vga_idx); in query_phy_status_page0()
/linux-6.6.21/drivers/net/wireless/ralink/rt2x00/
Drt2800lib.c8756 u8 rfval, vga_idx = 0; in rt2800_rxiq_calibration() local
8909 vga_idx = 0; in rt2800_rxiq_calibration()
8910 while (vga_idx < 11) { in rt2800_rxiq_calibration()
8911 rt2800_rfcsr_write_dccal(rt2x00dev, 3, rf_vga_table[vga_idx]); in rt2800_rxiq_calibration()
8912 rt2800_rfcsr_write_dccal(rt2x00dev, 4, rf_vga_table[vga_idx]); in rt2800_rxiq_calibration()
8968 si, sq, riq, bbpval1, vga_idx); in rt2800_rxiq_calibration()
8974 vga_idx = vga_idx + 9; in rt2800_rxiq_calibration()
8976 vga_idx = vga_idx + 8; in rt2800_rxiq_calibration()
8978 vga_idx = vga_idx + 7; in rt2800_rxiq_calibration()
8980 vga_idx = vga_idx + 6; in rt2800_rxiq_calibration()
[all …]