Lines Matching defs:mphy

212 			struct mt76_phy *mphy = mt76_vif_link_phy(mlink);
214 if (mphy)
216 mt76_rx_signal(mphy->antenna_mask,
454 struct mt76_phy *mphy = &dev->mt76.phy;
483 mphy = dev->mt76.phys[band_idx];
484 phy = mphy->priv;
485 status->phy_idx = mphy->band_idx;
487 if (!test_bit(MT76_STATE_RUNNING, &mphy->state))
514 status->freq = mphy->chandef.chan->center_freq;
515 status->band = mphy->chandef.chan->band;
517 sband = &mphy->sband_5g.sband;
519 sband = &mphy->sband_6g.sband;
521 sband = &mphy->sband_2g.sband;
627 status->chains = mphy->antenna_mask;
1329 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false);
1330 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false);
1446 struct mt76_phy *mphy;
1503 mphy = mt76_dev_phy(mdev, wcid->phy_idx);
1505 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ)
1506 sband = &mphy->sband_5g.sband;
1507 else if (mphy->chandef.chan->band == NL80211_BAND_6GHZ)
1508 sband = &mphy->sband_6g.sband;
1510 sband = &mphy->sband_2g.sband;
1512 rate.mcs = mt76_get_rate(mphy->dev, sband, rate.mcs, cck);
2155 void mt7996_update_channel(struct mt76_phy *mphy)
2157 struct mt7996_phy *phy = mphy->priv;
2158 struct mt76_channel_state *state = mphy->chan_state;
2163 nf = mt7996_phy_get_nf(phy, mphy->band_idx);
2270 set_bit(MT76_MCU_RESET, &dev->mphy.state);
2309 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
2310 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
2548 set_bit(MT76_RESET, &dev->mphy.state);
2549 set_bit(MT76_MCU_RESET, &dev->mphy.state);
2612 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
2934 struct mt76_phy *mphy;
2936 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy,
2938 phy = mphy->priv;
2940 mutex_lock(&mphy->dev->mutex);
2942 mt76_update_survey(mphy);
2943 if (++mphy->mac_work_count == 5) {
2944 mphy->mac_work_count = 0;
2955 mutex_unlock(&mphy->dev->mutex);
2957 mt76_tx_status_check(mphy->dev, false);
2959 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work,