/linux-6.12.1/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00link.c | 38 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() local 41 return rt2x00link_get_avg_rssi(&ant->rssi_ant); in rt2x00link_antenna_get_link_rssi() 48 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() local 50 if (ant->rssi_history) in rt2x00link_antenna_get_rssi_history() 51 return ant->rssi_history; in rt2x00link_antenna_get_rssi_history() 58 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() local 59 ant->rssi_history = rssi; in rt2x00link_antenna_update_rssi_history() 64 ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant); in rt2x00link_antenna_reset() 69 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_sample() local 76 memcpy(&new_ant, &ant->active, sizeof(new_ant)); in rt2x00lib_antenna_diversity_sample() [all …]
|
D | rt2x00config.c | 107 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_config_antenna() local 109 struct antenna_setup *active = &rt2x00dev->link.ant.active; in rt2x00lib_config_antenna() 119 if (!(ant->flags & ANTENNA_RX_DIVERSITY)) { in rt2x00lib_config_antenna() 121 ant->flags |= ANTENNA_RX_DIVERSITY; in rt2x00lib_config_antenna() 131 if (!(ant->flags & ANTENNA_TX_DIVERSITY)) { in rt2x00lib_config_antenna() 133 ant->flags |= ANTENNA_TX_DIVERSITY; in rt2x00lib_config_antenna()
|
D | rt2x00mac.c | 746 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00mac_set_antenna() local 758 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna() 759 ant->flags &= ~ANTENNA_TX_DIVERSITY; in rt2x00mac_set_antenna() 760 if (ant->flags & ANTENNA_RX_DIVERSITY && rx_ant != 3) in rt2x00mac_set_antenna() 761 ant->flags &= ~ANTENNA_RX_DIVERSITY; in rt2x00mac_set_antenna() 769 ant->flags |= ANTENNA_TX_DIVERSITY; in rt2x00mac_set_antenna() 774 ant->flags |= ANTENNA_RX_DIVERSITY; in rt2x00mac_set_antenna() 791 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00mac_get_antenna() local 792 struct antenna_setup *active = &rt2x00dev->link.ant.active; in rt2x00mac_get_antenna() 796 if (ant->flags & ANTENNA_TX_DIVERSITY) in rt2x00mac_get_antenna() [all …]
|
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | antsel.c | 34 #define BRCMS_ANTSEL_11N_0(ant) ((((ant) & ANT_SELCFG_MASK) >> 4) & 0xf) argument 35 #define BRCMS_ANTSEL_11N_1(ant) (((ant) & ANT_SELCFG_MASK) & 0xf) argument 36 #define BRCMS_ANTIDX_11N(ant) (((BRCMS_ANTSEL_11N_0(ant)) << 2) +\ argument 37 (BRCMS_ANTSEL_11N_1(ant))) 38 #define BRCMS_ANT_ISAUTO_11N(ant) (((ant) & ANT_SELCFG_AUTO) == ANT_SELCFG_AUTO) argument 39 #define BRCMS_ANTSEL_11N(ant) ((ant) & ANT_SELCFG_MASK) argument 265 u8 ant; in brcms_c_antsel_antcfg_get() local 279 ant = asi->antcfg_11n.ant_config[ANT_SELCFG_TX_UNICAST]; in brcms_c_antsel_antcfg_get() 280 if ((ant & ANT_SELCFG_AUTO) == ANT_SELCFG_AUTO) { in brcms_c_antsel_antcfg_get()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/ |
D | rs.c | 76 const char *iwl_rs_pretty_ant(u8 ant) in iwl_rs_pretty_ant() argument 78 if (ant >= ARRAY_SIZE(ant_name)) in iwl_rs_pretty_ant() 81 return ant_name[ant]; in iwl_rs_pretty_ant() 196 u8 ant = (rate & RATE_MCS_ANT_AB_MSK) >> RATE_MCS_ANT_POS; in rs_pretty_print_rate() local 209 return scnprintf(buf, bufsz, "Legacy | ANT: %s Rate: %s Mbps", in rs_pretty_print_rate() 210 iwl_rs_pretty_ant(ant), in rs_pretty_print_rate() 235 "0x%x: %s | ANT: %s BW: %s MCS: %d NSS: %d %s%s%s%s%s", in rs_pretty_print_rate() 236 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/ |
D | rtw8852b.c | 606 md->md_v7.ant.num = (md->md_v7.rfe_type % 2 ? 2 : 3); in rtw8852b_btc_set_rfe() 608 md->md_v7.ant.num = 2; in rtw8852b_btc_set_rfe() 610 md->md_v7.ant.diversity = 0; in rtw8852b_btc_set_rfe() 611 md->md_v7.ant.isolation = 10; in rtw8852b_btc_set_rfe() 613 if (md->md_v7.ant.num == 3) { in rtw8852b_btc_set_rfe() 614 md->md_v7.ant.type = BTC_ANT_DEDICATED; in rtw8852b_btc_set_rfe() 617 md->md_v7.ant.type = BTC_ANT_SHARED; in rtw8852b_btc_set_rfe() 620 rtwdev->btc.btg_pos = md->md_v7.ant.btg_pos; in rtw8852b_btc_set_rfe() 621 rtwdev->btc.ant_type = md->md_v7.ant.type; in rtw8852b_btc_set_rfe() 629 md->md.ant.num = (md->md.rfe_type % 2 ? 2 : 3); in rtw8852b_btc_set_rfe() [all …]
|
D | rtw8851b.c | 1948 md->md_v7.ant.isolation = 10; in rtw8851b_btc_set_rfe() 1954 /* rfe_type 3*n+1: 1-Ant(shared), in rtw8851b_btc_set_rfe() 1955 * 3*n+2: 2-Ant+Div(non-shared), in rtw8851b_btc_set_rfe() 1956 * 3*n+3: 2-Ant+no-Div(non-shared) in rtw8851b_btc_set_rfe() 1958 md->md_v7.ant.num = (md->md_v7.rfe_type % 3 == 1) ? 1 : 2; in rtw8851b_btc_set_rfe() 1960 md->md_v7.ant.single_pos = RF_PATH_A; in rtw8851b_btc_set_rfe() 1961 md->md_v7.ant.btg_pos = RF_PATH_A; in rtw8851b_btc_set_rfe() 1962 md->md_v7.ant.stream_cnt = 1; in rtw8851b_btc_set_rfe() 1964 if (md->md_v7.ant.num == 1) { in rtw8851b_btc_set_rfe() 1965 md->md_v7.ant.type = BTC_ANT_SHARED; in rtw8851b_btc_set_rfe() [all …]
|
D | rtw8852bt.c | 581 md->md_v7.ant.type = BTC_ANT_SHARED; in rtw8852bt_btc_set_rfe() 582 md->md_v7.ant.num = 2; in rtw8852bt_btc_set_rfe() 583 md->md_v7.ant.isolation = 10; in rtw8852bt_btc_set_rfe() 584 md->md_v7.ant.diversity = 0; in rtw8852bt_btc_set_rfe() 585 /* WL 1-stream+1-Ant is located at 0:s0(path-A) or 1:s1(path-B) */ in rtw8852bt_btc_set_rfe() 586 md->md_v7.ant.single_pos = RF_PATH_A; in rtw8852bt_btc_set_rfe() 587 md->md_v7.ant.btg_pos = RF_PATH_B; in rtw8852bt_btc_set_rfe() 594 md->md_v7.ant.num = (md->md_v7.rfe_type % 2) ? 2 : 3; in rtw8852bt_btc_set_rfe() 595 md->md_v7.ant.stream_cnt = 2; in rtw8852bt_btc_set_rfe() 598 if (md->md_v7.ant.num == 2) { in rtw8852bt_btc_set_rfe() [all …]
|
D | rtw8852a.c | 1697 md->md_v7.ant.num = (md->md_v7.rfe_type % 2 ? 2 : 3); in rtw8852a_btc_set_rfe() 1699 md->md_v7.ant.num = 2; in rtw8852a_btc_set_rfe() 1701 md->md_v7.ant.diversity = 0; in rtw8852a_btc_set_rfe() 1702 md->md_v7.ant.isolation = 10; in rtw8852a_btc_set_rfe() 1704 if (md->md_v7.ant.num == 3) { in rtw8852a_btc_set_rfe() 1705 md->md_v7.ant.type = BTC_ANT_DEDICATED; in rtw8852a_btc_set_rfe() 1708 md->md_v7.ant.type = BTC_ANT_SHARED; in rtw8852a_btc_set_rfe() 1711 rtwdev->btc.btg_pos = md->md_v7.ant.btg_pos; in rtw8852a_btc_set_rfe() 1712 rtwdev->btc.ant_type = md->md_v7.ant.type; in rtw8852a_btc_set_rfe() 1720 md->md.ant.num = (md->md.rfe_type % 2 ? 2 : 3); in rtw8852a_btc_set_rfe() [all …]
|
D | rtw8922a.c | 2239 module->ant.type = BTC_ANT_SHARED; in rtw8922a_btc_set_rfe() 2240 module->ant.num = 2; in rtw8922a_btc_set_rfe() 2241 module->ant.isolation = 10; in rtw8922a_btc_set_rfe() 2242 module->ant.diversity = 0; in rtw8922a_btc_set_rfe() 2243 module->ant.single_pos = RF_PATH_A; in rtw8922a_btc_set_rfe() 2244 module->ant.btg_pos = RF_PATH_B; in rtw8922a_btc_set_rfe() 2256 module->ant.num = (module->rfe_type % 2) ? 2 : 3; in rtw8922a_btc_set_rfe() 2259 module->ant.num = 2; in rtw8922a_btc_set_rfe() 2261 if (module->ant.num == 3) { in rtw8922a_btc_set_rfe() 2262 module->ant.type = BTC_ANT_DEDICATED; in rtw8922a_btc_set_rfe() [all …]
|
D | rtw8852c.c | 2401 md->md_v7.ant.num = (md->md_v7.rfe_type % 2 ? 2 : 3); in rtw8852c_btc_set_rfe() 2403 md->md_v7.ant.num = 2; in rtw8852c_btc_set_rfe() 2405 md->md_v7.ant.diversity = 0; in rtw8852c_btc_set_rfe() 2406 md->md_v7.ant.isolation = 10; in rtw8852c_btc_set_rfe() 2408 if (md->md_v7.ant.num == 3) { in rtw8852c_btc_set_rfe() 2409 md->md_v7.ant.type = BTC_ANT_DEDICATED; in rtw8852c_btc_set_rfe() 2412 md->md_v7.ant.type = BTC_ANT_SHARED; in rtw8852c_btc_set_rfe() 2415 rtwdev->btc.btg_pos = md->md_v7.ant.btg_pos; in rtw8852c_btc_set_rfe() 2416 rtwdev->btc.ant_type = md->md_v7.ant.type; in rtw8852c_btc_set_rfe() 2424 md->md.ant.num = (md->md.rfe_type % 2 ? 2 : 3); in rtw8852c_btc_set_rfe() [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
D | halbtc8821a2ant.h | 5 * The following is for 8821A 2Ant BT Co-exist definition 19 /* WiFi RSSI Threshold for 2-Ant TDMA/1-Ant PS-TDMA translation */ 21 /* BT RSSI Threshold for 2-Ant TDMA/1-Ant PS-TDMA translation */
|
D | halbtc8723b2ant.h | 8 * The following is for 8723B 2Ant BT Co-exist definition 21 /* WiFi RSSI Threshold for 2-Ant TDMA/1-Ant PS-TDMA translation */ 23 /* BT RSSI Threshold for 2-Ant TDMA/1-Ant PS-TDMA translation */
|
D | halbtcoutsrc.h | 130 u8 pg_ant_num; /* pg ant number */ 131 u8 btdm_ant_num; /* ant number for btdm */ 284 /* for 1Ant */ 322 /********* for 1Ant **********/ 553 /* the following is for 1Ant solution */
|
/linux-6.12.1/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
D | grf5101.c | 57 u8 ant = GRF5101_ANTENNA; in grf5101_write_phy_antenna() local 60 ant |= BB_ANTENNA_B; in grf5101_write_phy_antenna() 63 ant |= BB_ANTATTEN_CHAN14; in grf5101_write_phy_antenna() 65 rtl8180_write_phy(dev, 0x10, ant); in grf5101_write_phy_antenna() 170 rtl8180_write_phy(dev, 0x12, 0xc0); /* enable ant diversity */ in grf5101_rf_init() 172 rtl8180_write_phy(dev, 0x12, 0x40); /* disable ant diversity */ in grf5101_rf_init()
|
D | max2820.c | 62 u8 ant; in max2820_write_phy_antenna() local 64 ant = MAXIM_ANTENNA; in max2820_write_phy_antenna() 66 ant |= BB_ANTENNA_B; in max2820_write_phy_antenna() 68 ant |= BB_ANTATTEN_CHAN14; in max2820_write_phy_antenna() 70 rtl8180_write_phy(dev, 0x10, ant); in max2820_write_phy_antenna()
|
D | sa2400.c | 63 u8 ant = SA2400_ANTENNA; in sa2400_write_phy_antenna() local 66 ant |= BB_ANTENNA_B; in sa2400_write_phy_antenna() 69 ant |= BB_ANTATTEN_CHAN14; in sa2400_write_phy_antenna() 71 rtl8180_write_phy(dev, 0x10, ant); in sa2400_write_phy_antenna() 209 rtl8180_write_phy(dev, 0x12, 0xc7); /* enable ant diversity */ in sa2400_rf_init() 211 rtl8180_write_phy(dev, 0x12, 0x47); /* disable ant diversity */ in sa2400_rf_init()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 121 u8 ant; member 131 return iwl_mvm_bt_coex_is_ant_avail(mvm, next_col->ant); in rs_ant_allow() 192 .ant = ANT_A, 208 .ant = ANT_B, 224 .ant = ANT_A, 241 .ant = ANT_B, 258 .ant = ANT_A, 277 .ant = ANT_B, 296 .ant = ANT_AB, 312 .ant = ANT_AB, [all …]
|
/linux-6.12.1/drivers/staging/rtl8723bs/hal/ |
D | HalBtcOutSrc.h | 80 u8 pgAntNum; /* pg ant number */ 81 u8 btdmAntNum; /* ant number for btdm */ 82 …Bryant Add to indicate Antenna Position for (pgAntNum = 2) && (btdmAntNum = 1) (DPDT+1Ant case) */ 154 /* for 1Ant ====== */ 179 /* for 1Ant ====== */ 307 bool bForceToRoam; /* for 1Ant solution */
|
D | odm.h | 60 /* ANT Test */ 61 #define ANTTESTALL 0x00 /* Ant A or B will be Testing */ 62 #define ANTTESTA 0x01 /* Ant A will be Testing */ 63 #define ANTTESTB 0x02 /* Ant B will be testing */ 67 /* for 8723A Ant Definition--2012--06--07 due to different IC may be different ANT define */ 68 #define MAIN_ANT 1 /* Ant A or Ant Main */ 69 #define AUX_ANT 2 /* AntB or Ant Aux */ 149 bool ANTA_ON; /* To indicate Ant A is or not */ 150 bool ANTB_ON; /* To indicate Ant B is on or not */
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/ |
D | coex.c | 424 "[BTCoex], (Before Ant Setup) Delay by IQK\n"); in rtw_coex_check_rfk() 438 "[BTCoex], (Before Ant Setup) wlk = %d, btk = %d\n", in rtw_coex_check_rfk() 1536 /* Shared-Ant */ in rtw_coex_action_coex_all_off() 1540 /* Non-Shared-Ant */ in rtw_coex_action_coex_all_off() 1606 /* Shared-Ant */ in rtw_coex_action_rf4ce() 1610 /* Non-Shared-Ant */ in rtw_coex_action_rf4ce() 1631 /* Shared-Ant */ in rtw_coex_action_bt_whql_test() 1635 /* Non-Shared-Ant */ in rtw_coex_action_bt_whql_test() 1658 if (efuse->share_ant) { /* Shared-Ant */ in rtw_coex_action_bt_relink() 1672 } else { /* Non-Shared-Ant */ in rtw_coex_action_bt_relink() [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | rs.h | 418 /* Bit 14-16: Antenna selection (1) Ant A, (2) Ant B, (4) Ant C */ 566 * Bit 14: Ant A active 567 * Bit 15: Ant B active 763 const char *iwl_rs_pretty_ant(u8 ant);
|
/linux-6.12.1/drivers/usb/serial/ |
D | usb-serial-simple.c | 108 /* Suunto ANT+ USB Driver */ 111 { USB_DEVICE(0x0fcf, 0x1009) } /* Dynastream ANT USB-m Stick */
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | rf.c | 69 * diff from Ant-B to Ant-A */ in _rtl92s_get_powerbase() 76 * of the power diff for Ant-B to Ant-A. */ in _rtl92s_get_powerbase()
|
/linux-6.12.1/Documentation/devicetree/bindings/pinctrl/ |
D | mediatek,mt7981-pinctrl.yaml | 153 "ant_sel" "ant" 14, 15, 16, 17, 18, 19, 20, 21, 22, 161 enum: [wa_aice, dfd, jtag, pta, pcm, udi, usb, ant, eth, i2c, led, 231 const: ant
|