Home
last modified time | relevance | path

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

12

/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()
432 dev->mphy.hw->wiphy->available_antennas_tx = 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()
[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()
/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.c112 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Deeprom.c242 mphy->chainmask = BIT(path) - 1; in mt7915_eeprom_parse_hw_cap()
244 mphy->chainmask <<= dev->chainshift; in mt7915_eeprom_parse_hw_cap()
246 dev->chainmask |= mphy->chainmask; in mt7915_eeprom_parse_hw_cap()
247 dev->chainshift = hweight8(dev->mphy.chainmask); in mt7915_eeprom_parse_hw_cap()
H A Dtestmode.c698 u32 chainmask = mphy->chainmask, changed = 0; in mt7915_tm_set_params() local
708 chainmask = ext_phy ? chainmask >> dev->chainshift : chainmask; in mt7915_tm_set_params()
709 if (td->tx_antenna_mask > chainmask) in mt7915_tm_set_params()
H A Dinit.c284 int i, n_chains = hweight16(phy->mt76->chainmask); in __mt7915_init_txpower()
856 sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps()
883 int sts = hweight8(phy->mt76->chainmask); in mt7915_set_stream_he_txbf_caps()
H A Dmcu.h522 int n_chains = hweight16(mphy->chainmask); in mt7915_get_power_bound()
H A Dmcu.c1030 int sts = hweight16(phy->mt76->chainmask); in mt7915_is_ebf_supported()
1093 bf->nrow = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_ht()
1106 u8 tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_vht()
1201 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv()
1270 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv()
2745 .tx_path_num = hweight16(phy->mt76->chainmask), in mt7915_mcu_set_chan_info()
2746 .rx_path = phy->mt76->chainmask >> (dev->chainshift * band), in mt7915_mcu_set_chan_info()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Deeprom.c205 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx]; in mt7996_eeprom_parse_hw_cap()
206 dev->chainmask |= mphy->chainmask; in mt7996_eeprom_parse_hw_cap()
209 hweight16(mphy->chainmask); in mt7996_eeprom_parse_hw_cap()
H A Dmain.c977 phy->mt76->chainmask = ((dev->chainmask >> shift) & in mt7996_set_antenna()
980 phy->mt76->chainmask = (dev->chainmask >> shift) << shift; in mt7996_set_antenna()
982 phy->mt76->chainmask = tx_ant << shift; in mt7996_set_antenna()
H A Dinit.c296 int i, nss = hweight16(phy->mt76->chainmask); in __mt7996_init_txpower()
941 sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_vht_txbf_caps()
969 int sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_he_txbf_caps()
1183 int sts = hweight16(phy->mt76->chainmask); in mt7996_init_eht_caps()
H A Dmt7996.h261 u16 chainmask; member
555 u16 tx_chainmask = phy->mt76->chainmask; in mt7996_rx_chainmask()
/linux/drivers/net/wireless/ath/ath9k/
H A Dcalib.c92 u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; in ath9k_hw_update_nfcal_hist_buffer() local
99 if (!(chainmask & (1 << i)) || in ath9k_hw_update_nfcal_hist_buffer()
248 u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; in ath9k_hw_loadnf() local
258 if (chainmask & (1 << i)) { in ath9k_hw_loadnf()
353 if (chainmask & (1 << i)) { in ath9k_hw_loadnf()
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 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()
/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()
H A Deeprom.c384 txs_delta = mt76_get_txs_delta(np, hweight16(phy->chainmask)); in mt76_get_rate_power_limits()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dinit.c290 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7925_register_device()
291 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7925_register_device()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dinit.c333 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device()
334 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Deeprom.c184 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7603_eeprom_init()

12