/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | main.c | 322 mvif->mt76.omac_idx = mvif->mt76.idx; in mt7921_add_interface() 323 mvif->phy = phy; in mt7921_add_interface() 325 mvif->mt76.wmm_idx = mvif->mt76.idx % MT76_CONNAC_MAX_WMM_SETS; in mt7921_add_interface() 339 mvif->sta.wcid.phy_idx = mvif->mt76.band_idx; in mt7921_add_interface() 533 &mvif->sta; in mt7921_set_key() 775 msta->vif = mvif; in mt7921_mac_sta_add() 1701 mt76_connac_mcu_uni_set_chctx(mvif->phy->mt76, &mvif->mt76, ctx); in mt7921_ctx_iter() 1728 mvif->ctx = ctx; in mt7921_assign_vif_chanctx() 1744 mvif->ctx = NULL; in mt7921_unassign_vif_chanctx() 1758 mt7921_set_roc(mvif->phy, mvif, mvif->ctx->def.chan, duration, in mt7921_mgd_prepare_tx() [all …]
|
A D | mcu.c | 129 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_ipv6_ns_filter() 201 if (mvif->idx != event->bss_idx) in mt7921_mcu_connection_loss_iter() 591 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx() 593 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx() 614 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx() 860 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_ps() 895 .bss_idx = mvif->mt76.idx, in mt7921_mcu_uni_bss_bcnft() 928 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm() 937 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_bss_pm() 1093 .band_idx = mvif->band_idx, in mt7921_mcu_set_sniffer() [all …]
|
A D | mac.c | 202 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mac_rssi_iter() local 211 ewma_rssi_add(&mvif->rssi, -status->signal); in mt7921_mac_rssi_iter() 864 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_vif_connect_iter() local 865 struct mt7921_dev *dev = mvif->phy->dev; in mt7921_vif_connect_iter() 871 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter() 875 mt76_connac_mcu_uni_add_bss(dev->phy.mt76, vif, &mvif->sta.wcid, in mt7921_vif_connect_iter()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7996/ |
A D | main.c | 183 mvif->mt76.omac_idx = idx; in mt7996_add_interface() 184 mvif->phy = phy; in mt7996_add_interface() 203 mvif->sta.wcid.idx = idx; in mt7996_add_interface() 218 (!mvif->mt76.omac_idx || mvif->mt76.omac_idx > 3)) in mt7996_add_interface() 223 memset(&mvif->cap, -1, sizeof(mvif->cap)); in mt7996_add_interface() 312 &mvif->sta; in mt7996_set_key() 589 msta->vif = mvif; in mt7996_mac_sta_add() 649 struct mt7996_vif *mvif; in mt7996_tx() local 652 wcid = &mvif->sta.wcid; in mt7996_tx() 965 mvif->bitrate_mask = *mask; in mt7996_set_bitrate_mask() [all …]
|
A D | mcu.c | 657 sec->cipher = mvif->cipher; in mt7996_mcu_bss_sec_tlv() 756 bss->omac_idx = mvif->omac_idx; in mt7996_mcu_bss_basic_tlv() 757 bss->band_idx = mvif->band_idx; in mt7996_mcu_bss_basic_tlv() 758 bss->wmm_idx = mvif->wmm_idx; in mt7996_mcu_bss_basic_tlv() 762 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt7996_mcu_bss_basic_tlv() 785 .bss_idx = mvif->idx, in __mt7996_mcu_alloc_bss_req() 1575 if (mvif->cap.ht_ldpc && in mt7996_mcu_sta_rate_ctrl_tlv() 1601 if (mvif->cap.vht_ldpc && in mt7996_mcu_sta_rate_ctrl_tlv() 2643 .bss_idx = mvif->mt76.idx, in mt7996_mcu_set_tx() 3386 u8 omac = mvif->mt76.omac_idx; in mt7996_mcu_set_obss_spr_siga() [all …]
|
A D | mt7996.h | 380 u64 __mt7996_get_tsf(struct ieee80211_hw *hw, struct mt7996_vif *mvif); 393 struct mt7996_vif *mvif,
|
A D | mac.c | 248 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_mac_enable_rtscts() local 251 addr = mt7996_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); in mt7996_mac_enable_rtscts() 999 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_mac_write_txwi() local 1001 omac_idx = mvif->mt76.omac_idx; in mt7996_mac_write_txwi() 1002 wmm_idx = mvif->mt76.wmm_idx; in mt7996_mac_write_txwi() 1003 band_idx = mvif->mt76.band_idx; in mt7996_mac_write_txwi() 1145 struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; in mt7996_tx_prepare_skb() local 1147 txp->fw.bss_idx = mvif->mt76.idx; in mt7996_tx_prepare_skb()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | main.c | 233 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() 685 msta->vif = mvif; in mt7915_mac_sta_add() 745 struct mt7915_vif *mvif; in mt7915_tx() local 748 wcid = &mvif->sta.wcid; in mt7915_tx() [all …]
|
A D | mcu.c | 743 if (mvif->cap.he_ldpc && in mt7915_mcu_sta_he_tlv() 866 mvif->cap.vht_mu_ebfer || in mt7915_mcu_sta_muru_tlv() 867 mvif->cap.vht_mu_ebfee; in mt7915_mcu_sta_muru_tlv() 1001 mvif->cap.vht_ldpc); in mt7915_mcu_sta_wtbl_tlv() 1024 return mvif->cap.he_su_ebfee && in mt7915_is_ebf_supported() 1027 return mvif->cap.he_su_ebfer && in mt7915_is_ebf_supported() 1533 if (mvif->cap.ht_ldpc && in mt7915_mcu_sta_rate_ctrl_tlv() 1559 if (mvif->cap.vht_ldpc && in mt7915_mcu_sta_rate_ctrl_tlv() 3526 u8 omac = mvif->mt76.omac_idx; in mt7915_mcu_set_obss_spr_siga() 3651 .band = mvif->mt76.band_idx, in mt7915_mcu_get_rx_rate() [all …]
|
A D | mt7915.h | 468 u64 __mt7915_get_tsf(struct ieee80211_hw *hw, struct mt7915_vif *mvif); 492 struct mt7915_vif *mvif,
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | main.c | 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() 69 INIT_LIST_HEAD(&mvif->sta.poll_list); 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 mt76_packet_id_init(&mvif->sta.wcid); in mt7603_add_interface() 491 &mvif->sta; in mt7603_set_key() 691 struct mt7603_vif *mvif; in mt7603_tx() local [all …]
|
A D | beacon.c | 17 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 MT_TXQ_BEACON, skb, &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, MT_TXQ_CAB, skb, &mvif->sta.wcid, NULL); in mt7603_pre_tbtt_tasklet()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | main.c | 208 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() 351 &mvif->sta; in mt7615_set_key() 633 msta->vif = mvif; in mt7615_mac_sta_add() 751 struct mt7615_vif *mvif; in mt7615_tx() local 754 msta = &mvif->sta; in mt7615_tx() [all …]
|
A D | mcu.c | 645 .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() 1063 .bss_idx = mvif->mt76.idx, in mt7615_mcu_uni_add_beacon_offload() 2526 .bss_idx = mvif->mt76.idx, in mt7615_mcu_set_bss_pm() 2535 .bss_idx = mvif->mt76.idx, in mt7615_mcu_set_bss_pm() [all …]
|
A D | pci_mac.c | 51 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()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/ |
A D | mt76x02_beacon.c | 72 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()
|
A D | mt76x02_util.c | 252 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_packet_id_init(&mvif->group_wcid); in mt76x02_vif_init() 347 dev->mt76.vif_mask &= ~BIT_ULL(mvif->idx); in mt76x02_remove_interface() 349 mt76_packet_id_flush(&dev->mt76, &mvif->group_wcid); in mt76x02_remove_interface() 455 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key() [all …]
|
A D | mt76_connac_mcu.c | 198 .bss_idx = mvif->idx, in mt76_connac_mcu_set_vif_ps() 278 .bss_idx = mvif->idx, in __mt76_connac_mcu_alloc_sta_req() 1182 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt76_connac_mcu_uni_add_dev() 1538 idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; in mt76_connac_mcu_uni_add_bss() 1647 mvif->scan_seq_num = (mvif->scan_seq_num + 1) & 0x7f; in mt76_connac_mcu_hw_scan() 1651 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_hw_scan() 1768 mvif->scan_seq_num = (mvif->scan_seq_num + 1) & 0x7f; in mt76_connac_mcu_sched_scan_req() 1772 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_sched_scan_req() 2329 .bss_idx = mvif->idx, in mt76_connac_mcu_set_p2p_oppps() 2395 .bss_idx = mvif->idx, in mt76_connac_mcu_update_gtk_rekey() [all …]
|
A D | mt76x02_txrx.c | 25 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()
|
A D | mt76_connac_mcu.h | 1758 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, 1761 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() argument 1764 return __mt76_connac_mcu_alloc_sta_req(dev, mvif, wcid, in mt76_connac_mcu_alloc_sta_req() 1818 int mt76_connac_mcu_sta_ba(struct mt76_dev *dev, struct mt76_vif *mvif, 1889 void mt76_connac_mcu_bss_ext_tlv(struct sk_buff *skb, struct mt76_vif *mvif);
|
A D | mt76_connac_mac.c | 468 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac2_mac_write_txwi() local 470 omac_idx = mvif->omac_idx; in mt76_connac2_mac_write_txwi() 471 wmm_idx = mvif->wmm_idx; in mt76_connac2_mac_write_txwi() 472 band_idx = mvif->band_idx; in mt76_connac2_mac_write_txwi()
|
A D | mt76x02_mmio.c | 60 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_pre_tbtt_tasklet() local 62 mt76_tx_queue_skb(dev, q, MT_TXQ_PSD, skb, &mvif->group_wcid, in mt76x02_pre_tbtt_tasklet()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt7601u/ |
A D | main.c | 48 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 …]
|
A D | tx.c | 215 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7601u_tx() local 217 wcid = &mvif->group_wcid; in mt7601u_tx()
|
/linux-6.3-rc2/drivers/net/wireless/ath/carl9170/ |
A D | mac.c | 409 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()
|