Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c171 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_init_bitrate_mask() local
174 for (i = 0; i < ARRAY_SIZE(mvif->bitrate_mask.control); i++) { in mt7915_init_bitrate_mask()
175 mvif->bitrate_mask.control[i].legacy = GENMASK(31, 0); in mt7915_init_bitrate_mask()
176 memset(mvif->bitrate_mask.control[i].ht_mcs, GENMASK(7, 0), in mt7915_init_bitrate_mask()
177 sizeof(mvif->bitrate_mask.control[i].ht_mcs)); in mt7915_init_bitrate_mask()
178 memset(mvif->bitrate_mask.control[i].vht_mcs, GENMASK(15, 0), in mt7915_init_bitrate_mask()
179 sizeof(mvif->bitrate_mask.control[i].vht_mcs)); in mt7915_init_bitrate_mask()
180 memset(mvif->bitrate_mask.control[i].he_mcs, GENMASK(15, 0), in mt7915_init_bitrate_mask()
181 sizeof(mvif->bitrate_mask.control[i].he_mcs)); in mt7915_init_bitrate_mask()
188 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_add_interface() local
[all …]
Dmcu.c152 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_get_phy_mode() local
153 enum nl80211_band band = mvif->phy->mt76->chandef.chan->band; in mt7915_get_phy_mode()
166 sband = mvif->phy->mt76->hw->wiphy->bands[band]; in mt7915_get_phy_mode()
717 mt7915_mcu_alloc_sta_req(struct mt7915_dev *dev, struct mt7915_vif *mvif, in mt7915_mcu_alloc_sta_req() argument
721 .bss_idx = mvif->idx, in mt7915_mcu_alloc_sta_req()
724 .muar_idx = msta ? mvif->omac_idx : 0, in mt7915_mcu_alloc_sta_req()
821 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_bss_basic_tlv() local
823 u16 wlan_idx = mvif->sta.wcid.idx; in mt7915_mcu_bss_basic_tlv()
864 bss->wmm_idx = mvif->wmm_idx; in mt7915_mcu_bss_basic_tlv()
882 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_bss_omac_tlv() local
[all …]
Dmac.c916 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mac_write_txwi() local
918 omac_idx = mvif->omac_idx; in mt7915_mac_write_txwi()
919 wmm_idx = mvif->wmm_idx; in mt7915_mac_write_txwi()
1041 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_tx_prepare_skb() local
1043 txp->bss_idx = mvif->idx; in mt7915_tx_prepare_skb()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c238 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_add_interface() local
250 mvif->mt76.idx = ffs(~dev->mt76.vif_mask) - 1; in mt7921_add_interface()
251 if (mvif->mt76.idx >= MT7921_MAX_INTERFACES) { in mt7921_add_interface()
256 mvif->mt76.omac_idx = mvif->mt76.idx; in mt7921_add_interface()
257 mvif->phy = phy; in mt7921_add_interface()
258 mvif->mt76.band_idx = 0; in mt7921_add_interface()
259 mvif->mt76.wmm_idx = mvif->mt76.idx % MT7921_MAX_WMM_SETS; in mt7921_add_interface()
261 ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, in mt7921_add_interface()
266 dev->mt76.vif_mask |= BIT(mvif->mt76.idx); in mt7921_add_interface()
267 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7921_add_interface()
[all …]
Dmcu.c419 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7921_mcu_connection_loss_iter() local
422 if (mvif->idx != event->bss_idx) in mt7921_mcu_connection_loss_iter()
675 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_add_key() local
679 skb = mt76_connac_mcu_alloc_sta_req(&dev->mt76, &mvif->mt76, in mt7921_mcu_add_key()
1043 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_set_tx() local
1047 struct ieee80211_tx_queue_params *q = &mvif->queue_params[ac]; in mt7921_mcu_set_tx()
1051 e->queue = ac + mvif->mt76.wmm_idx * MT7921_MAX_WMM_SETS; in mt7921_mcu_set_tx()
1161 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_uni_bss_ps() local
1180 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_ps()
1199 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_uni_bss_bcnft() local
[all …]
Dmac.c283 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mac_rssi_iter() local
292 ewma_rssi_add(&mvif->rssi, -status->signal); in mt7921_mac_rssi_iter()
765 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7921_mac_write_txwi() local
767 omac_idx = mvif->omac_idx; in mt7921_mac_write_txwi()
768 wmm_idx = mvif->wmm_idx; in mt7921_mac_write_txwi()
1271 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_vif_connect_iter() local
1272 struct mt7921_dev *dev = mvif->phy->dev; in mt7921_vif_connect_iter()
1277 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c38 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_interface() local
47 mvif->idx = ffs(~dev->mt76.vif_mask) - 1; 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(mvif->idx); in mt7603_add_interface()
69 INIT_LIST_HEAD(&mvif->sta.poll_list); in mt7603_add_interface()
[all …]
Dbeacon.c17 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_update_beacon_iter() local
20 if (!(mdev->beacon_mask & BIT(mvif->idx))) in mt7603_update_beacon_iter()
28 &mvif->sta.wcid, NULL); in mt7603_update_beacon_iter()
32 FIELD_PREP(MT_DMA_FQCR0_TARGET_WCID, mvif->sta.wcid.idx) | in mt7603_update_beacon_iter()
49 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_buffered_bc() local
53 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_add_buffered_bc()
65 data->tail[mvif->idx] = skb; in mt7603_add_buffered_bc()
66 data->count[mvif->idx]++; in mt7603_add_buffered_bc()
124 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_pre_tbtt_tasklet() local
126 mt76_tx_queue_skb(dev, q, skb, &mvif->sta.wcid, NULL); in mt7603_pre_tbtt_tasklet()
Dmac.c916 struct mt7603_vif *mvif; in mt7603_mac_write_txwi() local
928 mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_mac_write_txwi()
929 vif_idx = mvif->idx; in mt7603_mac_write_txwi()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c185 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_add_interface() local
200 mvif->mt76.idx = ffs(~dev->mt76.vif_mask) - 1; in mt7615_add_interface()
201 if (mvif->mt76.idx >= MT7615_MAX_INTERFACES) { in mt7615_add_interface()
211 mvif->mt76.omac_idx = idx; in mt7615_add_interface()
213 mvif->mt76.band_idx = ext_phy; in mt7615_add_interface()
215 mvif->mt76.wmm_idx = ext_phy * (MT7615_MAX_WMM_SETS / 2) + in mt7615_add_interface()
216 mvif->mt76.idx % (MT7615_MAX_WMM_SETS / 2); in mt7615_add_interface()
218 mvif->mt76.wmm_idx = mvif->mt76.idx % MT7615_MAX_WMM_SETS; in mt7615_add_interface()
220 dev->mt76.vif_mask |= BIT(mvif->mt76.idx); in mt7615_add_interface()
221 dev->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7615_add_interface()
[all …]
Dmcu.c633 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_muar_config() local
634 u32 idx = mvif->mt76.omac_idx - REPEATER_BSSID_START; in mt7615_mcu_muar_config()
669 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_dev() local
688 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_dev()
689 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
697 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
701 if (mvif->mt76.omac_idx >= REPEATER_BSSID_START) in mt7615_mcu_add_dev()
714 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_beacon_offload() local
734 .omac_idx = mvif->mt76.omac_idx, in mt7615_mcu_add_beacon_offload()
737 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_beacon_offload()
[all …]
Dpci_mac.c119 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7615_write_fw_txp() local
121 txp->bss_idx = mvif->idx; in mt7615_write_fw_txp()
Dmac.c630 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7615_mac_write_txwi() local
632 omac_idx = mvif->omac_idx; in mt7615_mac_write_txwi()
633 wmm_idx = mvif->wmm_idx; in mt7615_mac_write_txwi()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/
Dmt76x02_beacon.c69 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_mac_set_beacon_enable() local
78 dev->mt76.beacon_mask |= BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
80 dev->mt76.beacon_mask &= ~BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
136 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_update_beacon_iter() local
139 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_update_beacon_iter()
155 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_add_buffered_bc() local
159 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_add_buffered_bc()
171 data->tail[mvif->idx] = skb; in mt76x02_add_buffered_bc()
Dmt76_connac_mcu.c169 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_set_vif_ps() local
177 .bss_idx = mvif->idx, in mt76_connac_mcu_set_vif_ps()
212 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_beacon_loss_iter() local
215 if (mvif->idx != event->bss_idx) in mt76_connac_mcu_beacon_loss_iter()
254 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() argument
258 .bss_idx = mvif->idx, in mt76_connac_mcu_alloc_sta_req()
259 .muar_idx = wcid ? mvif->omac_idx : 0, in mt76_connac_mcu_alloc_sta_req()
426 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_sta_update_hdr_trans() local
431 skb = mt76_connac_mcu_alloc_sta_req(dev, mvif, wcid); in mt76_connac_mcu_sta_update_hdr_trans()
455 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_wtbl_generic_tlv() local
[all …]
Dmt76x02_util.c242 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_sta_add() local
251 msta->vif = mvif; in mt76x02_sta_add()
255 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add()
282 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_vif_init() local
285 memset(mvif, 0, sizeof(*mvif)); in mt76x02_vif_init()
287 mvif->idx = idx; in mt76x02_vif_init()
288 mvif->group_wcid.idx = MT_VIF_WCID(idx); in mt76x02_vif_init()
289 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
291 mtxq->wcid = &mvif->group_wcid; in mt76x02_vif_init()
341 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_remove_interface() local
[all …]
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()
Dmt76x02_mmio.c60 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_pre_tbtt_tasklet() local
62 mt76_tx_queue_skb(dev, q, skb, &mvif->group_wcid, NULL); in mt76x02_pre_tbtt_tasklet()
Dmt76_connac_mcu.h999 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif,
1048 int mt76_connac_mcu_sta_ba(struct mt76_dev *dev, struct mt76_vif *mvif,
/Linux-v5.15/drivers/net/wireless/mediatek/mt7601u/
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 …]
Dtx.c215 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7601u_tx() local
217 wcid = &mvif->group_wcid; in mt7601u_tx()
/Linux-v5.15/drivers/net/wireless/ath/carl9170/
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()