Home
last modified time | relevance | path

Searched refs:ant (Results 1 – 25 of 45) sorted by relevance

12

/drivers/net/wireless/ralink/rt2x00/
Drt2x00link.c38 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 …]
Drt2x00mac.c746 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 …]
Drt2x00config.c107 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()
Drt61pci.c534 struct antenna_setup *ant) in rt61pci_config_antenna_5x() argument
549 switch (ant->rx) { in rt61pci_config_antenna_5x()
580 struct antenna_setup *ant) in rt61pci_config_antenna_2x() argument
597 switch (ant->rx) { in rt61pci_config_antenna_2x()
634 struct antenna_setup *ant) in rt61pci_config_antenna_2529() argument
647 switch (ant->rx) { in rt61pci_config_antenna_2529()
704 struct antenna_setup *ant) in rt61pci_config_ant() argument
715 BUG_ON(ant->rx == ANTENNA_SW_DIVERSITY || in rt61pci_config_ant()
716 ant->tx == ANTENNA_SW_DIVERSITY); in rt61pci_config_ant()
739 rt61pci_config_antenna_5x(rt2x00dev, ant); in rt61pci_config_ant()
[all …]
Drt73usb.c568 struct antenna_setup *ant) in rt73usb_config_antenna_5x() argument
584 switch (ant->rx) { in rt73usb_config_antenna_5x()
616 struct antenna_setup *ant) in rt73usb_config_antenna_2x() argument
633 switch (ant->rx) { in rt73usb_config_antenna_2x()
685 struct antenna_setup *ant) in rt73usb_config_ant() argument
696 BUG_ON(ant->rx == ANTENNA_SW_DIVERSITY || in rt73usb_config_ant()
697 ant->tx == ANTENNA_SW_DIVERSITY); in rt73usb_config_ant()
720 rt73usb_config_antenna_5x(rt2x00dev, ant); in rt73usb_config_ant()
722 rt73usb_config_antenna_2x(rt2x00dev, ant); in rt73usb_config_ant()
Drt2500usb.c501 struct antenna_setup *ant) in rt2500usb_config_ant() argument
512 BUG_ON(ant->rx == ANTENNA_SW_DIVERSITY || in rt2500usb_config_ant()
513 ant->tx == ANTENNA_SW_DIVERSITY); in rt2500usb_config_ant()
523 switch (ant->tx) { in rt2500usb_config_ant()
545 switch (ant->rx) { in rt2500usb_config_ant()
Drt2400pci.c391 struct antenna_setup *ant) in rt2400pci_config_ant() argument
400 BUG_ON(ant->rx == ANTENNA_SW_DIVERSITY || in rt2400pci_config_ant()
401 ant->tx == ANTENNA_SW_DIVERSITY); in rt2400pci_config_ant()
409 switch (ant->tx) { in rt2400pci_config_ant()
425 switch (ant->rx) { in rt2400pci_config_ant()
Drt2x00lib.h81 struct antenna_setup ant);
Drt2500pci.c397 struct antenna_setup *ant) in rt2500pci_config_ant() argument
407 BUG_ON(ant->rx == ANTENNA_SW_DIVERSITY || in rt2500pci_config_ant()
408 ant->tx == ANTENNA_SW_DIVERSITY); in rt2500pci_config_ant()
417 switch (ant->tx) { in rt2500pci_config_ant()
434 switch (ant->rx) { in rt2500pci_config_ant()
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dantsel.c34 #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()
/drivers/net/wireless/realtek/rtl818x/rtl8180/
Dmax2820.c62 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()
Dgrf5101.c57 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()
Dsa2400.c63 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()
/drivers/net/wireless/intel/iwlwifi/fw/
Drs.c76 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
210 iwl_rs_pretty_ant(ant), in rs_pretty_print_rate()
237 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c121 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 …]
Dcoex.c640 bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant) in iwl_mvm_bt_coex_is_ant_avail() argument
646 if (ant & mvm->cfg->non_shared_ant) in iwl_mvm_bt_coex_is_ant_avail()
/drivers/net/wireless/realtek/rtw89/
Drtw8851b.c1913 module->ant.isolation = 10; 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()
1935 module->ant.type = BTC_ANT_DEDICATED; in rtw8851b_btc_set_rfe()
1940 module->ant.diversity = 1; in rtw8851b_btc_set_rfe()
[all …]
Drtw8852a.c1661 module->ant.num = (module->rfe_type % 2 ? 2 : 3); in rtw8852a_btc_set_rfe()
1663 module->ant.num = 2; in rtw8852a_btc_set_rfe()
1665 module->ant.diversity = 0; in rtw8852a_btc_set_rfe()
1666 module->ant.isolation = 10; in rtw8852a_btc_set_rfe()
1668 if (module->ant.num == 3) { in rtw8852a_btc_set_rfe()
1669 module->ant.type = BTC_ANT_DEDICATED; in rtw8852a_btc_set_rfe()
1672 module->ant.type = BTC_ANT_SHARED; in rtw8852a_btc_set_rfe()
1722 if (module->ant.type == BTC_ANT_SHARED) { in rtw8852a_btc_init_cfg()
Drtw8852c.c2325 module->ant.num = (module->rfe_type % 2 ? 2 : 3); in rtw8852c_btc_set_rfe()
2327 module->ant.num = 2; in rtw8852c_btc_set_rfe()
2329 module->ant.diversity = 0; in rtw8852c_btc_set_rfe()
2330 module->ant.isolation = 10; in rtw8852c_btc_set_rfe()
2332 if (module->ant.num == 3) { in rtw8852c_btc_set_rfe()
2333 module->ant.type = BTC_ANT_DEDICATED; in rtw8852c_btc_set_rfe()
2336 module->ant.type = BTC_ANT_SHARED; in rtw8852c_btc_set_rfe()
2418 if (module->ant.type == BTC_ANT_SHARED) { in rtw8852c_btc_init_cfg()
Drtw8852b.c2119 module->ant.num = module->rfe_type % 2 ? 2 : 3; in rtw8852b_btc_set_rfe()
2121 module->ant.num = 2; in rtw8852b_btc_set_rfe()
2123 module->ant.diversity = 0; in rtw8852b_btc_set_rfe()
2124 module->ant.isolation = 10; in rtw8852b_btc_set_rfe()
2126 if (module->ant.num == 3) { in rtw8852b_btc_set_rfe()
2127 module->ant.type = BTC_ANT_DEDICATED; in rtw8852b_btc_set_rfe()
2130 module->ant.type = BTC_ANT_SHARED; in rtw8852b_btc_set_rfe()
2166 if (module->ant.type == BTC_ANT_SHARED) { in rtw8852b_btc_init_cfg()
Dcoex.c2409 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _check_freerun()
2432 if (btc->mdinfo.ant.isolation >= BTC_FREERUN_ANTISO_MIN) { in _check_freerun()
2560 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in rtw89_btc_set_policy()
2868 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in rtw89_btc_set_policy_v1()
3435 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { /* shared-antenna */ in _action_bt_idle()
3481 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _action_bt_hfp()
3506 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { /* shared-antenna */ in _action_bt_hid()
3774 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) in _action_wl_other()
4140 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) in _action_wl_scan()
4168 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _action_wl_25g_mcc()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Ddm.c1218 u8 ant) in rtl88e_dm_update_rx_idle_ant() argument
1226 if (pfat_table->rx_idle_ant != ant) { in rtl88e_dm_update_rx_idle_ant()
1229 if (ant == MAIN_ANT) { in rtl88e_dm_update_rx_idle_ant()
1262 pfat_table->rx_idle_ant = ant; in rtl88e_dm_update_rx_idle_ant()
1264 (ant == MAIN_ANT) ? ("MAIN_ANT") : ("AUX_ANT")); in rtl88e_dm_update_rx_idle_ant()
1268 u8 ant, u32 mac_id) in rtl88e_dm_update_tx_ant() argument
1275 if (ant == MAIN_ANT) in rtl88e_dm_update_tx_ant()
1284 (ant == MAIN_ANT) ? ("MAIN_ANT") : ("AUX_ANT")); in rtl88e_dm_update_tx_ant()
/drivers/net/wireless/mediatek/mt7601u/
Dmac.h38 u8 ant; member
/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c836 u8 iwl_toggle_tx_ant(struct iwl_priv *priv, u8 ant, u8 valid) in iwl_toggle_tx_ant() argument
839 u8 ind = ant; in iwl_toggle_tx_ant()
850 return ant; in iwl_toggle_tx_ant()
/drivers/net/wireless/intel/iwlwifi/fw/api/
Drs.h763 const char *iwl_rs_pretty_ant(u8 ant);

12