Lines Matching refs:pm

312 int mt76_connac_pm_wake(struct mt76_phy *phy, struct mt76_connac_pm *pm);
314 struct mt76_connac_pm *pm);
315 void mt76_connac_free_pending_tx_skbs(struct mt76_connac_pm *pm,
325 mt76_connac_pm_ref(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_pm_ref() argument
329 spin_lock_bh(&pm->wake.lock); in mt76_connac_pm_ref()
333 pm->wake.count++; in mt76_connac_pm_ref()
336 spin_unlock_bh(&pm->wake.lock); in mt76_connac_pm_ref()
342 mt76_connac_pm_unref(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_pm_unref() argument
344 spin_lock_bh(&pm->wake.lock); in mt76_connac_pm_unref()
346 pm->last_activity = jiffies; in mt76_connac_pm_unref()
347 if (--pm->wake.count == 0 && in mt76_connac_pm_unref()
349 mt76_connac_power_save_sched(phy, pm); in mt76_connac_pm_unref()
351 spin_unlock_bh(&pm->wake.lock); in mt76_connac_pm_unref()
355 mt76_connac_skip_fw_pmctrl(struct mt76_phy *phy, struct mt76_connac_pm *pm) in mt76_connac_skip_fw_pmctrl() argument
363 spin_lock_bh(&pm->wake.lock); in mt76_connac_skip_fw_pmctrl()
364 ret = pm->wake.count || test_and_set_bit(MT76_STATE_PM, &phy->state); in mt76_connac_skip_fw_pmctrl()
365 spin_unlock_bh(&pm->wake.lock); in mt76_connac_skip_fw_pmctrl()
371 mt76_connac_mutex_acquire(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_acquire() argument
375 mt76_connac_pm_wake(&dev->phy, pm); in mt76_connac_mutex_acquire()
379 mt76_connac_mutex_release(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_release() argument
382 mt76_connac_power_save_sched(&dev->phy, pm); in mt76_connac_mutex_release()
397 struct mt76_connac_pm *pm,
401 struct mt76_connac_pm *pm);