Lines Matching refs:mphy
168 mt7921_get_status_freq_info(struct mt7921_dev *dev, struct mt76_phy *mphy, in mt7921_get_status_freq_info() argument
171 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7921_get_status_freq_info()
172 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7921_get_status_freq_info()
173 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7921_get_status_freq_info()
174 status->freq = mphy->chandef.chan->center_freq; in mt7921_get_status_freq_info()
175 status->band = mphy->chandef.chan->band; in mt7921_get_status_freq_info()
230 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mac_fill_rx() local
250 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_mac_fill_rx()
277 mt7921_get_status_freq_info(dev, mphy, status, chfreq); in mt7921_mac_fill_rx()
281 sband = &mphy->sband_5g.sband; in mt7921_mac_fill_rx()
284 sband = &mphy->sband_6g.sband; in mt7921_mac_fill_rx()
287 sband = &mphy->sband_2g.sband; in mt7921_mac_fill_rx()
399 status->chains = mphy->antenna_mask; in mt7921_mac_fill_rx()
405 for (i = 0; i < hweight8(mphy->antenna_mask); i++) { in mt7921_mac_fill_rx()
601 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7921_mac_tx_free()
602 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7921_mac_tx_free()
797 mt7921_phy_update_channel(struct mt76_phy *mphy, int idx) in mt7921_phy_update_channel() argument
799 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_phy_update_channel()
800 struct mt7921_phy *phy = (struct mt7921_phy *)mphy->priv; in mt7921_phy_update_channel()
820 state = mphy->chan_state; in mt7921_phy_update_channel()
828 void mt7921_update_channel(struct mt76_phy *mphy) in mt7921_update_channel() argument
830 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_update_channel()
832 if (mt76_connac_pm_wake(mphy, &dev->pm)) in mt7921_update_channel()
835 mt7921_phy_update_channel(mphy, 0); in mt7921_update_channel()
839 mt76_connac_power_save_sched(mphy, &dev->pm); in mt7921_update_channel()
854 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()
879 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7921_mac_reset_work()
895 if (test_and_clear_bit(MT76_HW_SCANNING, &dev->mphy.state)) { in mt7921_mac_reset_work()
900 ieee80211_scan_completed(dev->mphy.hw, &info); in mt7921_mac_reset_work()
993 struct mt76_phy *mphy; in mt7921_mac_work() local
995 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt7921_mac_work()
997 phy = mphy->priv; in mt7921_mac_work()
1001 mt76_update_survey(mphy); in mt7921_mac_work()
1002 if (++mphy->mac_work_count == 2) { in mt7921_mac_work()
1003 mphy->mac_work_count = 0; in mt7921_mac_work()
1010 mt76_tx_status_check(mphy->dev, false); in mt7921_mac_work()
1011 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work, in mt7921_mac_work()
1018 struct mt76_phy *mphy; in mt7921_pm_wake_work() local
1022 mphy = dev->phy.mt76; in mt7921_pm_wake_work()
1029 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7921_pm_wake_work()
1036 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7921_pm_wake_work()
1039 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_pm_wake_work()
1040 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7921_pm_wake_work()
1044 ieee80211_wake_queues(mphy->hw); in mt7921_pm_wake_work()
1052 struct mt76_phy *mphy; in mt7921_pm_power_save_work() local
1056 mphy = dev->phy.mt76; in mt7921_pm_power_save_work()
1059 if (test_bit(MT76_HW_SCANNING, &mphy->state) || in mt7921_pm_power_save_work()
1060 test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) || in mt7921_pm_power_save_work()
1078 cancel_delayed_work_sync(&mphy->mac_work); in mt7921_pm_power_save_work()