Lines Matching refs:mvif
187 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_init_bitrate_mask() local
190 for (i = 0; i < ARRAY_SIZE(mvif->bitrate_mask.control); i++) { in mt7915_init_bitrate_mask()
191 mvif->bitrate_mask.control[i].gi = NL80211_TXRATE_DEFAULT_GI; in mt7915_init_bitrate_mask()
192 mvif->bitrate_mask.control[i].he_gi = 0xff; in mt7915_init_bitrate_mask()
193 mvif->bitrate_mask.control[i].he_ltf = 0xff; in mt7915_init_bitrate_mask()
194 mvif->bitrate_mask.control[i].legacy = GENMASK(31, 0); in mt7915_init_bitrate_mask()
195 memset(mvif->bitrate_mask.control[i].ht_mcs, 0xff, in mt7915_init_bitrate_mask()
196 sizeof(mvif->bitrate_mask.control[i].ht_mcs)); in mt7915_init_bitrate_mask()
197 memset(mvif->bitrate_mask.control[i].vht_mcs, 0xff, in mt7915_init_bitrate_mask()
198 sizeof(mvif->bitrate_mask.control[i].vht_mcs)); in mt7915_init_bitrate_mask()
199 memset(mvif->bitrate_mask.control[i].he_mcs, 0xff, in mt7915_init_bitrate_mask()
200 sizeof(mvif->bitrate_mask.control[i].he_mcs)); in mt7915_init_bitrate_mask()
207 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_add_interface() local
222 mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7915_add_interface()
223 if (mvif->mt76.idx >= (MT7915_MAX_INTERFACES << dev->dbdc_support)) { in mt7915_add_interface()
233 mvif->mt76.omac_idx = idx; in mt7915_add_interface()
234 mvif->phy = phy; in mt7915_add_interface()
235 mvif->mt76.band_idx = phy->mt76->band_idx; in mt7915_add_interface()
237 mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; in mt7915_add_interface()
239 mvif->mt76.wmm_idx += 2; in mt7915_add_interface()
245 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7915_add_interface()
246 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7915_add_interface()
252 INIT_LIST_HEAD(&mvif->sta.rc_list); in mt7915_add_interface()
253 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); in mt7915_add_interface()
254 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
255 mvif->sta.wcid.phy_idx = ext_phy; in mt7915_add_interface()
256 mvif->sta.wcid.hw_key_idx = -1; in mt7915_add_interface()
257 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_add_interface()
258 mt76_wcid_init(&mvif->sta.wcid); in mt7915_add_interface()
269 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7915_add_interface()
274 memset(&mvif->cap, -1, sizeof(mvif->cap)); in mt7915_add_interface()
278 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7915_add_interface()
289 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_remove_interface() local
290 struct mt7915_sta *msta = &mvif->sta; in mt7915_remove_interface()
297 mt76_wcid_mask_clear(dev->mt76.wcid_mask, mvif->sta.wcid.idx); in mt7915_remove_interface()
311 dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); in mt7915_remove_interface()
312 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); in mt7915_remove_interface()
361 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_set_key() local
363 &mvif->sta; in mt7915_set_key()
403 if (cmd == SET_KEY && !sta && !mvif->mt76.cipher) { in mt7915_set_key()
404 mvif->mt76.cipher = mt76_connac_mcu_get_cipher(key->cipher); in mt7915_set_key()
507 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_conf_tx() local
511 mvif->queue_params[queue] = *params; in mt7915_conf_tx()
587 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_update_bss_color() local
589 if (mvif->mt76.omac_idx > HW_BSSID_MAX) in mt7915_update_bss_color()
671 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_vif_check_caps() local
672 struct mt7915_vif_cap *vc = &mvif->cap; in mt7915_vif_check_caps()
736 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mac_sta_add() local
737 bool ext_phy = mvif->phy != &dev->phy; in mt7915_mac_sta_add()
746 msta->vif = mvif; in mt7915_mac_sta_add()
839 struct mt7915_vif *mvif; in mt7915_tx() local
841 mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_tx()
842 wcid = &mvif->sta.wcid; in mt7915_tx()
939 u64 __mt7915_get_tsf(struct ieee80211_hw *hw, struct mt7915_vif *mvif) in __mt7915_get_tsf() argument
952 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in __mt7915_get_tsf()
953 : mvif->mt76.omac_idx; in __mt7915_get_tsf()
970 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_get_tsf() local
975 ret = __mt7915_get_tsf(hw, mvif); in mt7915_get_tsf()
985 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_set_tsf() local
997 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7915_set_tsf()
998 : mvif->mt76.omac_idx; in mt7915_set_tsf()
1016 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_offset_tsf() local
1028 n = mvif->mt76.omac_idx > HW_BSSID_MAX ? HW_BSSID_0 in mt7915_offset_tsf()
1029 : mvif->mt76.omac_idx; in mt7915_offset_tsf()
1184 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_set_bitrate_mask() local
1189 mvif->bitrate_mask = *mask; in mt7915_set_bitrate_mask()
1455 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_get_et_stats() local
1459 .idx = mvif->mt76.idx, in mt7915_get_et_stats()
1658 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_net_fill_forward_path() local
1673 path->mtk_wdma.bss = mvif->mt76.idx; in mt7915_net_fill_forward_path()