Lines Matching refs:mphy
263 mt7921_get_status_freq_info(struct mt7921_dev *dev, struct mt76_phy *mphy, in mt7921_get_status_freq_info() argument
266 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7921_get_status_freq_info()
267 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7921_get_status_freq_info()
268 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7921_get_status_freq_info()
269 status->freq = mphy->chandef.chan->center_freq; in mt7921_get_status_freq_info()
270 status->band = mphy->chandef.chan->band; in mt7921_get_status_freq_info()
316 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mac_fill_rx() local
335 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_mac_fill_rx()
357 mt7921_get_status_freq_info(dev, mphy, status, chfreq); in mt7921_mac_fill_rx()
360 sband = &mphy->sband_5g.sband; in mt7921_mac_fill_rx()
362 sband = &mphy->sband_2g.sband; in mt7921_mac_fill_rx()
472 status->chains = mphy->antenna_mask; in mt7921_mac_fill_rx()
478 for (i = 0; i < hweight8(mphy->antenna_mask); i++) { in mt7921_mac_fill_rx()
758 struct mt76_phy *mphy = &dev->mphy; in mt7921_mac_write_txwi() local
818 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7921_mac_write_txwi()
1008 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7921_mac_tx_free()
1009 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7921_mac_tx_free()
1201 mt7921_phy_update_channel(struct mt76_phy *mphy, int idx) in mt7921_phy_update_channel() argument
1203 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_phy_update_channel()
1204 struct mt7921_phy *phy = (struct mt7921_phy *)mphy->priv; in mt7921_phy_update_channel()
1224 state = mphy->chan_state; in mt7921_phy_update_channel()
1232 void mt7921_update_channel(struct mt76_phy *mphy) in mt7921_update_channel() argument
1234 struct mt7921_dev *dev = container_of(mphy->dev, struct mt7921_dev, mt76); in mt7921_update_channel()
1236 if (mt76_connac_pm_wake(mphy, &dev->pm)) in mt7921_update_channel()
1239 mt7921_phy_update_channel(mphy, 0); in mt7921_update_channel()
1243 mt76_connac_power_save_sched(mphy, &dev->pm); in mt7921_update_channel()
1277 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()
1291 set_bit(MT76_RESET, &dev->mphy.state); in mt7921_mac_reset()
1292 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921_mac_reset()
1296 mt76_txq_schedule_all(&dev->mphy); in mt7921_mac_reset()
1314 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921_mac_reset()
1335 clear_bit(MT76_RESET, &dev->mphy.state); in mt7921_mac_reset()
1357 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7921_mac_reset_work()
1373 if (test_and_clear_bit(MT76_HW_SCANNING, &dev->mphy.state)) { in mt7921_mac_reset_work()
1378 ieee80211_scan_completed(dev->mphy.hw, &info); in mt7921_mac_reset_work()
1436 struct mt76_phy *mphy; in mt7921_mac_work() local
1438 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt7921_mac_work()
1440 phy = mphy->priv; in mt7921_mac_work()
1444 mt76_update_survey(mphy); in mt7921_mac_work()
1445 if (++mphy->mac_work_count == 2) { in mt7921_mac_work()
1446 mphy->mac_work_count = 0; in mt7921_mac_work()
1452 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work, in mt7921_mac_work()
1459 struct mt76_phy *mphy; in mt7921_pm_wake_work() local
1463 mphy = dev->phy.mt76; in mt7921_pm_wake_work()
1470 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7921_pm_wake_work()
1472 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_pm_wake_work()
1473 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7921_pm_wake_work()
1477 ieee80211_wake_queues(mphy->hw); in mt7921_pm_wake_work()
1485 struct mt76_phy *mphy; in mt7921_pm_power_save_work() local
1489 mphy = dev->phy.mt76; in mt7921_pm_power_save_work()
1492 if (test_bit(MT76_HW_SCANNING, &mphy->state) || in mt7921_pm_power_save_work()
1493 test_bit(MT76_HW_SCHED_SCANNING, &mphy->state)) in mt7921_pm_power_save_work()
1502 cancel_delayed_work_sync(&mphy->mac_work); in mt7921_pm_power_save_work()