Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.c735 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00mac_set_antenna() local
747 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna()
748 ant->flags &= ~ANTENNA_TX_DIVERSITY; in rt2x00mac_set_antenna()
749 if (ant->flags & ANTENNA_RX_DIVERSITY && rx_ant != 3) in rt2x00mac_set_antenna()
750 ant->flags &= ~ANTENNA_RX_DIVERSITY; in rt2x00mac_set_antenna()
758 ant->flags |= ANTENNA_TX_DIVERSITY; in rt2x00mac_set_antenna()
763 ant->flags |= ANTENNA_RX_DIVERSITY; in rt2x00mac_set_antenna()
780 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00mac_get_antenna() local
781 struct antenna_setup *active = &rt2x00dev->link.ant.active; in rt2x00mac_get_antenna()
785 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()
Drt2x00lib.h81 struct antenna_setup 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()
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()
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()
Drt2800lib.h234 void rt2800_config_ant(struct rt2x00_dev *rt2x00dev, struct antenna_setup *ant);
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
235 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
/linux-6.1.9/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.c602 bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant) in iwl_mvm_bt_coex_is_ant_avail() argument
608 if (ant & mvm->cfg->non_shared_ant) in iwl_mvm_bt_coex_is_ant_avail()
Drs.h157 u8 ant; member
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/
Dmac.h38 u8 ant; member
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Drtw8852a.c1781 module->ant.num = (module->rfe_type % 2 ? 2 : 3); in rtw8852a_btc_set_rfe()
1783 module->ant.num = 2; in rtw8852a_btc_set_rfe()
1785 module->ant.diversity = 0; in rtw8852a_btc_set_rfe()
1786 module->ant.isolation = 10; in rtw8852a_btc_set_rfe()
1788 if (module->ant.num == 3) { in rtw8852a_btc_set_rfe()
1789 module->ant.type = BTC_ANT_DEDICATED; in rtw8852a_btc_set_rfe()
1792 module->ant.type = BTC_ANT_SHARED; in rtw8852a_btc_set_rfe()
1842 if (module->ant.type == BTC_ANT_SHARED) { in rtw8852a_btc_init_cfg()
Dcoex.c2008 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _check_freerun()
2031 if (btc->mdinfo.ant.isolation >= BTC_FREERUN_ANTISO_MIN) { in _check_freerun()
2159 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in rtw89_btc_set_policy()
2467 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in rtw89_btc_set_policy_v1()
3028 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { /* shared-antenna */ in _action_bt_idle()
3074 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _action_bt_hfp()
3099 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { /* shared-antenna */ in _action_bt_hid()
3367 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) in _action_wl_other()
3717 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) in _action_wl_scan()
3745 if (btc->mdinfo.ant.type == BTC_ANT_SHARED) { in _action_wl_25g_mcc()
[all …]
Drtw8852c.c2563 module->ant.num = (module->rfe_type % 2 ? 2 : 3); in rtw8852c_btc_set_rfe()
2565 module->ant.num = 2; in rtw8852c_btc_set_rfe()
2567 module->ant.diversity = 0; in rtw8852c_btc_set_rfe()
2568 module->ant.isolation = 10; in rtw8852c_btc_set_rfe()
2570 if (module->ant.num == 3) { in rtw8852c_btc_set_rfe()
2571 module->ant.type = BTC_ANT_DEDICATED; in rtw8852c_btc_set_rfe()
2574 module->ant.type = BTC_ANT_SHARED; in rtw8852c_btc_set_rfe()
2656 if (module->ant.type == BTC_ANT_SHARED) { in rtw8852c_btc_init_cfg()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/
Drs.h756 const char *iwl_rs_pretty_ant(u8 ant);

12