Lines Matching refs:mvif
38 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_interface() local
47 mvif->idx = __ffs64(~dev->mt76.vif_mask); in mt7603_add_interface()
48 if (mvif->idx >= MT7603_MAX_INTERFACES) { in mt7603_add_interface()
53 mt76_wr(dev, MT_MAC_ADDR0(mvif->idx), in mt7603_add_interface()
55 mt76_wr(dev, MT_MAC_ADDR1(mvif->idx), in mt7603_add_interface()
60 mt76_wr(dev, MT_BSSID0(mvif->idx), in mt7603_add_interface()
62 mt76_wr(dev, MT_BSSID1(mvif->idx), in mt7603_add_interface()
67 idx = MT7603_WTBL_RESERVED - 1 - mvif->idx; in mt7603_add_interface()
68 dev->mt76.vif_mask |= BIT_ULL(mvif->idx); in mt7603_add_interface()
69 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); in mt7603_add_interface()
70 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface()
72 mvif->sta.vif = mvif; in mt7603_add_interface()
73 mt76_wcid_init(&mvif->sta.wcid); in mt7603_add_interface()
76 mt7603_wtbl_init(dev, idx, mvif->idx, bc_addr); in mt7603_add_interface()
80 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
91 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_remove_interface() local
92 struct mt7603_sta *msta = &mvif->sta; in mt7603_remove_interface()
96 mt76_wr(dev, MT_MAC_ADDR0(mvif->idx), 0); in mt7603_remove_interface()
97 mt76_wr(dev, MT_MAC_ADDR1(mvif->idx), 0); in mt7603_remove_interface()
98 mt76_wr(dev, MT_BSSID0(mvif->idx), 0); in mt7603_remove_interface()
99 mt76_wr(dev, MT_BSSID1(mvif->idx), 0); in mt7603_remove_interface()
100 mt7603_beacon_set_timer(dev, mvif->idx, 0); in mt7603_remove_interface()
110 dev->mt76.vif_mask &= ~BIT_ULL(mvif->idx); in mt7603_remove_interface()
113 mt76_wcid_cleanup(&dev->mt76, &mvif->sta.wcid); in mt7603_remove_interface()
291 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_bss_info_changed() local
297 mt76_wr(dev, MT_BSSID0(mvif->idx), in mt7603_bss_info_changed()
299 mt76_wr(dev, MT_BSSID1(mvif->idx), in mt7603_bss_info_changed()
303 mt76_wr(dev, MT_BSSID0(mvif->idx), 0); in mt7603_bss_info_changed()
304 mt76_wr(dev, MT_BSSID1(mvif->idx), 0); in mt7603_bss_info_changed()
321 mt7603_beacon_set_timer(dev, mvif->idx, beacon_int); in mt7603_bss_info_changed()
334 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_sta_add() local
348 msta->vif = mvif; in mt7603_sta_add()
349 mt7603_wtbl_init(dev, idx, mvif->idx, sta->addr); in mt7603_sta_add()
378 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_sta_remove() local
384 mt7603_filter_tx(dev, mvif->idx, wcid->idx, true); in mt7603_sta_remove()
485 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_set_key() local
487 &mvif->sta; in mt7603_set_key()
687 struct mt7603_vif *mvif; in mt7603_tx() local
689 mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_tx()
690 wcid = &mvif->sta.wcid; in mt7603_tx()