Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dmain.c302 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_add_interface() local
310 mvif->bss_conf.mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7921_add_interface()
311 if (mvif->bss_conf.mt76.idx >= MT792x_MAX_INTERFACES) { in mt7921_add_interface()
316 mvif->bss_conf.mt76.omac_idx = mvif->bss_conf.mt76.idx; in mt7921_add_interface()
317 mvif->phy = phy; in mt7921_add_interface()
318 mvif->bss_conf.vif = mvif; in mt7921_add_interface()
319 mvif->bss_conf.mt76.band_idx = 0; in mt7921_add_interface()
320 mvif->bss_conf.mt76.wmm_idx = mvif->bss_conf.mt76.idx % MT76_CONNAC_MAX_WMM_SETS; in mt7921_add_interface()
323 &mvif->bss_conf.mt76, in mt7921_add_interface()
324 &mvif->sta.deflink.wcid, true); in mt7921_add_interface()
[all …]
H A Dmcu.c109 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mcu_set_ipv6_ns_filter() local
118 .bss_idx = mvif->bss_conf.mt76.idx, in mt7921_mcu_set_ipv6_ns_filter()
187 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7921_mcu_connection_loss_iter() local
190 if (mvif->idx != event->bss_idx) in mt7921_mcu_connection_loss_iter()
270 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mcu_rssi_monitor_iter() local
273 s32 rssi = le32_to_cpu(event->rssi[mvif->bss_conf.mt76.idx]); in mt7921_mcu_rssi_monitor_iter()
687 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_mcu_set_tx() local
703 .bss_idx = mvif->bss_conf.mt76.idx, in mt7921_mcu_set_tx()
705 .wmm_idx = mvif->bss_conf.mt76.wmm_idx, in mt7921_mcu_set_tx()
726 .bss_idx = mvif->bss_conf.mt76.idx, in mt7921_mcu_set_tx()
[all …]
H A Dmac.c646 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7921_vif_connect_iter() local
647 struct mt792x_dev *dev = mvif->phy->dev; in mt7921_vif_connect_iter()
654 &mvif->bss_conf.mt76, in mt7921_vif_connect_iter()
655 &mvif->sta.deflink.wcid, true); in mt7921_vif_connect_iter()
659 mt76_connac_mcu_uni_add_bss(dev->phy.mt76, vif, &mvif->sta.deflink.wcid, in mt7921_vif_connect_iter()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7925/
H A Dmain.c360 struct mt792x_vif *mvif = mconf->vif; in mt7925_mac_link_bss_add() local
380 mconf->mt76.link_idx = hweight16(mvif->valid_links); in mt7925_mac_link_bss_add()
382 if (mvif->phy->mt76->chandef.chan->band != NL80211_BAND_2GHZ) in mt7925_mac_link_bss_add()
388 mvif->phy->omac_mask |= BIT_ULL(mconf->mt76.omac_idx); in mt7925_mac_link_bss_add()
420 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt7925_add_interface() local
427 mvif->phy = phy; in mt7925_add_interface()
428 mvif->bss_conf.vif = mvif; in mt7925_add_interface()
429 mvif->sta.vif = mvif; in mt7925_add_interface()
430 mvif->deflink_id = IEEE80211_LINK_UNSPECIFIED; in mt7925_add_interface()
431 mvif->mlo_pm_state = MT792x_MLO_LINK_DISASSOC; in mt7925_add_interface()
[all …]
H A Dmcu.c127 struct ieee80211_vif *mvif = link_conf->vif; in mt7925_mcu_update_arp_filter() local
129 int i, len = min_t(int, mvif->cfg.arp_addr_cnt, in mt7925_mcu_update_arp_filter()
155 skb_put_data(skb, &mvif->cfg.arp_addr_list[i], sizeof(__be32)); in mt7925_mcu_update_arp_filter()
167 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7925_connac_mcu_set_wow_ctrl() local
179 .bss_idx = mvif->idx, in mt7925_connac_mcu_set_wow_ctrl()
223 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7925_mcu_set_wow_pattern() local
230 .bss_idx = mvif->idx, in mt7925_mcu_set_wow_pattern()
278 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7925_mcu_connection_loss_iter() local
281 if (mvif->idx != event->hdr.bss_idx) in mt7925_mcu_connection_loss_iter()
308 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7925_mcu_roc_iter() local
[all …]
H A Dmac.c735 struct mt76_vif_link *mvif; in mt7925_mac_write_txwi() local
744 mvif = mconf ? (struct mt76_vif_link *)&mconf->mt76 : NULL; in mt7925_mac_write_txwi()
746 if (mvif) { in mt7925_mac_write_txwi()
747 omac_idx = mvif->omac_idx; in mt7925_mac_write_txwi()
748 wmm_idx = mvif->wmm_idx; in mt7925_mac_write_txwi()
749 band_idx = mvif->band_idx; in mt7925_mac_write_txwi()
824 if (mvif) { in mt7925_mac_write_txwi()
825 if (mcast && mvif->mcast_rates_idx) in mt7925_mac_write_txwi()
826 idx = mvif->mcast_rates_idx; in mt7925_mac_write_txwi()
827 else if (beacon && mvif->beacon_rates_idx) in mt7925_mac_write_txwi()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dchannel.c8 mt76_alloc_mlink(struct mt76_dev *dev, struct mt76_vif_data *mvif) in mt76_alloc_mlink() argument
16 mlink->mvif = mvif; in mt76_alloc_mlink()
107 struct mt76_vif_data *mvif = mlink->mvif; in mt76_assign_vif_chanctx() local
125 mlink = mt76_alloc_mlink(dev, mvif); in mt76_assign_vif_chanctx()
142 rcu_assign_pointer(mvif->link[link_id], mlink); in mt76_assign_vif_chanctx()
158 struct mt76_vif_data *mvif = mlink->mvif; in mt76_unassign_vif_chanctx() local
177 rcu_assign_pointer(mvif->link[link_id], NULL); in mt76_unassign_vif_chanctx()
270 struct mt76_vif_data *mvif = mlink->mvif; in mt76_get_vif_phy_link() local
274 for (i = 0; i < ARRAY_SIZE(mvif->link); i++) { in mt76_get_vif_phy_link()
275 mlink = mt76_dereference(mvif->link[i], dev); in mt76_get_vif_phy_link()
[all …]
H A Dmt76_connac_mcu.c191 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt76_connac_mcu_set_vif_ps() local
199 .bss_idx = mvif->idx, in mt76_connac_mcu_set_vif_ps()
234 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt76_connac_mcu_beacon_loss_iter() local
237 if (mvif->idx != event->bss_idx) in mt76_connac_mcu_beacon_loss_iter()
275 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif_link *mvif, in __mt76_connac_mcu_alloc_sta_req() argument
279 .bss_idx = mvif->idx, in __mt76_connac_mcu_alloc_sta_req()
280 .muar_idx = wcid ? mvif->omac_idx : 0, in __mt76_connac_mcu_alloc_sta_req()
331 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt76_connac_mcu_bss_omac_tlv() local
332 u8 omac_idx = mvif->omac_idx; in mt76_connac_mcu_bss_omac_tlv()
364 omac->omac_idx = mvif->omac_idx; in mt76_connac_mcu_bss_omac_tlv()
[all …]
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()
141 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_update_beacon_iter() local
144 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_update_beacon_iter()
160 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_add_buffered_bc() local
164 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_add_buffered_bc()
176 data->tail[mvif->idx] = skb; in mt76x02_add_buffered_bc()
H A Dmt76x02_util.c243 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_sta_add() local
252 msta->vif = mvif; in mt76x02_sta_add()
256 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add()
283 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_vif_init() local
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 mt76_wcid_init(&mvif->group_wcid, 0); in mt76x02_vif_init()
293 rcu_assign_pointer(dev->mt76.wcid[MT_VIF_WCID(idx)], &mvif->group_wcid); in mt76x02_vif_init()
344 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_remove_interface() local
[all …]
H A Dmt792x_core.c105 struct mt792x_vif *mvif; in mt792x_tx() local
107 mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_tx()
108 wcid = &mvif->sta.deflink.wcid; in mt792x_tx()
199 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_remove_interface() local
206 mt792x_mac_link_bss_remove(dev, mconf, &mvif->sta.deflink); in mt792x_remove_interface()
216 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_conf_tx() local
220 mvif->bss_conf.queue_params[queue] = *params; in mt792x_conf_tx()
247 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_get_tsf() local
249 u8 omac_idx = mvif->bss_conf.mt76.omac_idx; in mt792x_get_tsf()
273 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_set_tsf() local
[all …]
H A Dmt792x.h265 mt792x_vif_to_link(struct mt792x_vif *mvif, u8 link_id) in mt792x_vif_to_link() argument
270 vif = container_of((void *)mvif, struct ieee80211_vif, drv_priv); in mt792x_vif_to_link()
274 return &mvif->bss_conf; in mt792x_vif_to_link()
276 bss_conf = rcu_dereference_protected(mvif->link_conf[link_id], in mt792x_vif_to_link()
277 lockdep_is_held(&mvif->phy->dev->mt76.mutex)); in mt792x_vif_to_link()
279 return bss_conf ? bss_conf : &mvif->bss_conf; in mt792x_vif_to_link()
301 struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; in mt792x_link_conf_to_mconf() local
303 return mt792x_vif_to_link(mvif, link_conf->link_id); in mt792x_link_conf_to_mconf()
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 Dscan.c40 struct mt76_vif_link *mvif = dev->scan.mlink; in mt76_scan_send_probe() local
74 mt76_tx(phy, NULL, mvif->wcid, skb); in mt76_scan_send_probe()
H A Dmt76_connac_mac.c303 struct mt76_vif_link *mvif; in mt76_connac2_mac_tx_rate_val() local
308 mvif = mt76_vif_conf_link(mphy->dev, conf->vif, conf); in mt76_connac2_mac_tx_rate_val()
309 chandef = mvif->ctx ? &mvif->ctx->def : &mphy->chandef; in mt76_connac2_mac_tx_rate_val()
514 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt76_connac2_mac_write_txwi() local
516 omac_idx = mvif->omac_idx; in mt76_connac2_mac_write_txwi()
517 wmm_idx = mvif->wmm_idx; in mt76_connac2_mac_write_txwi()
518 band_idx = mvif->band_idx; in mt76_connac2_mac_write_txwi()
H A Dmt76.h843 struct mt76_vif_data *mvif; member
2080 mt76_vif_init(struct ieee80211_vif *vif, struct mt76_vif_data *mvif) in mt76_vif_init() argument
2084 mlink->mvif = mvif; in mt76_vif_init()
2085 rcu_assign_pointer(mvif->link[0], mlink); in mt76_vif_init()
2095 struct mt76_vif_data *mvif = mlink->mvif; in mt76_vif_link() local
2100 return mt76_dereference(mvif->link[link_id], dev); in mt76_vif_link()
2108 struct mt76_vif_data *mvif = mlink->mvif; in mt76_vif_conf_link() local
2113 return mt76_dereference(mvif->link[link_conf->link_id], dev); in mt76_vif_conf_link()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dmain.c38 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 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
[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()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c187 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()
[all …]
H A Dmcu.c662 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_muar_config() local
663 u32 idx = mvif->mt76.omac_idx - REPEATER_BSSID_START; in mt7915_mcu_muar_config()
698 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_add_bss_info() local
702 if (mvif->mt76.omac_idx >= REPEATER_BSSID_START) { in mt7915_mcu_add_bss_info()
707 skb = __mt76_connac_mcu_alloc_sta_req(&dev->mt76, &mvif->mt76, NULL, in mt7915_mcu_add_bss_info()
717 mvif->sta.wcid.idx, enable); in mt7915_mcu_add_bss_info()
731 if (mvif->mt76.omac_idx >= EXT_BSSID_START && in mt7915_mcu_add_bss_info()
732 mvif->mt76.omac_idx < REPEATER_BSSID_START) in mt7915_mcu_add_bss_info()
733 mt76_connac_mcu_bss_ext_tlv(skb, &mvif->mt76); in mt7915_mcu_add_bss_info()
746 struct mt7915_vif *mvif = msta->vif; in mt7915_mcu_add_tx_ba() local
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmain.c182 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_add_interface() local
197 mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7615_add_interface()
198 if (mvif->mt76.idx >= MT7615_MAX_INTERFACES) { in mt7615_add_interface()
208 mvif->mt76.omac_idx = idx; in mt7615_add_interface()
210 mvif->mt76.band_idx = ext_phy; in mt7615_add_interface()
211 mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; in mt7615_add_interface()
212 mvif->mt76.wcid = &mvif->sta.wcid; in mt7615_add_interface()
214 mvif->mt76.wmm_idx += 2; in mt7615_add_interface()
216 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7615_add_interface()
217 dev->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7615_add_interface()
[all …]
H A Dmcu.c594 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_muar_config() local
595 u32 idx = mvif->mt76.omac_idx - REPEATER_BSSID_START; in mt7615_mcu_muar_config()
630 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_dev() local
649 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_dev()
650 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
658 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
662 if (mvif->mt76.omac_idx >= REPEATER_BSSID_START) in mt7615_mcu_add_dev()
675 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_beacon_offload() local
695 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_beacon_offload()
698 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_beacon_offload()
[all …]
H A Dpci_mac.c54 struct mt76_vif_link *mvif = (struct mt76_vif_link *)vif->drv_priv; in mt7615_write_fw_txp() local
56 txp->bss_idx = mvif->idx; in mt7615_write_fw_txp()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmain.c294 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_vif_link_add() local
374 mvif->mt76.deflink_id == IEEE80211_LINK_UNSPECIFIED) in mt7996_vif_link_add()
375 mvif->mt76.deflink_id = link_conf->link_id; in mt7996_vif_link_add()
385 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_vif_link_remove() local
407 mvif->mt76.deflink_id == link_conf->link_id) { in mt7996_vif_link_remove()
411 mvif->mt76.deflink_id = IEEE80211_LINK_UNSPECIFIED; in mt7996_vif_link_remove()
414 mvif->mt76.deflink_id = link_id; in mt7996_vif_link_remove()
482 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_add_interface() local
504 mt76_vif_init(vif, &mvif->mt76); in mt7996_add_interface()
507 mvif->mt76.deflink_id = IEEE80211_LINK_UNSPECIFIED; in mt7996_add_interface()
[all …]
H A Dmac.c64 struct mt7996_vif *mvif; in mt7996_rx_get_wcid() local
83 mvif = msta->vif; in mt7996_rx_get_wcid()
84 for (i = 0; i < ARRAY_SIZE(mvif->mt76.link); i++) { in mt7996_rx_get_wcid()
87 mlink = rcu_dereference(mvif->mt76.link[i]); in mt7996_rx_get_wcid()
909 struct mt7996_vif *mvif; in mt7996_mac_write_txwi() local
924 mvif = vif ? (struct mt7996_vif *)vif->drv_priv : NULL; in mt7996_mac_write_txwi()
925 if (mvif) { in mt7996_mac_write_txwi()
927 mlink = rcu_dereference(mvif->mt76.offchannel_link); in mt7996_mac_write_txwi()
929 mlink = rcu_dereference(mvif->mt76.link[link_id]); in mt7996_mac_write_txwi()
1053 struct mt7996_vif *mvif = vif ? (struct mt7996_vif *)vif->drv_priv : NULL; in mt7996_tx_prepare_skb() local
[all …]

12