Lines Matching full:mt76
38 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps()
151 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
163 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
180 &phy->mt76->sband_5g.sband; in mt7921_init_he_caps()
215 if (phy->mt76->cap.has_2ghz) { in mt7921_set_stream_he_caps()
219 band = &phy->mt76->sband_2g.sband; in mt7921_set_stream_he_caps()
224 if (phy->mt76->cap.has_5ghz) { in mt7921_set_stream_he_caps()
228 band = &phy->mt76->sband_5g.sband; in mt7921_set_stream_he_caps()
232 if (phy->mt76->cap.has_6ghz) { in mt7921_set_stream_he_caps()
236 band = &phy->mt76->sband_6g.sband; in mt7921_set_stream_he_caps()
245 struct mt76_phy *mphy = phy->mt76; in __mt7921_start()
291 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7921_stop()
299 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7921_stop()
300 mt76_connac_mcu_set_mac_enable(&dev->mt76, 0, false, false); in mt7921_stop()
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()
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()
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()
335 idx = MT7921_WTBL_RESERVED - mvif->mt76.idx; in mt7921_add_interface()
339 mvif->sta.wcid.phy_idx = mvif->mt76.band_idx; in mt7921_add_interface()
349 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7921_add_interface()
375 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7921_remove_interface()
377 dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); in mt7921_remove_interface()
378 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); in mt7921_remove_interface()
386 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7921_remove_interface()
394 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7921_set_channel()
397 set_bit(MT76_RESET, &phy->mt76->state); in mt7921_set_channel()
399 mt76_set_channel(phy->mt76); in mt7921_set_channel()
411 clear_bit(MT76_RESET, &phy->mt76->state); in mt7921_set_channel()
414 mt76_worker_schedule(&dev->mt76.tx_worker); in mt7921_set_channel()
415 ieee80211_queue_delayed_work(phy->mt76->hw, &phy->mt76->mac_work, in mt7921_set_channel()
474 mt76_wcid_key_setup(&dev->mt76, wcid, in mt7921_set_key()
477 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7921_set_key()
485 err = mt76_connac_mcu_add_key(&dev->mt76, vif, in mt7921_set_key()
528 mt76_connac_mcu_set_deep_sleep(&dev->mt76, pm->ds_enable); in mt7921_sniffer_interface_iter()
545 mt76_connac_mcu_set_deep_sleep(&dev->mt76, pm->ds_enable); in mt7921_set_runtime_pm()
574 dev->mt76.rxfilter = mt76_rr(dev, MT_WF_RFCR(0)); in mt7921_config()
612 dev->mt76.rxfilter &= ~(_hw); \ in mt7921_configure_filter()
613 dev->mt76.rxfilter |= !(flags & FIF_##_flag) * (_hw); \ in mt7921_configure_filter()
618 dev->mt76.rxfilter &= ~(MT_WF_RFCR_DROP_OTHER_BSS | in mt7921_configure_filter()
642 mt76_wr(dev, MT_WF_RFCR(0), dev->mt76.rxfilter); in mt7921_configure_filter()
692 mt76_connac_mcu_update_arp_filter(&dev->mt76, &mvif->mt76, in mt7921_bss_info_changed()
702 struct mt7921_dev *dev = container_of(mdev, struct mt7921_dev, mt76); in mt7921_mac_sta_add()
707 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7921_WTBL_STA - 1); in mt7921_mac_sta_add()
715 msta->wcid.phy_idx = mvif->mt76.band_idx; in mt7921_mac_sta_add()
743 struct mt7921_dev *dev = container_of(mdev, struct mt7921_dev, mt76); in mt7921_mac_sta_assoc()
766 struct mt7921_dev *dev = container_of(mdev, struct mt7921_dev, mt76); in mt7921_mac_sta_remove()
798 mt76.tx_worker); in mt7921_tx_worker()
801 queue_work(dev->mt76.wq, &dev->pm.wake_work); in mt7921_tx_worker()
817 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt7921_tx()
854 mt76_connac_mcu_set_rts_thresh(&dev->mt76, val, 0); in mt7921_set_rts_threshold()
882 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, in mt7921_ampdu_action()
887 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt7921_ampdu_action()
927 mt76_connac_sta_state_dp(&dev->mt76, old_state, new_state); in mt7921_sta_state()
1046 if (msta->vif->mt76.idx != wi->idx) in mt7921_ethtool_worker()
1062 .idx = mvif->mt76.idx, in mt7921_get_et_stats()
1078 data[ei++] = dev->mt76.aggr_stats[i]; in mt7921_get_et_stats()
1113 dev_err(dev->mt76.dev, "ei: %d SSTATS_LEN: %zu", in mt7921_get_et_stats()
1122 u8 omac_idx = mvif->mt76.omac_idx; in mt7921_get_tsf()
1148 u8 omac_idx = mvif->mt76.omac_idx; in mt7921_set_tsf()
1189 spin_lock_bh(&phy->dev->mt76.lock); in mt7921_scan_work()
1191 spin_unlock_bh(&phy->dev->mt76.lock); in mt7921_scan_work()
1198 ieee80211_sched_scan_results(phy->mt76->hw); in mt7921_scan_work()
1200 &phy->mt76->state)) { in mt7921_scan_work()
1205 ieee80211_scan_completed(phy->mt76->hw, &info); in mt7921_scan_work()
1288 phy->mt76->antenna_mask = tx_ant; in mt7921_set_antenna()
1289 phy->mt76->chainmask = tx_ant; in mt7921_set_antenna()
1291 mt76_set_stream_caps(phy->mt76, true); in mt7921_set_antenna()
1332 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7921_suspend()
1339 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7921_suspend()
1357 set_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7921_resume()
1363 ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work, in mt7921_resume()
1374 struct mt76_dev *mdev = &dev->mt76; in mt7921_set_wakeup()
1396 wait_event_timeout(dev->mt76.tx_wait, !mt76_has_tx_pending(&dev->mphy), in mt7921_flush()
1415 mt76_connac_mcu_sta_update_hdr_trans(&dev->mt76, vif, &msta->wcid, in mt7921_sta_set_decap_offload()
1441 .bss_idx = mvif->mt76.idx, in mt7921_ipv6_addr_change()
1466 skb = __mt76_mcu_msg_alloc(&dev->mt76, &req_hdr, in mt7921_ipv6_addr_change()
1477 ieee80211_queue_work(dev->mt76.hw, &dev->ipv6_ns_work); in mt7921_ipv6_addr_change()
1536 err = mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, in mt7921_start_ap()
1568 mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, false); in mt7921_stop_ap()