Lines Matching refs:mvif
162 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_init_bitrate_mask() local
165 for (i = 0; i < ARRAY_SIZE(mvif->bitrate_mask.control); i++) { in mt7996_init_bitrate_mask()
166 mvif->bitrate_mask.control[i].gi = NL80211_TXRATE_DEFAULT_GI; in mt7996_init_bitrate_mask()
167 mvif->bitrate_mask.control[i].he_gi = 0xff; in mt7996_init_bitrate_mask()
168 mvif->bitrate_mask.control[i].he_ltf = 0xff; in mt7996_init_bitrate_mask()
169 mvif->bitrate_mask.control[i].legacy = GENMASK(31, 0); in mt7996_init_bitrate_mask()
170 memset(mvif->bitrate_mask.control[i].ht_mcs, 0xff, in mt7996_init_bitrate_mask()
171 sizeof(mvif->bitrate_mask.control[i].ht_mcs)); in mt7996_init_bitrate_mask()
172 memset(mvif->bitrate_mask.control[i].vht_mcs, 0xff, in mt7996_init_bitrate_mask()
173 sizeof(mvif->bitrate_mask.control[i].vht_mcs)); in mt7996_init_bitrate_mask()
174 memset(mvif->bitrate_mask.control[i].he_mcs, 0xff, in mt7996_init_bitrate_mask()
175 sizeof(mvif->bitrate_mask.control[i].he_mcs)); in mt7996_init_bitrate_mask()
182 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_add_interface() local
195 mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7996_add_interface()
196 if (mvif->mt76.idx >= mt7996_max_interface_num(dev)) { in mt7996_add_interface()
206 mvif->mt76.omac_idx = idx; in mt7996_add_interface()
207 mvif->phy = phy; in mt7996_add_interface()
208 mvif->mt76.band_idx = band_idx; in mt7996_add_interface()
209 mvif->mt76.wmm_idx = vif->type == NL80211_IFTYPE_AP ? 0 : 3; in mt7996_add_interface()
215 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7996_add_interface()
216 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7996_add_interface()
218 idx = MT7996_WTBL_RESERVED - mvif->mt76.idx; in mt7996_add_interface()
220 INIT_LIST_HEAD(&mvif->sta.rc_list); in mt7996_add_interface()
221 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); in mt7996_add_interface()
222 mvif->sta.wcid.idx = idx; in mt7996_add_interface()
223 mvif->sta.wcid.phy_idx = band_idx; in mt7996_add_interface()
224 mvif->sta.wcid.hw_key_idx = -1; in mt7996_add_interface()
225 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7996_add_interface()
226 mt76_wcid_init(&mvif->sta.wcid); in mt7996_add_interface()
237 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7996_add_interface()
242 mvif->mt76.basic_rates_idx = MT7996_BASIC_RATES_TBL + 4; in mt7996_add_interface()
244 mvif->mt76.basic_rates_idx = MT7996_BASIC_RATES_TBL; in mt7996_add_interface()
254 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7996_add_interface()
265 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_remove_interface() local
266 struct mt7996_sta *msta = &mvif->sta; in mt7996_remove_interface()
282 dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); in mt7996_remove_interface()
283 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); in mt7996_remove_interface()
326 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_key() local
328 &mvif->sta; in mt7996_set_key()
371 if (cmd == SET_KEY && !sta && !mvif->mt76.cipher) { in mt7996_set_key()
372 mvif->mt76.cipher = mt76_connac_mcu_get_cipher(key->cipher); in mt7996_set_key()
442 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_conf_tx() local
451 mvif->queue_params[mq_to_aci[queue]] = *params; in mt7996_conf_tx()
522 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_update_bss_color() local
524 if (mvif->mt76.omac_idx > HW_BSSID_MAX) in mt7996_update_bss_color()
540 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7996_get_rates_table() local
563 return mvif->basic_rates_idx; in mt7996_get_rates_table()
570 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_update_mu_group() local
572 u8 band = mvif->mt76.band_idx; in mt7996_update_mu_group()
591 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7996_bss_info_changed() local
621 mvif->mcast_rates_idx = in mt7996_bss_info_changed()
625 mvif->basic_rates_idx = in mt7996_bss_info_changed()
640 mvif->beacon_rates_idx = in mt7996_bss_info_changed()
673 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_mac_sta_add() local
674 u8 band_idx = mvif->phy->mt76->band_idx; in mt7996_mac_sta_add()
683 msta->vif = mvif; in mt7996_mac_sta_add()
742 struct mt7996_vif *mvif; in mt7996_tx() local
744 mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_tx()
745 wcid = &mvif->sta.wcid; in mt7996_tx()
856 u64 __mt7996_get_tsf(struct ieee80211_hw *hw, struct mt7996_vif *mvif) in __mt7996_get_tsf() argument
868 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in __mt7996_get_tsf()
869 : mvif->mt76.omac_idx; in __mt7996_get_tsf()
882 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_get_tsf() local
887 ret = __mt7996_get_tsf(hw, mvif); in mt7996_get_tsf()
897 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_tsf() local
908 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7996_set_tsf()
909 : mvif->mt76.omac_idx; in mt7996_set_tsf()
923 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_offset_tsf() local
934 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7996_offset_tsf()
935 : mvif->mt76.omac_idx; in mt7996_offset_tsf()
1077 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_set_bitrate_mask() local
1082 mvif->bitrate_mask = *mask; in mt7996_set_bitrate_mask()
1273 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_get_et_stats() local
1277 .idx = mvif->mt76.idx, in mt7996_get_et_stats()
1428 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_net_fill_forward_path() local
1446 path->mtk_wdma.bss = mvif->mt76.idx; in mt7996_net_fill_forward_path()