Lines Matching refs:mphy
12 struct mt76_phy *mphy; in mt792x_mac_work() local
14 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt792x_mac_work()
16 phy = mphy->priv; in mt792x_mac_work()
20 mt76_update_survey(mphy); in mt792x_mac_work()
21 if (++mphy->mac_work_count == 2) { in mt792x_mac_work()
22 mphy->mac_work_count = 0; in mt792x_mac_work()
29 mt76_tx_status_check(mphy->dev, false); in mt792x_mac_work()
30 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work, in mt792x_mac_work()
225 mt792x_phy_update_channel(struct mt76_phy *mphy, int idx) in mt792x_phy_update_channel() argument
227 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_phy_update_channel()
228 struct mt792x_phy *phy = mphy->priv; in mt792x_phy_update_channel()
248 state = mphy->chan_state; in mt792x_phy_update_channel()
256 void mt792x_update_channel(struct mt76_phy *mphy) in mt792x_update_channel() argument
258 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_update_channel()
260 if (mt76_connac_pm_wake(mphy, &dev->pm)) in mt792x_update_channel()
263 mt792x_phy_update_channel(mphy, 0); in mt792x_update_channel()
266 mt76_connac_power_save_sched(mphy, &dev->pm); in mt792x_update_channel()
320 struct mt76_phy *mphy; in mt792x_pm_wake_work() local
324 mphy = dev->phy.mt76; in mt792x_pm_wake_work()
331 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt792x_pm_wake_work()
338 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt792x_pm_wake_work()
341 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt792x_pm_wake_work()
342 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt792x_pm_wake_work()
346 ieee80211_wake_queues(mphy->hw); in mt792x_pm_wake_work()
355 struct mt76_phy *mphy; in mt792x_pm_power_save_work() local
359 mphy = dev->phy.mt76; in mt792x_pm_power_save_work()
362 if (test_bit(MT76_HW_SCANNING, &mphy->state) || in mt792x_pm_power_save_work()
363 test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) || in mt792x_pm_power_save_work()
381 cancel_delayed_work_sync(&mphy->mac_work); in mt792x_pm_power_save_work()