Lines Matching refs:mphy
202 mt7615_get_status_freq_info(struct mt7615_dev *dev, struct mt76_phy *mphy, in mt7615_get_status_freq_info() argument
205 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7615_get_status_freq_info()
206 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7615_get_status_freq_info()
207 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7615_get_status_freq_info()
208 status->freq = mphy->chandef.chan->center_freq; in mt7615_get_status_freq_info()
209 status->band = mphy->chandef.chan->band; in mt7615_get_status_freq_info()
336 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_fill_rx() local
505 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_fill_rx()
513 mt7615_get_status_freq_info(dev, mphy, status, chfreq); in mt7615_mac_fill_rx()
515 sband = &mphy->sband_5g.sband; in mt7615_mac_fill_rx()
517 sband = &mphy->sband_2g.sband; in mt7615_mac_fill_rx()
519 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7615_mac_fill_rx()
578 status->chains = mphy->antenna_mask; in mt7615_mac_fill_rx()
584 mt7615_mac_fill_tm_rx(mphy->priv, rxd); in mt7615_mac_fill_rx()
661 struct mt76_phy *mphy, in mt7615_mac_tx_rate_val() argument
690 int band = mphy->chandef.chan->band; in mt7615_mac_tx_rate_val()
694 r = &mphy->hw->wiphy->bands[band]->bitrates[rate->idx]; in mt7615_mac_tx_rate_val()
731 struct mt76_phy *mphy = &dev->mphy; in mt7615_mac_write_txwi() local
750 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_write_txwi()
809 u16 rateval = mt7615_mac_tx_rate_val(dev, mphy, rate, stbc, in mt7615_mac_write_txwi()
971 struct mt76_phy *mphy = phy->mt76; in mt7615_mac_update_rate_desc() local
1020 rd->val[0] = mt7615_mac_tx_rate_val(dev, mphy, &rates[0], stbc, &bw); in mt7615_mac_update_rate_desc()
1024 rd->probe_val = mt7615_mac_tx_rate_val(dev, mphy, probe_rate, in mt7615_mac_update_rate_desc()
1034 rd->val[1] = mt7615_mac_tx_rate_val(dev, mphy, &rates[1], stbc, &bw); in mt7615_mac_update_rate_desc()
1040 rd->val[2] = mt7615_mac_tx_rate_val(dev, mphy, &rates[2], stbc, &bw); in mt7615_mac_update_rate_desc()
1046 rd->val[3] = mt7615_mac_tx_rate_val(dev, mphy, &rates[3], stbc, &bw); in mt7615_mac_update_rate_desc()
1320 struct mt76_phy *mphy; in mt7615_fill_txs() local
1420 mphy = &dev->mphy; in mt7615_fill_txs()
1422 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_fill_txs()
1424 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7615_fill_txs()
1425 sband = &mphy->sband_5g.sband; in mt7615_fill_txs()
1427 sband = &mphy->sband_2g.sband; in mt7615_fill_txs()
1495 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_add_txs() local
1530 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_add_txs()
1534 ieee80211_tx_status_noskb(mphy->hw, sta, &info); in mt7615_mac_add_txs()
1585 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7615_mac_tx_free()
1587 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7615_mac_tx_free()
1590 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], false); in mt7615_mac_tx_free()
1916 mt7615_phy_update_channel(struct mt76_phy *mphy, int idx) in mt7615_phy_update_channel() argument
1918 struct mt7615_dev *dev = container_of(mphy->dev, struct mt7615_dev, mt76); in mt7615_phy_update_channel()
1919 struct mt7615_phy *phy = mphy->priv; in mt7615_phy_update_channel()
1939 state = mphy->chan_state; in mt7615_phy_update_channel()
1971 void mt7615_update_channel(struct mt76_phy *mphy) in mt7615_update_channel() argument
1973 struct mt7615_dev *dev = container_of(mphy->dev, struct mt7615_dev, mt76); in mt7615_update_channel()
1975 if (mt76_connac_pm_wake(&dev->mphy, &dev->pm)) in mt7615_update_channel()
1979 mt76_connac_power_save_sched(&dev->mphy, &dev->pm); in mt7615_update_channel()
2023 struct mt76_phy *mphy; in mt7615_pm_wake_work() local
2027 mphy = dev->phy.mt76; in mt7615_pm_wake_work()
2034 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7615_pm_wake_work()
2041 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt7615_pm_wake_work()
2046 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) { in mt7615_pm_wake_work()
2050 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7615_pm_wake_work()
2055 ieee80211_wake_queues(mphy->hw); in mt7615_pm_wake_work()
2068 if (test_bit(MT76_HW_SCANNING, &dev->mphy.state) || in mt7615_pm_power_save_work()
2069 test_bit(MT76_HW_SCHED_SCANNING, &dev->mphy.state)) in mt7615_pm_power_save_work()
2094 struct mt76_phy *mphy; in mt7615_mac_work() local
2097 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt7615_mac_work()
2099 phy = mphy->priv; in mt7615_mac_work()
2104 if (++mphy->mac_work_count == 5) { in mt7615_mac_work()
2105 mphy->mac_work_count = 0; in mt7615_mac_work()
2113 mt76_tx_status_check(mphy->dev, false); in mt7615_mac_work()
2116 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, timeout); in mt7615_mac_work()