Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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.c106 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_config_antenna() local
108 struct antenna_setup *active = &rt2x00dev->link.ant.active; in rt2x00lib_config_antenna()
118 if (!(ant->flags & ANTENNA_RX_DIVERSITY)) { in rt2x00lib_config_antenna()
120 ant->flags |= ANTENNA_RX_DIVERSITY; in rt2x00lib_config_antenna()
130 if (!(ant->flags & ANTENNA_TX_DIVERSITY)) { in rt2x00lib_config_antenna()
132 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);
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()
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.h224 void rt2800_config_ant(struct rt2x00_dev *rt2x00dev, struct antenna_setup *ant);
Drt2x00.h306 struct link_ant ant; member
615 struct antenna_setup *ant);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c126 u8 ant; member
136 return iwl_mvm_bt_coex_is_ant_avail(mvm, next_col->ant); in rs_ant_allow()
197 .ant = ANT_A,
213 .ant = ANT_B,
229 .ant = ANT_A,
246 .ant = ANT_B,
263 .ant = ANT_A,
282 .ant = ANT_B,
301 .ant = ANT_AB,
317 .ant = ANT_AB,
[all …]
Dcoex.c657 bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant) in iwl_mvm_bt_coex_is_ant_avail() argument
663 if (ant & mvm->cfg->non_shared_ant) in iwl_mvm_bt_coex_is_ant_avail()
Drs.h167 u8 ant; member
Dmvm.h1580 static inline void iwl_mvm_toggle_tx_ant(struct iwl_mvm *mvm, u8 *ant) in iwl_mvm_toggle_tx_ant() argument
1582 *ant = iwl_mvm_next_antenna(mvm, iwl_mvm_get_valid_tx_ant(mvm), *ant); in iwl_mvm_toggle_tx_ant()
1849 bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant);
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/hal/
Dodm_rtl8188e.c151 void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant) in rtl88eu_dm_update_rx_idle_ant() argument
157 if (dm_fat_tbl->RxIdleAnt == ant) in rtl88eu_dm_update_rx_idle_ant()
160 if (ant == MAIN_ANT) { in rtl88eu_dm_update_rx_idle_ant()
188 dm_fat_tbl->RxIdleAnt = ant; in rtl88eu_dm_update_rx_idle_ant()
191 static void update_tx_ant_88eu(struct odm_dm_struct *dm_odm, u8 ant, u32 mac_id) in update_tx_ant_88eu() argument
196 if (ant == MAIN_ANT) in update_tx_ant_88eu()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Dodm_rtl8188e.h26 void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dmac.h38 u8 ant; member
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c841 u8 iwl_toggle_tx_ant(struct iwl_priv *priv, u8 ant, u8 valid) in iwl_toggle_tx_ant() argument
844 u8 ind = ant; in iwl_toggle_tx_ant()
855 return ant; in iwl_toggle_tx_ant()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D3945-mac.c3330 int ant; in il3945_store_antenna() local
3335 if (sscanf(buf, "%1i", &ant) != 1) { in il3945_store_antenna()
3340 if (ant >= 0 && ant <= 2) { in il3945_store_antenna()
3341 D_INFO("Setting antenna select to %d.\n", ant); in il3945_store_antenna()
3342 il3945_mod_params.antenna = (enum il3945_antenna)ant; in il3945_store_antenna()
3344 D_INFO("Bad antenna select value %d.\n", ant); in il3945_store_antenna()

12