Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c69 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_add_interface() local
76 mvif->idx = ffs(~dev->vif_mask) - 1; in mt7615_add_interface()
77 if (mvif->idx >= MT7615_MAX_INTERFACES) { in mt7615_add_interface()
87 mvif->omac_idx = idx; in mt7615_add_interface()
90 mvif->band_idx = 0; in mt7615_add_interface()
91 mvif->wmm_idx = mvif->idx % MT7615_MAX_WMM_SETS; in mt7615_add_interface()
97 dev->vif_mask |= BIT(mvif->idx); in mt7615_add_interface()
98 dev->omac_mask |= BIT(mvif->omac_idx); in mt7615_add_interface()
99 idx = MT7615_WTBL_RESERVED - mvif->idx; in mt7615_add_interface()
100 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
[all …]
Dmcu.c708 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_set_dev_info() local
726 .omac_idx = mvif->omac_idx, in mt7615_mcu_set_dev_info()
727 .band_idx = mvif->band_idx, in mt7615_mcu_set_dev_info()
735 .band_idx = mvif->band_idx, in mt7615_mcu_set_dev_info()
745 mt7615_mcu_bss_info_omac_header(struct mt7615_vif *mvif, u8 *data, in mt7615_mcu_bss_info_omac_header() argument
751 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt7615_mcu_bss_info_omac_header()
755 hdr->omac_idx = mvif->omac_idx; in mt7615_mcu_bss_info_omac_header()
756 hdr->band_idx = mvif->band_idx; in mt7615_mcu_bss_info_omac_header()
765 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_bss_info_basic_header() local
774 hdr->wmm_idx = mvif->wmm_idx; in mt7615_mcu_bss_info_basic_header()
[all …]
Dmac.c322 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mac_write_txwi() local
324 omac_idx = mvif->omac_idx; in mt7615_mac_write_txwi()
325 wmm_idx = mvif->wmm_idx; in mt7615_mac_write_txwi()
814 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_tx_prepare_skb() local
816 txp->bss_idx = mvif->idx; in mt7615_tx_prepare_skb()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c37 struct mt7603_vif *mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_add_interface() local
46 mvif->idx = ffs(~dev->vif_mask) - 1; in mt7603_add_interface()
47 if (mvif->idx >= MT7603_MAX_INTERFACES) { in mt7603_add_interface()
52 mt76_wr(dev, MT_MAC_ADDR0(mvif->idx), in mt7603_add_interface()
54 mt76_wr(dev, MT_MAC_ADDR1(mvif->idx), in mt7603_add_interface()
59 mt76_wr(dev, MT_BSSID0(mvif->idx), in mt7603_add_interface()
61 mt76_wr(dev, MT_BSSID1(mvif->idx), in mt7603_add_interface()
66 idx = MT7603_WTBL_RESERVED - 1 - mvif->idx; in mt7603_add_interface()
67 dev->vif_mask |= BIT(mvif->idx); in mt7603_add_interface()
68 mvif->sta.wcid.idx = idx; 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.c789 struct mt7603_vif *mvif; in mt7603_mac_write_txwi() local
801 mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_mac_write_txwi()
802 vif_idx = mvif->idx; in mt7603_mac_write_txwi()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dmt76x02_beacon.c110 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_mac_set_beacon_enable() local
119 dev->mt76.beacon_mask |= BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
121 dev->mt76.beacon_mask &= ~BIT(mvif->idx); in mt76x02_mac_set_beacon_enable()
122 mt76x02_mac_set_beacon(dev, mvif->idx, NULL); in mt76x02_mac_set_beacon_enable()
178 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_update_beacon_iter() local
181 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_update_beacon_iter()
188 mt76x02_mac_set_beacon(dev, mvif->idx, skb); in mt76x02_update_beacon_iter()
197 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_add_buffered_bc() local
201 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt76x02_add_buffered_bc()
213 data->tail[mvif->idx] = skb; in mt76x02_add_buffered_bc()
Dmt76x02_util.c252 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_sta_add() local
261 msta->vif = mvif; in mt76x02_sta_add()
265 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add()
291 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_vif_init() local
294 memset(mvif, 0, sizeof(*mvif)); in mt76x02_vif_init()
296 mvif->idx = idx; in mt76x02_vif_init()
297 mvif->group_wcid.idx = MT_VIF_WCID(idx); in mt76x02_vif_init()
298 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
300 mtxq->wcid = &mvif->group_wcid; in mt76x02_vif_init()
350 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.c52 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_pre_tbtt_tasklet() local
54 mt76_tx_queue_skb(dev, MT_TXQ_PSD, skb, &mvif->group_wcid, in mt76x02_pre_tbtt_tasklet()
/Linux-v5.4/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.4/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()