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()
223 mt792x_phy_update_channel(struct mt76_phy *mphy, int idx) in mt792x_phy_update_channel() argument
225 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_phy_update_channel()
226 struct mt792x_phy *phy = (struct mt792x_phy *)mphy->priv; in mt792x_phy_update_channel()
246 state = mphy->chan_state; in mt792x_phy_update_channel()
254 void mt792x_update_channel(struct mt76_phy *mphy) in mt792x_update_channel() argument
256 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_update_channel()
258 if (mt76_connac_pm_wake(mphy, &dev->pm)) in mt792x_update_channel()
261 mt792x_phy_update_channel(mphy, 0); in mt792x_update_channel()
264 mt76_connac_power_save_sched(mphy, &dev->pm); in mt792x_update_channel()
318 struct mt76_phy *mphy; in mt792x_pm_wake_work() local
322 mphy = dev->phy.mt76; in mt792x_pm_wake_work()
329 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt792x_pm_wake_work()
336 mt76_connac_pm_dequeue_skbs(mphy, &dev->pm); in mt792x_pm_wake_work()
339 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt792x_pm_wake_work()
340 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt792x_pm_wake_work()
344 ieee80211_wake_queues(mphy->hw); in mt792x_pm_wake_work()
353 struct mt76_phy *mphy; in mt792x_pm_power_save_work() local
357 mphy = dev->phy.mt76; in mt792x_pm_power_save_work()
360 if (test_bit(MT76_HW_SCANNING, &mphy->state) || in mt792x_pm_power_save_work()
361 test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) || in mt792x_pm_power_save_work()
379 cancel_delayed_work_sync(&mphy->mac_work); in mt792x_pm_power_save_work()