Lines Matching refs:mvif
146 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_init_bitrate_mask() local
149 for (i = 0; i < ARRAY_SIZE(mvif->bitrate_mask.control); i++) { in mt7996_init_bitrate_mask()
150 mvif->bitrate_mask.control[i].gi = NL80211_TXRATE_DEFAULT_GI; in mt7996_init_bitrate_mask()
151 mvif->bitrate_mask.control[i].he_gi = 0xff; in mt7996_init_bitrate_mask()
152 mvif->bitrate_mask.control[i].he_ltf = 0xff; in mt7996_init_bitrate_mask()
153 mvif->bitrate_mask.control[i].legacy = GENMASK(31, 0); in mt7996_init_bitrate_mask()
154 memset(mvif->bitrate_mask.control[i].ht_mcs, 0xff, in mt7996_init_bitrate_mask()
155 sizeof(mvif->bitrate_mask.control[i].ht_mcs)); in mt7996_init_bitrate_mask()
156 memset(mvif->bitrate_mask.control[i].vht_mcs, 0xff, in mt7996_init_bitrate_mask()
157 sizeof(mvif->bitrate_mask.control[i].vht_mcs)); in mt7996_init_bitrate_mask()
158 memset(mvif->bitrate_mask.control[i].he_mcs, 0xff, in mt7996_init_bitrate_mask()
159 sizeof(mvif->bitrate_mask.control[i].he_mcs)); in mt7996_init_bitrate_mask()
166 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_add_interface() local
179 mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7996_add_interface()
180 if (mvif->mt76.idx >= mt7996_max_interface_num(dev)) { in mt7996_add_interface()
190 mvif->mt76.omac_idx = idx; in mt7996_add_interface()
191 mvif->phy = phy; in mt7996_add_interface()
192 mvif->mt76.band_idx = band_idx; in mt7996_add_interface()
193 mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; in mt7996_add_interface()
199 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7996_add_interface()
200 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7996_add_interface()
202 idx = MT7996_WTBL_RESERVED - mvif->mt76.idx; in mt7996_add_interface()
204 INIT_LIST_HEAD(&mvif->sta.rc_list); in mt7996_add_interface()
205 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); in mt7996_add_interface()
206 mvif->sta.wcid.idx = idx; in mt7996_add_interface()
207 mvif->sta.wcid.phy_idx = band_idx; in mt7996_add_interface()
208 mvif->sta.wcid.hw_key_idx = -1; in mt7996_add_interface()
209 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7996_add_interface()
210 mt76_wcid_init(&mvif->sta.wcid); in mt7996_add_interface()
221 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7996_add_interface()
226 mvif->mt76.basic_rates_idx = MT7996_BASIC_RATES_TBL + 4; in mt7996_add_interface()
228 mvif->mt76.basic_rates_idx = MT7996_BASIC_RATES_TBL; in mt7996_add_interface()
234 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7996_add_interface()
245 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_remove_interface() local
246 struct mt7996_sta *msta = &mvif->sta; in mt7996_remove_interface()
262 dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); in mt7996_remove_interface()
263 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); in mt7996_remove_interface()
315 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_key() local
317 &mvif->sta; in mt7996_set_key()
354 if (cmd == SET_KEY && !sta && !mvif->mt76.cipher) { in mt7996_set_key()
355 mvif->mt76.cipher = mt76_connac_mcu_get_cipher(key->cipher); in mt7996_set_key()
416 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_conf_tx() local
425 mvif->queue_params[mq_to_aci[queue]] = *params; in mt7996_conf_tx()
496 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_update_bss_color() local
498 if (mvif->mt76.omac_idx > HW_BSSID_MAX) in mt7996_update_bss_color()
514 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7996_get_rates_table() local
526 idx = MT7996_BEACON_RATES_TBL + 2 * (mvif->idx % 20); in mt7996_get_rates_table()
536 return mvif->basic_rates_idx; in mt7996_get_rates_table()
543 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_update_mu_group() local
545 u8 band = mvif->mt76.band_idx; in mt7996_update_mu_group()
564 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7996_bss_info_changed() local
597 mvif->mcast_rates_idx = in mt7996_bss_info_changed()
601 mvif->basic_rates_idx = in mt7996_bss_info_changed()
621 mvif->beacon_rates_idx = in mt7996_bss_info_changed()
654 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_mac_sta_add() local
655 u8 band_idx = mvif->phy->mt76->band_idx; in mt7996_mac_sta_add()
664 msta->vif = mvif; in mt7996_mac_sta_add()
724 struct mt7996_vif *mvif; in mt7996_tx() local
726 mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_tx()
727 wcid = &mvif->sta.wcid; in mt7996_tx()
838 u64 __mt7996_get_tsf(struct ieee80211_hw *hw, struct mt7996_vif *mvif) in __mt7996_get_tsf() argument
850 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in __mt7996_get_tsf()
851 : mvif->mt76.omac_idx; in __mt7996_get_tsf()
864 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_get_tsf() local
869 ret = __mt7996_get_tsf(hw, mvif); in mt7996_get_tsf()
879 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_tsf() local
890 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7996_set_tsf()
891 : mvif->mt76.omac_idx; in mt7996_set_tsf()
905 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_offset_tsf() local
916 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7996_offset_tsf()
917 : mvif->mt76.omac_idx; in mt7996_offset_tsf()
1037 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_bitrate_mask() local
1042 mvif->bitrate_mask = *mask; in mt7996_set_bitrate_mask()
1233 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_get_et_stats() local
1237 .idx = mvif->mt76.idx, in mt7996_get_et_stats()