Lines Matching full:pm

98 int mt76_connac_pm_wake(struct mt76_phy *phy, struct mt76_connac_pm *pm);
100 struct mt76_connac_pm *pm);
101 void mt76_connac_free_pending_tx_skbs(struct mt76_connac_pm *pm,
105 mt76_connac_pm_ref(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_pm_ref() argument
109 spin_lock_bh(&pm->wake.lock); in mt76_connac_pm_ref()
113 pm->wake.count++; in mt76_connac_pm_ref()
116 spin_unlock_bh(&pm->wake.lock); in mt76_connac_pm_ref()
122 mt76_connac_pm_unref(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_pm_unref() argument
124 spin_lock_bh(&pm->wake.lock); in mt76_connac_pm_unref()
126 pm->last_activity = jiffies; in mt76_connac_pm_unref()
127 if (--pm->wake.count == 0 && in mt76_connac_pm_unref()
129 mt76_connac_power_save_sched(phy, pm); in mt76_connac_pm_unref()
131 spin_unlock_bh(&pm->wake.lock); in mt76_connac_pm_unref()
135 mt76_connac_skip_fw_pmctrl(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_skip_fw_pmctrl() argument
143 spin_lock_bh(&pm->wake.lock); in mt76_connac_skip_fw_pmctrl()
144 ret = pm->wake.count || test_and_set_bit(MT76_STATE_PM, &phy->state); in mt76_connac_skip_fw_pmctrl()
145 spin_unlock_bh(&pm->wake.lock); in mt76_connac_skip_fw_pmctrl()
151 mt76_connac_mutex_acquire(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_acquire() argument
155 mt76_connac_pm_wake(&dev->phy, pm); in mt76_connac_mutex_acquire()
159 mt76_connac_mutex_release(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_release() argument
162 mt76_connac_power_save_sched(&dev->phy, pm); in mt76_connac_mutex_release()
167 struct mt76_connac_pm *pm,
171 struct mt76_connac_pm *pm);