Lines Matching refs:band
108 int pwr_delta = mt7996_eeprom_get_power_delta(dev, sband->band); in mt7996_init_txpower()
225 mt7996_mac_init_band(struct mt7996_dev *dev, u8 band) in mt7996_mac_init_band() argument
230 mt76_wr(dev, MT_WF_RMAC_RSVD0(band), MT_WF_RMAC_RSVD0_EIFS_CLR); in mt7996_mac_init_band()
233 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME1(band), in mt7996_mac_init_band()
235 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME3(band), in mt7996_mac_init_band()
237 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME4(band), in mt7996_mac_init_band()
244 mt76_rmw(dev, MT_WF_RMAC_MIB_AIRTIME0(band), mask, set); in mt7996_mac_init_band()
250 mt76_rmw(dev, MT_WTBLOFF_RSCR(band), mask, set); in mt7996_mac_init_band()
307 enum mt76_band_id band) in mt7996_register_phy() argument
313 if (band != MT_BAND1 && band != MT_BAND2) in mt7996_register_phy()
316 if ((band == MT_BAND1 && !dev->dbdc_support) || in mt7996_register_phy()
317 (band == MT_BAND2 && !dev->tbtc_support)) in mt7996_register_phy()
323 if (band == MT_BAND2 && dev->hif2) in mt7996_register_phy()
326 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7996_ops, band); in mt7996_register_phy()
333 mphy->dev->phys[band] = mphy; in mt7996_register_phy()
341 mac_ofs = band == MT_BAND2 ? MT_EE_MAC_ADDR3 : MT_EE_MAC_ADDR2; in mt7996_register_phy()
351 if (band == MT_BAND2) in mt7996_register_phy()
359 MT_TXQ_ID(band), in mt7996_register_phy()
361 MT_TXQ_RING_BASE(band) + hif1_ofs, 0); in mt7996_register_phy()
377 mphy->dev->phys[band] = NULL; in mt7996_register_phy()
383 mt7996_unregister_phy(struct mt7996_phy *phy, enum mt76_band_id band) in mt7996_unregister_phy() argument
390 mphy = phy->dev->mt76.phys[band]; in mt7996_unregister_phy()
393 phy->dev->mt76.phys[band] = NULL; in mt7996_unregister_phy()
577 mt7996_init_he_caps(struct mt7996_phy *phy, enum nl80211_band band, in mt7996_init_he_caps() argument
601 if (band == NL80211_BAND_2GHZ) in mt7996_init_he_caps()
634 if (band == NL80211_BAND_2GHZ) in mt7996_init_he_caps()
688 if (band == NL80211_BAND_6GHZ) { in mt7996_init_he_caps()
704 mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band, in mt7996_init_eht_caps() argument
801 enum nl80211_band band) in __mt7996_set_stream_he_eht_caps() argument
803 struct ieee80211_sband_iftype_data *data = phy->iftype[band]; in __mt7996_set_stream_he_eht_caps()
819 mt7996_init_he_caps(phy, band, &data[n], i); in __mt7996_set_stream_he_eht_caps()
820 mt7996_init_eht_caps(phy, band, &data[n], i); in __mt7996_set_stream_he_eht_caps()