Home
last modified time | relevance | path

Searched refs:chainmask (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c426 if (dev->chainmask == 0xf) in mt7615_cap_dbdc_enable()
427 dev->mphy.antenna_mask = dev->chainmask >> 2; in mt7615_cap_dbdc_enable()
429 dev->mphy.antenna_mask = dev->chainmask >> 1; in mt7615_cap_dbdc_enable()
430 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7615_cap_dbdc_enable()
431 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7615_cap_dbdc_enable()
442 dev->mphy.antenna_mask = dev->chainmask; in mt7615_cap_dbdc_disable()
443 dev->mphy.chainmask = dev->chainmask; in mt7615_cap_dbdc_disable()
444 dev->mphy.hw->wiphy->available_antennas_rx = dev->chainmask; in mt7615_cap_dbdc_disable()
445 dev->mphy.hw->wiphy->available_antennas_tx = dev->chainmask; in mt7615_cap_dbdc_disable()
551 mphy->chainmask = dev->chainmask & ~dev->mphy.chainmask; in mt7615_register_ext_phy()
[all …]
H A Deeprom.c168 dev->chainmask = BIT(tx_mask) - 1; in mt7615_eeprom_parse_hw_cap()
169 dev->mphy.antenna_mask = dev->chainmask; in mt7615_eeprom_parse_hw_cap()
170 dev->mphy.chainmask = dev->chainmask; in mt7615_eeprom_parse_hw_cap()
H A Dtestmode.c183 mask = phy->mt76->chainmask; in mt7615_tm_set_tx_antenna()
310 if (td->tx_antenna_mask & ~mphy->chainmask) in mt7615_tm_set_params()
H A Dmt7615.h251 u16 chainmask; member
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dmcu.c24 __le16 chainmask; in mt76x2_mcu_set_channel() member
32 .chainmask = cpu_to_le16(dev->mphy.chainmask), in mt76x2_mcu_set_channel()
H A Dpci_main.c123 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Deeprom.c183 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx]; in mt7996_eeprom_parse_hw_cap()
184 dev->chainmask |= mphy->chainmask; in mt7996_eeprom_parse_hw_cap()
187 hweight16(mphy->chainmask); in mt7996_eeprom_parse_hw_cap()
H A Dmain.c959 phy->mt76->chainmask = ((dev->chainmask >> shift) & in mt7996_set_antenna()
962 phy->mt76->chainmask = (dev->chainmask >> shift) << shift; in mt7996_set_antenna()
964 phy->mt76->chainmask = tx_ant << shift; in mt7996_set_antenna()
H A Dinit.c490 sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_vht_txbf_caps()
514 int sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_he_txbf_caps()
719 int sts = hweight16(phy->mt76->chainmask); in mt7996_init_eht_caps()
H A Dmt7996.h195 u16 chainmask; member
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Deeprom.c231 mphy->chainmask = BIT(path) - 1; in mt7915_eeprom_parse_hw_cap()
233 mphy->chainmask <<= dev->chainshift; in mt7915_eeprom_parse_hw_cap()
235 dev->chainmask |= mphy->chainmask; in mt7915_eeprom_parse_hw_cap()
236 dev->chainshift = hweight8(dev->mphy.chainmask); in mt7915_eeprom_parse_hw_cap()
H A Dtestmode.c696 u32 chainmask = mphy->chainmask, changed = 0; in mt7915_tm_set_params() local
706 chainmask = ext_phy ? chainmask >> dev->chainshift : chainmask; in mt7915_tm_set_params()
707 if (td->tx_antenna_mask > chainmask) in mt7915_tm_set_params()
H A Dmcu.c1018 int sts = hweight16(phy->mt76->chainmask); in mt7915_is_ebf_supported()
1081 bf->nrow = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_ht()
1094 u8 tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_vht()
1189 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv()
1258 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv()
2726 .tx_path_num = hweight16(phy->mt76->chainmask), in mt7915_mcu_set_chan_info()
2727 .rx_path = phy->mt76->chainmask >> (dev->chainshift * band), in mt7915_mcu_set_chan_info()
H A Dinit.c835 sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps()
862 int sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_he_txbf_caps()
H A Dmain.c1053 phy->mt76->chainmask = (dev->chainmask >> chainshift) << chainshift; in mt7915_set_antenna()
1055 phy->mt76->chainmask = tx_ant << (chainshift * band); in mt7915_set_antenna()
H A Dmt7915.h261 u16 chainmask; member
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon.c354 int ath9k_cmn_count_streams(unsigned int chainmask, int max) in ath9k_cmn_count_streams() argument
361 } while ((chainmask = chainmask & (chainmask - 1))); in ath9k_cmn_count_streams()
H A Dcalib.c95 u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; in ath9k_hw_update_nfcal_hist_buffer() local
102 if (!(chainmask & (1 << i)) || in ath9k_hw_update_nfcal_hist_buffer()
251 u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; in ath9k_hw_loadnf() local
261 if (chainmask & (1 << i)) { in ath9k_hw_loadnf()
356 if (chainmask & (1 << i)) { in ath9k_hw_loadnf()
H A Dcommon.h87 int ath9k_cmn_count_streams(unsigned int chainmask, int max);
H A Dbeacon.c80 u8 chainmask = ah->txchainmask; in ath9k_beacon_setup() local
107 info.rates[0].ChSel = ath_txchainmask_reduction(sc, chainmask, rate); in ath9k_beacon_setup()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_phy.c19 switch (dev->mphy.chainmask & 0xf) { in mt76x02_phy_set_rxpath()
38 txpath = (dev->mphy.chainmask >> 8) & 0xf; in mt76x02_phy_set_txdac()
H A Dmt76x02_util.c193 dev->mphy.chainmask = 0x202; in mt76x02_init_device()
196 dev->mphy.chainmask = 0x101; in mt76x02_init_device()
H A Dmt76x02_mac.c348 u8 ccmp_pn[8], nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_write_txwi()
692 u8 n_rxstream = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rate()
785 int pad_len = 0, nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rx()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dinit.c261 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device()
262 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
H A Dmain.c17 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps()
1002 phy->mt76->chainmask = tx_ant; in mt7921_set_antenna()

12