/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | main.c | 170 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_init_bitrate_mask() local 173 for (i = 0; i < ARRAY_SIZE(mvif->bitrate_mask.control); i++) { in mt7915_init_bitrate_mask() 174 mvif->bitrate_mask.control[i].gi = NL80211_TXRATE_DEFAULT_GI; in mt7915_init_bitrate_mask() 175 mvif->bitrate_mask.control[i].he_gi = 0xff; in mt7915_init_bitrate_mask() 176 mvif->bitrate_mask.control[i].he_ltf = 0xff; in mt7915_init_bitrate_mask() 177 mvif->bitrate_mask.control[i].legacy = GENMASK(31, 0); in mt7915_init_bitrate_mask() 178 memset(mvif->bitrate_mask.control[i].ht_mcs, 0xff, in mt7915_init_bitrate_mask() 179 sizeof(mvif->bitrate_mask.control[i].ht_mcs)); in mt7915_init_bitrate_mask() 180 memset(mvif->bitrate_mask.control[i].vht_mcs, 0xff, in mt7915_init_bitrate_mask() 181 sizeof(mvif->bitrate_mask.control[i].vht_mcs)); in mt7915_init_bitrate_mask() [all …]
|
D | mcu.c | 579 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_muar_config() local 580 u32 idx = mvif->mt76.omac_idx - REPEATER_BSSID_START; in mt7915_mcu_muar_config() 615 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_mcu_add_bss_info() local 619 if (mvif->mt76.omac_idx >= REPEATER_BSSID_START) { in mt7915_mcu_add_bss_info() 624 skb = __mt76_connac_mcu_alloc_sta_req(&dev->mt76, &mvif->mt76, NULL, in mt7915_mcu_add_bss_info() 634 mvif->sta.wcid.idx, enable); in mt7915_mcu_add_bss_info() 648 if (mvif->mt76.omac_idx >= EXT_BSSID_START && in mt7915_mcu_add_bss_info() 649 mvif->mt76.omac_idx < REPEATER_BSSID_START) in mt7915_mcu_add_bss_info() 650 mt76_connac_mcu_bss_ext_tlv(skb, &mvif->mt76); in mt7915_mcu_add_bss_info() 663 struct mt7915_vif *mvif = msta->vif; in mt7915_mcu_add_tx_ba() local [all …]
|
D | mt7915.h | 430 u64 __mt7915_get_tsf(struct ieee80211_hw *hw, struct mt7915_vif *mvif); 447 struct mt7915_vif *mvif,
|
D | testmode.c | 174 struct mt7915_vif *mvif = (struct mt7915_vif *)phy->monitor_vif->drv_priv; in mt7915_tm_set_wmm_qid() local 178 e->queue = qid + mvif->mt76.wmm_idx * MT76_CONNAC_MAX_WMM_SETS; in mt7915_tm_set_wmm_qid()
|
D | mac.c | 744 struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; in mt7915_tx_prepare_skb() local 746 txp->bss_idx = mvif->mt76.idx; in mt7915_tx_prepare_skb()
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | main.c | 38 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 INIT_LIST_HEAD(&mvif->sta.poll_list); in mt7603_add_interface() [all …]
|
D | beacon.c | 34 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()
|
D | mac.c | 918 struct mt7603_vif *mvif; in mt7603_mac_write_txwi() local 930 mvif = (struct mt7603_vif *)vif->drv_priv; in mt7603_mac_write_txwi() 931 vif_idx = mvif->idx; in mt7603_mac_write_txwi()
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | main.c | 308 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_add_interface() local 316 mvif->mt76.idx = __ffs64(~dev->mt76.vif_mask); in mt7921_add_interface() 317 if (mvif->mt76.idx >= MT7921_MAX_INTERFACES) { in mt7921_add_interface() 322 mvif->mt76.omac_idx = mvif->mt76.idx; in mt7921_add_interface() 323 mvif->phy = phy; in mt7921_add_interface() 324 mvif->mt76.band_idx = 0; in mt7921_add_interface() 325 mvif->mt76.wmm_idx = mvif->mt76.idx % MT76_CONNAC_MAX_WMM_SETS; in mt7921_add_interface() 327 ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, in mt7921_add_interface() 332 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7921_add_interface() 333 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7921_add_interface() [all …]
|
D | mcu.c | 100 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_set_ipv6_ns_filter() local 109 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_ipv6_ns_filter() 155 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7921_mcu_connection_loss_iter() local 158 if (mvif->idx != event->bss_idx) in mt7921_mcu_connection_loss_iter() 519 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mcu_set_tx() local 535 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx() 537 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx() 558 .bss_idx = mvif->mt76.idx, in mt7921_mcu_set_tx() 560 .wmm_idx = mvif->mt76.wmm_idx, in mt7921_mcu_set_tx() 566 struct ieee80211_tx_queue_params *q = &mvif->queue_params[ac]; in mt7921_mcu_set_tx() [all …]
|
D | mac.c | 195 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_mac_rssi_iter() local 204 ewma_rssi_add(&mvif->rssi, -status->signal); in mt7921_mac_rssi_iter() 857 struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv; in mt7921_vif_connect_iter() local 858 struct mt7921_dev *dev = mvif->phy->dev; in mt7921_vif_connect_iter() 864 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter() 868 mt76_connac_mcu_uni_add_bss(dev->phy.mt76, vif, &mvif->sta.wcid, in mt7921_vif_connect_iter()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | main.c | 182 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() 213 mvif->mt76.wmm_idx += 2; in mt7615_add_interface() 215 dev->mt76.vif_mask |= BIT_ULL(mvif->mt76.idx); in mt7615_add_interface() 216 dev->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7615_add_interface() 217 phy->omac_mask |= BIT_ULL(mvif->mt76.omac_idx); in mt7615_add_interface() [all …]
|
D | mcu.c | 590 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_muar_config() local 591 u32 idx = mvif->mt76.omac_idx - REPEATER_BSSID_START; in mt7615_mcu_muar_config() 626 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_dev() local 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() 658 if (mvif->mt76.omac_idx >= REPEATER_BSSID_START) in mt7615_mcu_add_dev() 671 struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; in mt7615_mcu_add_beacon_offload() local 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() [all …]
|
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()
|
D | mac.c | 743 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt7615_mac_write_txwi() local 745 omac_idx = mvif->omac_idx; in mt7615_mac_write_txwi() 746 wmm_idx = mvif->wmm_idx; in mt7615_mac_write_txwi()
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76_connac_mcu.c | 189 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_set_vif_ps() local 197 .bss_idx = mvif->idx, in mt76_connac_mcu_set_vif_ps() 232 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_beacon_loss_iter() local 235 if (mvif->idx != event->bss_idx) in mt76_connac_mcu_beacon_loss_iter() 273 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in __mt76_connac_mcu_alloc_sta_req() argument 277 .bss_idx = mvif->idx, in __mt76_connac_mcu_alloc_sta_req() 278 .muar_idx = wcid ? mvif->omac_idx : 0, in __mt76_connac_mcu_alloc_sta_req() 326 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac_mcu_bss_omac_tlv() local 327 u8 omac_idx = mvif->omac_idx; in mt76_connac_mcu_bss_omac_tlv() 359 omac->omac_idx = mvif->omac_idx; in mt76_connac_mcu_bss_omac_tlv() [all …]
|
D | mt76x02_util.c | 244 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_sta_add() local 253 msta->vif = mvif; in mt76x02_sta_add() 257 mt76x02_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt76x02_sta_add() 284 struct mt76x02_vif *mvif = (struct mt76x02_vif *)vif->drv_priv; in mt76x02_vif_init() local 287 memset(mvif, 0, sizeof(*mvif)); in mt76x02_vif_init() 289 mvif->idx = idx; in mt76x02_vif_init() 290 mvif->group_wcid.idx = MT_VIF_WCID(idx); in mt76x02_vif_init() 291 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init() 292 mt76_packet_id_init(&mvif->group_wcid); in mt76x02_vif_init() 295 rcu_assign_pointer(dev->mt76.wcid[MT_VIF_WCID(idx)], &mvif->group_wcid); in mt76x02_vif_init() [all …]
|
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()
|
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()
|
D | mt76_connac_mcu.h | 1676 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, 1679 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() argument 1682 return __mt76_connac_mcu_alloc_sta_req(dev, mvif, wcid, in mt76_connac_mcu_alloc_sta_req() 1736 int mt76_connac_mcu_sta_ba(struct mt76_dev *dev, struct mt76_vif *mvif, 1799 void mt76_connac_mcu_bss_ext_tlv(struct sk_buff *skb, struct mt76_vif *mvif);
|
D | mt76_connac_mac.c | 471 struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; in mt76_connac2_mac_write_txwi() local 473 omac_idx = mvif->omac_idx; in mt76_connac2_mac_write_txwi() 474 wmm_idx = mvif->wmm_idx; in mt76_connac2_mac_write_txwi() 475 band_idx = mvif->band_idx; in mt76_connac2_mac_write_txwi()
|
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()
|
/drivers/net/wireless/mediatek/mt7601u/ |
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 …]
|
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()
|
/drivers/net/wireless/ath/carl9170/ |
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()
|