Lines Matching refs:mphy
183 mt7921_get_status_freq_info(struct mt7921_dev *dev, struct mt76_phy *mphy, in mt7921_get_status_freq_info() argument
237 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mac_fill_rx() local
257 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_mac_fill_rx()
284 mt7921_get_status_freq_info(dev, mphy, status, chfreq); in mt7921_mac_fill_rx()
288 sband = &mphy->sband_5g.sband; in mt7921_mac_fill_rx()
291 sband = &mphy->sband_6g.sband; in mt7921_mac_fill_rx()
294 sband = &mphy->sband_2g.sband; in mt7921_mac_fill_rx()
427 status->chains = mphy->antenna_mask; in mt7921_mac_fill_rx()
433 for (i = 0; i < hweight8(mphy->antenna_mask); i++) { in mt7921_mac_fill_rx()
618 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7921_mac_tx_free()
619 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7921_mac_tx_free()
814 mt7921_phy_update_channel(struct mt76_phy *mphy, int idx) in mt7921_phy_update_channel() argument
816 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_phy_update_channel()
817 struct mt7921_phy *phy = (struct mt7921_phy *)mphy->priv; in mt7921_phy_update_channel()
837 state = mphy->chan_state; in mt7921_phy_update_channel()
845 void mt7921_update_channel(struct mt76_phy *mphy) in mt7921_update_channel() argument
847 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_update_channel()
849 if (mt76_connac_pm_wake(mphy, &dev->pm)) in mt7921_update_channel()
852 mt7921_phy_update_channel(mphy, 0); in mt7921_update_channel()
856 mt76_connac_power_save_sched(mphy, &dev->pm); in mt7921_update_channel()
871 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()
896 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7921_mac_reset_work()
912 if (test_and_clear_bit(MT76_HW_SCANNING, &dev->mphy.state)) { in mt7921_mac_reset_work()
917 ieee80211_scan_completed(dev->mphy.hw, &info); in mt7921_mac_reset_work()
1010 struct mt76_phy *mphy; in mt7921_mac_work() local
1012 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt7921_mac_work()
1014 phy = mphy->priv; in mt7921_mac_work()
1018 mt76_update_survey(mphy); in mt7921_mac_work()
1019 if (++mphy->mac_work_count == 2) { in mt7921_mac_work()
1020 mphy->mac_work_count = 0; in mt7921_mac_work()
1027 mt76_tx_status_check(mphy->dev, false); in mt7921_mac_work()
1028 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work, in mt7921_mac_work()
1035 struct mt76_phy *mphy; in mt7921_pm_wake_work() local
1039 mphy = dev->phy.mt76; in mt7921_pm_wake_work()
1046 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7921_pm_wake_work()
1053 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7921_pm_wake_work()
1056 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_pm_wake_work()
1057 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7921_pm_wake_work()
1061 ieee80211_wake_queues(mphy->hw); in mt7921_pm_wake_work()
1069 struct mt76_phy *mphy; in mt7921_pm_power_save_work() local
1073 mphy = dev->phy.mt76; in mt7921_pm_power_save_work()
1076 if (test_bit(MT76_HW_SCANNING, &mphy->state) || in mt7921_pm_power_save_work()
1077 test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) || in mt7921_pm_power_save_work()
1095 cancel_delayed_work_sync(&mphy->mac_work); in mt7921_pm_power_save_work()