Home
last modified time | relevance | path

Searched refs:mvif (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c190 mvif->mt76.omac_idx = idx; in mt7996_add_interface()
191 mvif->phy = phy; in mt7996_add_interface()
206 mvif->sta.wcid.idx = idx; in mt7996_add_interface()
221 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7996_add_interface()
317 &mvif->sta; in mt7996_set_key()
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()
664 msta->vif = mvif; in mt7996_mac_sta_add()
727 wcid = &mvif->sta.wcid; in mt7996_tx()
[all …]
H A Dmcu.c615 u8 idx = mvif->mcast_rates_idx ? in mt7996_mcu_bss_bmc_tlv()
616 mvif->mcast_rates_idx : mvif->basic_rates_idx; in mt7996_mcu_bss_bmc_tlv()
664 sec->cipher = mvif->cipher; in mt7996_mcu_bss_sec_tlv()
792 bss->omac_idx = mvif->omac_idx; in mt7996_mcu_bss_basic_tlv()
793 bss->band_idx = mvif->band_idx; in mt7996_mcu_bss_basic_tlv()
794 bss->wmm_idx = mvif->wmm_idx; in mt7996_mcu_bss_basic_tlv()
798 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt7996_mcu_bss_basic_tlv()
821 .bss_idx = mvif->idx, in __mt7996_mcu_alloc_bss_req()
2688 .bss_idx = mvif->mt76.idx, in mt7996_mcu_set_tx()
3608 .bss = mvif->mt76.idx, in mt7996_mcu_twt_agrt_update()
[all …]
H A Dmac.c843 struct mt76_vif *mvif; in mt7996_mac_write_txwi() local
852 if (mvif) { in mt7996_mac_write_txwi()
853 omac_idx = mvif->omac_idx; in mt7996_mac_write_txwi()
854 wmm_idx = mvif->wmm_idx; in mt7996_mac_write_txwi()
855 band_idx = mvif->band_idx; in mt7996_mac_write_txwi()
918 if (mvif) { in mt7996_mac_write_txwi()
919 if (mcast && mvif->mcast_rates_idx) in mt7996_mac_write_txwi()
920 idx = mvif->mcast_rates_idx; in mt7996_mac_write_txwi()
922 idx = mvif->beacon_rates_idx; in mt7996_mac_write_txwi()
924 idx = mvif->basic_rates_idx; in mt7996_mac_write_txwi()
[all …]
H A Dmt7996.h326 u64 __mt7996_get_tsf(struct ieee80211_hw *hw, struct mt7996_vif *mvif);
347 struct mt7996_vif *mvif,
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmain.c301 mvif->mt76.omac_idx = mvif->mt76.idx; in mt7921_add_interface()
302 mvif->phy = phy; in mt7921_add_interface()
304 mvif->mt76.wmm_idx = mvif->mt76.idx % MT76_CONNAC_MAX_WMM_SETS; in mt7921_add_interface()
318 mvif->sta.wcid.phy_idx = mvif->mt76.band_idx; in mt7921_add_interface()
478 &mvif->sta; in mt7921_set_key()
501 if (!mvif->wep_sta) in mt7921_set_key()
720 msta->vif = mvif; in mt7921_mac_sta_add()
732 mvif->wep_sta = msta; in mt7921_mac_sta_add()
1274 mt76_connac_mcu_uni_set_chctx(mvif->phy->mt76, &mvif->mt76, ctx); in mt7921_ctx_iter()
1301 mt7921_set_roc(mvif->phy, mvif, mvif->mt76.ctx->def.chan, duration, in mt7921_mgd_prepare_tx()
[all …]
H A Dmcu.c108 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_ipv6_ns_filter()
180 if (mvif->idx != event->bss_idx) in mt7921_mcu_connection_loss_iter()
503 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx()
505 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx()
526 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx()
772 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_ps()
807 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_bcnft()
840 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm()
849 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm()
961 .band_idx = mvif->band_idx, in mt7921_mcu_set_sniffer()
[all …]
H A Dmac.c637 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_vif_connect_iter() local
638 struct mt792x_dev *dev = mvif->phy->dev; in mt7921_vif_connect_iter()
644 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()
648 mt76_connac_mcu_uni_add_bss(dev->phy.mt76, vif, &mvif->sta.wcid, in mt7921_vif_connect_iter()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmain.c53 mt76_wr(dev, MT_MAC_ADDR0(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()
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()
361 msta->vif = mvif; in mt7603_sta_add()
494 &mvif->sta; in mt7603_set_key()
694 struct mt7603_vif *mvif; in mt7603_tx() local
[all …]
H A Dbeacon.c34 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_update_beacon_iter() local
36 u32 om_idx = mvif->idx; in mt7603_update_beacon_iter()
39 if (!(mdev->beacon_mask & BIT(mvif->idx))) in mt7603_update_beacon_iter()
70 MT_TXQ_BEACON, skb, &mvif->sta.wcid, NULL); in mt7603_update_beacon_iter()
81 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_buffered_bc() local
85 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_add_buffered_bc()
97 data->tail[mvif->idx] = skb; in mt7603_add_buffered_bc()
98 data->count[mvif->idx]++; in mt7603_add_buffered_bc()
163 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_pre_tbtt_tasklet() local
165 mt76_tx_queue_skb(dev, q, MT_TXQ_CAB, skb, &mvif->sta.wcid, NULL); in mt7603_pre_tbtt_tasklet()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmain.c233 mvif->mt76.omac_idx = idx; in mt7915_add_interface()
234 mvif->phy = phy; in mt7915_add_interface()
239 mvif->mt76.wmm_idx += 2; in mt7915_add_interface()
252 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
267 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7915_add_interface()
272 memset(&mvif->cap, -1, sizeof(mvif->cap)); in mt7915_add_interface()
371 &mvif->sta; in mt7915_set_key()
742 msta->vif = mvif; in mt7915_mac_sta_add()
802 struct mt7915_vif *mvif; in mt7915_tx() local
805 wcid = &mvif->sta.wcid; in mt7915_tx()
[all …]
H A Dmcu.c750 if (mvif->cap.he_ldpc && in mt7915_mcu_sta_he_tlv()
873 mvif->cap.vht_mu_ebfer || in mt7915_mcu_sta_muru_tlv()
874 mvif->cap.vht_mu_ebfee; in mt7915_mcu_sta_muru_tlv()
1008 mvif->cap.vht_ldpc); in mt7915_mcu_sta_wtbl_tlv()
1031 return mvif->cap.he_su_ebfee && in mt7915_is_ebf_supported()
1034 return mvif->cap.he_su_ebfer && in mt7915_is_ebf_supported()
1540 if (mvif->cap.ht_ldpc && in mt7915_mcu_sta_rate_ctrl_tlv()
1566 if (mvif->cap.vht_ldpc && in mt7915_mcu_sta_rate_ctrl_tlv()
3505 u8 omac = mvif->mt76.omac_idx; in mt7915_mcu_set_obss_spr_siga()
3630 .band = mvif->mt76.band_idx, in mt7915_mcu_get_rx_rate()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmain.c208 mvif->mt76.omac_idx = idx; in mt7615_add_interface()
210 mvif->mt76.band_idx = ext_phy; in mt7615_add_interface()
213 mvif->mt76.wmm_idx += 2; in mt7615_add_interface()
226 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
227 mvif->sta.wcid.phy_idx = mvif->mt76.band_idx; in mt7615_add_interface()
228 mvif->sta.wcid.hw_key_idx = -1; in mt7615_add_interface()
229 mt76_wcid_init(&mvif->sta.wcid); in mt7615_add_interface()
351 &mvif->sta; in mt7615_set_key()
661 msta->vif = mvif; in mt7615_mac_sta_add()
779 struct mt7615_vif *mvif; in mt7615_tx() local
[all …]
H A Dmcu.c645 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_dev()
646 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
654 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
691 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_beacon_offload()
694 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_beacon_offload()
859 if (mvif->sta_added) in mt7615_mcu_wtbl_sta_add()
862 mvif->sta_added = true; in mt7615_mcu_wtbl_sta_add()
1064 .bss_idx = mvif->mt76.idx, in mt7615_mcu_uni_add_beacon_offload()
2527 .bss_idx = mvif->mt76.idx, in mt7615_mcu_set_bss_pm()
2536 .bss_idx = mvif->mt76.idx, in mt7615_mcu_set_bss_pm()
[all …]
H A Dpci_mac.c51 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7615_write_fw_txp() local
53 txp->bss_idx = mvif->idx; in mt7615_write_fw_txp()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_beacon.c72 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_mac_set_beacon_enable() local
82 dev->mt76.beacon_mask |= BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
84 dev->mt76.beacon_mask &= ~BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
140 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_update_beacon_iter() local
143 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_update_beacon_iter()
159 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_add_buffered_bc() local
163 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_add_buffered_bc()
175 data->tail[mvif->idx] = skb; in mt76x02_add_buffered_bc()
H A Dmt76x02_util.c252 msta->vif = mvif; in mt76x02_sta_add()
256 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add()
286 memset(mvif, 0, sizeof(*mvif)); in mt76x02_vif_init()
288 mvif->idx = idx; in mt76x02_vif_init()
289 mvif->group_wcid.idx = MT_VIF_WCID(idx); in mt76x02_vif_init()
290 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
291 mt76_wcid_init(&mvif->group_wcid); in mt76x02_vif_init()
347 dev->mt76.vif_mask &= ~BIT_ULL(mvif->idx); in mt76x02_remove_interface()
349 mt76_wcid_cleanup(&dev->mt76, &mvif->group_wcid); in mt76x02_remove_interface()
455 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key()
[all …]
H A Dmt76_connac_mcu.c198 .bss_idx = mvif->idx, in mt76_connac_mcu_set_vif_ps()
278 .bss_idx = mvif->idx, in __mt76_connac_mcu_alloc_sta_req()
1184 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt76_connac_mcu_uni_add_dev()
1546 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt76_connac_mcu_uni_add_bss()
1655 mvif->scan_seq_num = (mvif->scan_seq_num + 1) & 0x7f; in mt76_connac_mcu_hw_scan()
1659 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_hw_scan()
1783 mvif->scan_seq_num = (mvif->scan_seq_num + 1) & 0x7f; in mt76_connac_mcu_sched_scan_req()
1787 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_sched_scan_req()
2344 .bss_idx = mvif->idx, in mt76_connac_mcu_set_p2p_oppps()
2410 .bss_idx = mvif->idx, in mt76_connac_mcu_update_gtk_rekey()
[all …]
H A Dmt792x_core.c72 struct mt792x_vif *mvif; in mt792x_tx() local
74 mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_tx()
75 wcid = &mvif->sta.wcid; in mt792x_tx()
98 struct mt792x_sta *msta = &mvif->sta; in mt792x_remove_interface()
109 dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); in mt792x_remove_interface()
130 mvif->queue_params[queue] = *params; in mt792x_conf_tx()
159 u8 omac_idx = mvif->mt76.omac_idx; in mt792x_get_tsf()
185 u8 omac_idx = mvif->mt76.omac_idx; in mt792x_set_tsf()
246 mvif->mt76.ctx = ctx; in mt792x_assign_vif_chanctx()
262 mvif->mt76.ctx = NULL; in mt792x_unassign_vif_chanctx()
[all …]
H A Dmt76x02_txrx.c25 struct mt76x02_vif *mvif; in mt76x02_tx() local
27 mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_tx()
28 wcid = &mvif->group_wcid; in mt76x02_tx()
H A Dmt76_connac_mac.c296 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac2_mac_tx_rate_val() local
297 struct cfg80211_chan_def *chandef = mvif->ctx ? in mt76_connac2_mac_tx_rate_val()
298 &mvif->ctx->def : &mphy->chandef; in mt76_connac2_mac_tx_rate_val()
487 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac2_mac_write_txwi() local
489 omac_idx = mvif->omac_idx; in mt76_connac2_mac_write_txwi()
490 wmm_idx = mvif->wmm_idx; in mt76_connac2_mac_write_txwi()
491 band_idx = mvif->band_idx; in mt76_connac2_mac_write_txwi()
H A Dmt792x_mac.c167 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_mac_rssi_iter() local
176 ewma_rssi_add(&mvif->rssi, -status->signal); in mt792x_mac_rssi_iter()
H A Dmt76_connac_mcu.h1771 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif,
1774 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() argument
1777 return __mt76_connac_mcu_alloc_sta_req(dev, mvif, wcid, in mt76_connac_mcu_alloc_sta_req()
1831 int mt76_connac_mcu_sta_ba(struct mt76_dev *dev, struct mt76_vif *mvif,
1902 void mt76_connac_mcu_bss_ext_tlv(struct sk_buff *skb, struct mt76_vif *mvif);
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmain.c48 struct mt76_vif *mvif = (struct mt76_vif *) vif->drv_priv; in mt7601u_add_interface() local
57 mvif->idx = idx; in mt7601u_add_interface()
65 mvif->group_wcid.idx = wcid; in mt7601u_add_interface()
66 mvif->group_wcid.hw_key_idx = -1; in mt7601u_add_interface()
75 struct mt76_vif *mvif = (struct mt76_vif *) vif->drv_priv; in mt7601u_remove_interface() local
76 unsigned int wcid = mvif->group_wcid.idx; in mt7601u_remove_interface()
214 struct mt76_vif *mvif = (struct mt76_vif *) vif->drv_priv; in mt7601u_sta_add() local
228 mt7601u_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt7601u_sta_add()
297 struct mt76_vif *mvif = (struct mt76_vif *) vif->drv_priv; in mt7601u_set_key() local
299 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt7601u_set_key()
[all …]
H A Dtx.c215 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7601u_tx() local
217 wcid = &mvif->group_wcid; in mt7601u_tx()
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dmac.c409 struct carl9170_vif_info *mvif; in carl9170_set_beacon_timers() local
410 mvif = (void *) vif->drv_priv; in carl9170_set_beacon_timers()
412 if (mvif->enable_beacon && !WARN_ON(!ar->beacon_enabled)) { in carl9170_set_beacon_timers()

12