Home
last modified time | relevance | path

Searched refs:lna_idx (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A Dodm_HWConfig.c74 static s8 odm_cck_rssi(u8 lna_idx, u8 vga_idx) in odm_cck_rssi() argument
78 switch (lna_idx) { in odm_cck_rssi()
112 u8 lna_idx, vga_idx; in odm_rx_phy_status_parsing() local
137 lna_idx = ((cck_agc_rpt & 0xE0)>>5); in odm_rx_phy_status_parsing()
139 rx_pwr_all = odm_cck_rssi(lna_idx, vga_idx); in odm_rx_phy_status_parsing()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8821c.c519 static s8 get_cck_rx_pwr(struct rtw_dev *rtwdev, u8 lna_idx, u8 vga_idx) in get_cck_rx_pwr() argument
535 if (lna_idx >= lna_gain_table_size) { in get_cck_rx_pwr()
536 rtw_warn(rtwdev, "incorrect lna index (%d)\n", lna_idx); in get_cck_rx_pwr()
540 lna_gain = lna_gain_table[lna_idx]; in get_cck_rx_pwr()
551 u8 lna_idx = 0; in query_phy_status_page0() local
555 lna_idx = FIELD_PREP(BIT_LNA_H_MASK, GET_PHY_STAT_P0_LNA_H(phy_status)) | in query_phy_status_page0()
557 rx_power = get_cck_rx_pwr(rtwdev, lna_idx, vga_idx); in query_phy_status_page0()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dphy.c3944 dig->cur_gaincode.lna_idx = LNA_IDX_MAX; in rtw89_phy_dig_para_reset()
3947 dig->force_gaincode.lna_idx = LNA_IDX_MAX; in rtw89_phy_dig_para_reset()
3967 u8 lna_idx; in rtw89_phy_dig_lna_idx_by_rssi() local
3970 lna_idx = RTW89_DIG_GAIN_LNA_IDX6; in rtw89_phy_dig_lna_idx_by_rssi()
3972 lna_idx = RTW89_DIG_GAIN_LNA_IDX5; in rtw89_phy_dig_lna_idx_by_rssi()
3974 lna_idx = RTW89_DIG_GAIN_LNA_IDX4; in rtw89_phy_dig_lna_idx_by_rssi()
3976 lna_idx = RTW89_DIG_GAIN_LNA_IDX3; in rtw89_phy_dig_lna_idx_by_rssi()
3978 lna_idx = RTW89_DIG_GAIN_LNA_IDX2; in rtw89_phy_dig_lna_idx_by_rssi()
3980 lna_idx = RTW89_DIG_GAIN_LNA_IDX1; in rtw89_phy_dig_lna_idx_by_rssi()
3982 return lna_idx; in rtw89_phy_dig_lna_idx_by_rssi()
[all …]
H A Dcore.h3993 u8 lna_idx; member
/openbmc/linux/drivers/net/wireless/realtek/rtl8xxxu/
H A Drtl8xxxu_8192e.c1698 u8 vga_idx, lna_idx; in rtl8192e_cck_rssi() local
1701 lna_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_LNA_IDX_MASK); in rtl8192e_cck_rssi()
1705 lna_gain = lna_gain_table_0[lna_idx]; in rtl8192e_cck_rssi()
1707 lna_gain = lna_gain_table_1[lna_idx]; in rtl8192e_cck_rssi()
H A Drtl8xxxu_8188e.c1334 u8 vga_idx, lna_idx; in rtl8188e_cck_rssi() local
1337 lna_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_LNA_IDX_MASK); in rtl8188e_cck_rssi()
1341 lna_gain = lna_gain_table_0[lna_idx]; in rtl8188e_cck_rssi()
1343 lna_gain = lna_gain_table_1[lna_idx]; in rtl8188e_cck_rssi()
H A Drtl8xxxu_8723b.c1679 u8 vga_idx, lna_idx; in rtl8723b_cck_rssi() local
1681 lna_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_LNA_IDX_MASK); in rtl8723b_cck_rssi()
1684 switch (lna_idx) { in rtl8723b_cck_rssi()
H A Drtl8xxxu_8188f.c1696 u8 vga_idx, lna_idx; in rtl8188f_cck_rssi() local
1698 lna_idx = u8_get_bits(cck_agc_rpt, CCK_AGC_RPT_LNA_IDX_MASK); in rtl8188f_cck_rssi()
1701 switch (lna_idx) { in rtl8188f_cck_rssi()
H A Drtl8xxxu_8710b.c1805 u8 lna_idx = (phy_stats0->lna_h << 3) | phy_stats0->lna_l; in rtl8710b_cck_rssi() local
1809 switch (lna_idx) { in rtl8710b_cck_rssi()
H A Drtl8xxxu_8192f.c1986 u8 lna_idx = (phy_stats0->lna_h << 3) | phy_stats0->lna_l; in rtl8192f_cck_rssi() local
1990 switch (lna_idx) { in rtl8192f_cck_rssi()