Lines Matching full:ant
1913 module->ant.isolation = 10; in rtw8851b_btc_set_rfe()
1919 /* rfe_type 3*n+1: 1-Ant(shared), in rtw8851b_btc_set_rfe()
1920 * 3*n+2: 2-Ant+Div(non-shared), in rtw8851b_btc_set_rfe()
1921 * 3*n+3: 2-Ant+no-Div(non-shared) in rtw8851b_btc_set_rfe()
1923 module->ant.num = (module->rfe_type % 3 == 1) ? 1 : 2; in rtw8851b_btc_set_rfe()
1925 module->ant.single_pos = RF_PATH_A; in rtw8851b_btc_set_rfe()
1926 module->ant.btg_pos = RF_PATH_A; in rtw8851b_btc_set_rfe()
1927 module->ant.stream_cnt = 1; in rtw8851b_btc_set_rfe()
1929 if (module->ant.num == 1) { in rtw8851b_btc_set_rfe()
1930 module->ant.type = BTC_ANT_SHARED; in rtw8851b_btc_set_rfe()
1933 module->ant.diversity = 0; in rtw8851b_btc_set_rfe()
1934 } else { /* ant.num == 2 */ in rtw8851b_btc_set_rfe()
1935 module->ant.type = BTC_ANT_DEDICATED; in rtw8851b_btc_set_rfe()
1940 module->ant.diversity = 1; in rtw8851b_btc_set_rfe()
1950 if (rtwdev->btc.mdinfo.ant.type == BTC_ANT_SHARED) /* 1-Ant */ in rtw8851b_set_trx_mask()
1966 struct rtw89_btc_ant_info *ant = &module->ant; in rtw8851b_btc_init_cfg() local
1976 /* for 1-Ant && 1-ss case: only 1-path */ in rtw8851b_btc_init_cfg()
1977 if (ant->stream_cnt == 1) { in rtw8851b_btc_init_cfg()
1978 path_min = ant->single_pos; in rtw8851b_btc_init_cfg()
1999 * Shared-Ant && BTG-path:WL mask(0x55f), others:WL THRU(0x5ff) in rtw8851b_btc_init_cfg()
2001 if (ant->type == BTC_ANT_SHARED && ant->btg_pos == path) in rtw8851b_btc_init_cfg()
2133 struct rtw89_btc_ant_info *ant = &btc->mdinfo.ant; in rtw8851b_btc_wl_s1_standby() local
2135 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWE, RFREG_MASK, 0x80000); in rtw8851b_btc_wl_s1_standby()
2136 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWA, RFREG_MASK, 0x1); in rtw8851b_btc_wl_s1_standby()
2137 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD1, RFREG_MASK, 0x110); in rtw8851b_btc_wl_s1_standby()
2141 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD0, RFREG_MASK, 0x179c); in rtw8851b_btc_wl_s1_standby()
2143 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWD0, RFREG_MASK, 0x208); in rtw8851b_btc_wl_s1_standby()
2145 rtw89_write_rf(rtwdev, ant->btg_pos, RR_LUTWE, RFREG_MASK, 0x0); in rtw8851b_btc_wl_s1_standby()
2160 struct rtw89_btc_ant_info *ant = &btc->mdinfo.ant; in rtw8851b_btc_set_wl_rx_gain() local
2187 /* bit[10] = 1 if non-shared-ant for 8851b */ in rtw8851b_btc_set_wl_rx_gain()
2188 if (btc->mdinfo.ant.type == BTC_ANT_DEDICATED) in rtw8851b_btc_set_wl_rx_gain()
2191 rtw89_write_rf(rtwdev, ant->btg_pos, rf->addr, LNA2_51B_MA, val); in rtw8851b_btc_set_wl_rx_gain()