Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c119 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_add_interface() local
128 mvif->idx = ffs(~phy->mt76->vif_mask) - 1; in mt7915_add_interface()
129 if (mvif->idx >= MT7915_MAX_INTERFACES) { in mt7915_add_interface()
139 mvif->omac_idx = idx; in mt7915_add_interface()
140 mvif->phy = phy; in mt7915_add_interface()
141 mvif->band_idx = ext_phy; in mt7915_add_interface()
144 mvif->wmm_idx = ext_phy * (MT7915_MAX_WMM_SETS / 2) + in mt7915_add_interface()
145 mvif->idx % (MT7915_MAX_WMM_SETS / 2); in mt7915_add_interface()
147 mvif->wmm_idx = mvif->idx % MT7915_MAX_WMM_SETS; in mt7915_add_interface()
153 phy->mt76->vif_mask |= BIT(mvif->idx); in mt7915_add_interface()
[all …]
Dmcu.c168 struct mt7915_vif *mvif; in mt7915_get_phy_mode() local
170 mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_get_phy_mode()
171 phy = mvif->band_idx ? mt7915_ext_phy(dev) : &dev->phy; in mt7915_get_phy_mode()
627 mt7915_mcu_alloc_sta_req(struct mt7915_dev *dev, struct mt7915_vif *mvif, in mt7915_mcu_alloc_sta_req() argument
631 .bss_idx = mvif->idx, in mt7915_mcu_alloc_sta_req()
634 .muar_idx = msta && msta->wcid.sta ? mvif->omac_idx : 0xe, in mt7915_mcu_alloc_sta_req()
731 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_bss_basic_tlv() local
735 u16 wlan_idx = mvif->sta.wcid.idx; in mt7915_mcu_bss_basic_tlv()
779 bss->wmm_idx = mvif->wmm_idx; in mt7915_mcu_bss_basic_tlv()
788 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_bss_omac_tlv() local
[all …]
Dmac.c583 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mac_write_txwi() local
585 omac_idx = mvif->omac_idx; in mt7915_mac_write_txwi()
586 wmm_idx = mvif->wmm_idx; in mt7915_mac_write_txwi()
752 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_tx_prepare_skb() local
754 txp->bss_idx = mvif->idx; in mt7915_tx_prepare_skb()
/kernel/linux/linux-5.10/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->mphy.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->mphy.vif_mask |= BIT(mvif->idx); in mt7603_add_interface()
69 INIT_LIST_HEAD(&mvif->sta.poll_list); in mt7603_add_interface()
[all …]
Dbeacon.c16 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_update_beacon_iter() local
19 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_update_beacon_iter()
26 mt76_tx_queue_skb(dev, MT_TXQ_BEACON, skb, &mvif->sta.wcid, NULL); in mt7603_update_beacon_iter()
30 FIELD_PREP(MT_DMA_FQCR0_TARGET_WCID, mvif->sta.wcid.idx) | in mt7603_update_beacon_iter()
47 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_buffered_bc() local
51 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_add_buffered_bc()
63 data->tail[mvif->idx] = skb; in mt7603_add_buffered_bc()
64 data->count[mvif->idx]++; in mt7603_add_buffered_bc()
121 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_pre_tbtt_tasklet() local
123 mt76_tx_queue_skb(dev, MT_TXQ_CAB, skb, &mvif->sta.wcid, NULL); in mt7603_pre_tbtt_tasklet()
Dmac.c900 struct mt7603_vif *mvif; in mt7603_mac_write_txwi() local
912 mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_mac_write_txwi()
913 vif_idx = mvif->idx; in mt7603_mac_write_txwi()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c154 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_add_interface() local
169 mvif->idx = ffs(~dev->mphy.vif_mask) - 1; in mt7615_add_interface()
170 if (mvif->idx >= MT7615_MAX_INTERFACES) { in mt7615_add_interface()
180 mvif->omac_idx = idx; in mt7615_add_interface()
182 mvif->band_idx = ext_phy; in mt7615_add_interface()
184 mvif->wmm_idx = ext_phy * (MT7615_MAX_WMM_SETS / 2) + in mt7615_add_interface()
185 mvif->idx % (MT7615_MAX_WMM_SETS / 2); in mt7615_add_interface()
187 mvif->wmm_idx = mvif->idx % MT7615_MAX_WMM_SETS; in mt7615_add_interface()
189 dev->mphy.vif_mask |= BIT(mvif->idx); in mt7615_add_interface()
190 dev->omac_mask |= BIT(mvif->omac_idx); in mt7615_add_interface()
[all …]
Dmcu.c544 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_beacon_loss_iter() local
547 if (mvif->idx != event->bss_idx) in mt7615_mcu_beacon_loss_iter()
664 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_dev() local
682 .omac_idx = mvif->omac_idx, in mt7615_mcu_add_dev()
683 .band_idx = mvif->band_idx, in mt7615_mcu_add_dev()
691 .band_idx = mvif->band_idx, in mt7615_mcu_add_dev()
705 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_beacon_offload() local
725 .omac_idx = mvif->omac_idx, in mt7615_mcu_add_beacon_offload()
728 .band_idx = mvif->band_idx, in mt7615_mcu_add_beacon_offload()
742 if (mvif->band_idx) { in mt7615_mcu_add_beacon_offload()
[all …]
Dpci_mac.c121 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_write_fw_txp() local
123 txp->bss_idx = mvif->idx; in mt7615_write_fw_txp()
Dmac.c547 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mac_write_txwi() local
549 omac_idx = mvif->omac_idx; in mt7615_mac_write_txwi()
550 wmm_idx = mvif->wmm_idx; in mt7615_mac_write_txwi()
/kernel/linux/linux-5.10/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()
Dmt76x02_util.c247 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_sta_add() local
256 msta->vif = mvif; in mt76x02_sta_add()
260 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add()
287 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_vif_init() local
290 memset(mvif, 0, sizeof(*mvif)); in mt76x02_vif_init()
292 mvif->idx = idx; in mt76x02_vif_init()
293 mvif->group_wcid.idx = MT_VIF_WCID(idx); in mt76x02_vif_init()
294 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
296 mtxq->wcid = &mvif->group_wcid; in mt76x02_vif_init()
346 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.c59 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_pre_tbtt_tasklet() local
61 mt76_tx_queue_skb(dev, MT_TXQ_PSD, skb, &mvif->group_wcid, in mt76x02_pre_tbtt_tasklet()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/
Dmac.c413 struct carl9170_vif_info *mvif; in carl9170_set_beacon_timers() local
414 mvif = (void *) vif->drv_priv; in carl9170_set_beacon_timers()
416 if (mvif->enable_beacon && !WARN_ON(!ar->beacon_enabled)) { in carl9170_set_beacon_timers()