Lines Matching full:mphy

215 			struct mt76_phy *mphy = mt76_vif_link_phy(mlink);  in mt7996_mac_sta_poll()  local
217 if (mphy) in mt7996_mac_sta_poll()
219 mt76_rx_signal(mphy->antenna_mask, in mt7996_mac_sta_poll()
452 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mac_fill_rx() local
481 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx()
482 phy = mphy->priv; in mt7996_mac_fill_rx()
483 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx()
485 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7996_mac_fill_rx()
512 status->freq = mphy->chandef.chan->center_freq; in mt7996_mac_fill_rx()
513 status->band = mphy->chandef.chan->band; in mt7996_mac_fill_rx()
515 sband = &mphy->sband_5g.sband; in mt7996_mac_fill_rx()
517 sband = &mphy->sband_6g.sband; in mt7996_mac_fill_rx()
519 sband = &mphy->sband_2g.sband; in mt7996_mac_fill_rx()
625 status->chains = mphy->antenna_mask; in mt7996_mac_fill_rx()
1228 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7996_mac_tx_free()
1229 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7996_mac_tx_free()
1328 struct mt76_phy *mphy; in mt7996_mac_add_txs_skb() local
1385 mphy = mt76_dev_phy(mdev, wcid->phy_idx); in mt7996_mac_add_txs_skb()
1387 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7996_mac_add_txs_skb()
1388 sband = &mphy->sband_5g.sband; in mt7996_mac_add_txs_skb()
1389 else if (mphy->chandef.chan->band == NL80211_BAND_6GHZ) in mt7996_mac_add_txs_skb()
1390 sband = &mphy->sband_6g.sband; in mt7996_mac_add_txs_skb()
1392 sband = &mphy->sband_2g.sband; in mt7996_mac_add_txs_skb()
1394 rate.mcs = mt76_get_rate(mphy->dev, sband, rate.mcs, cck); in mt7996_mac_add_txs_skb()
1685 void mt7996_update_channel(struct mt76_phy *mphy) in mt7996_update_channel() argument
1687 struct mt7996_phy *phy = mphy->priv; in mt7996_update_channel()
1688 struct mt76_channel_state *state = mphy->chan_state; in mt7996_update_channel()
1693 nf = mt7996_phy_get_nf(phy, mphy->band_idx); in mt7996_update_channel()
1802 set_bit(MT76_RESET, &dev->mphy.state); in mt7996_mac_restart()
1803 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7996_mac_restart()
1811 mt76_txq_schedule_all(&dev->mphy); in mt7996_mac_restart()
1847 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7996_mac_restart()
1848 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7996_mac_restart()
1878 if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) { in mt7996_mac_restart()
1898 clear_bit(MT76_RESET, &dev->mphy.state); in mt7996_mac_restart()
1931 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7996_mac_full_reset()
1961 &dev->mphy.mac_work, in mt7996_mac_full_reset()
2026 set_bit(MT76_RESET, &dev->mphy.state); in mt7996_mac_reset_work()
2027 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7996_mac_reset_work()
2031 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7996_mac_reset_work()
2091 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7996_mac_reset_work()
2092 clear_bit(MT76_RESET, &dev->mphy.state); in mt7996_mac_reset_work()
2128 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt7996_mac_reset_work()
2422 struct mt76_phy *mphy; in mt7996_mac_work() local
2424 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt7996_mac_work()
2426 phy = mphy->priv; in mt7996_mac_work()
2428 mutex_lock(&mphy->dev->mutex); in mt7996_mac_work()
2430 mt76_update_survey(mphy); in mt7996_mac_work()
2431 if (++mphy->mac_work_count == 5) { in mt7996_mac_work()
2432 mphy->mac_work_count = 0; in mt7996_mac_work()
2443 mutex_unlock(&mphy->dev->mutex); in mt7996_mac_work()
2445 mt76_tx_status_check(mphy->dev, false); in mt7996_mac_work()
2447 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7996_mac_work()